Page 1 of 1

Weekend project: Better model pattern colour selection

Posted: Sat May 31, 2014 3:25 am
by robn
A project for you, not for me :)

The current pattern colour selector tries to produce colours that are complementary. It does ok, but not great. Its one of those little things that I've been meaning to improve for a while but there's always bigger things to take care of first.

Anyway, I saw this today:

http://llllll.li/randomColor/
https://github.com/davidmerfield/randomColor.js

Its very simple, and would be trivial to port to C++ or Lua.

Then, for extra credit, allow hue and luminosity to be specified in the .model file. In this way you could have a texture that was strong in a particular colour, and ensure that a pattern of a complementary hue was always selected. That is, if it only looks good with patters in shades of yellow of orange, then never pick green.

Re: Weekend project: Better model pattern colour selection

Posted: Sat May 31, 2014 2:38 pm
by bszlrd
Oooo. I like it. :)

Re: Weekend project: Better model pattern colour selection

Posted: Mon Jun 02, 2014 8:39 pm
by DraQ
robn wrote:It does ok, but not great.
Especially with neon pink - fluorescent green combo Pioneer seems to love so much. :P

Re: Weekend project: Better model pattern colour selection

Posted: Thu Sep 10, 2015 5:11 pm
by FluffyFreak

Re: Weekend project: Better model pattern colour selection

Posted: Tue Mar 08, 2016 7:03 pm
by FluffyFreak
Just to bubble this to the top again but there are ports to various languages including C# -> https://github.com/nathanpjones/randomColorSharped

Re: Weekend project: Better model pattern colour selection

Posted: Thu Mar 10, 2016 11:32 am
by FluffyFreak
PR for this idea is now up.