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.
Weekend project: Better model pattern colour selection
Re: Weekend project: Better model pattern colour selection
Oooo. I like it. :)
Re: Weekend project: Better model pattern colour selection
Especially with neon pink - fluorescent green combo Pioneer seems to love so much. :Probn wrote:It does ok, but not great.
-
- Posts: 1343
- Joined: Tue Jul 02, 2013 1:49 pm
- Location: Beeston, Nottinghamshire, GB
- Contact:
-
- Posts: 1343
- Joined: Tue Jul 02, 2013 1:49 pm
- Location: Beeston, Nottinghamshire, GB
- Contact:
Re: Weekend project: Better model pattern colour selection
Just to bubble this to the top again but there are ports to various languages including C# -> https://github.com/nathanpjones/randomColorSharped
-
- Posts: 1343
- Joined: Tue Jul 02, 2013 1:49 pm
- Location: Beeston, Nottinghamshire, GB
- Contact:
Re: Weekend project: Better model pattern colour selection
PR for this idea is now up.