Weekend project: Better model pattern colour selection
Posted: Sat May 31, 2014 3:25 am
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.
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.