Weekend project: Better model pattern colour selection

Post Reply
robn
Posts: 302
Joined: Mon Jul 01, 2013 1:11 am
Location: Melbourne, Australia

Weekend project: Better model pattern colour selection

Post 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.
bszlrd
Posts: 1084
Joined: Mon Jul 01, 2013 3:25 pm
Location: Budapest HU

Re: Weekend project: Better model pattern colour selection

Post by bszlrd »

Oooo. I like it. :)
DraQ
Posts: 149
Joined: Sun Mar 23, 2014 10:02 pm

Re: Weekend project: Better model pattern colour selection

Post by DraQ »

robn wrote:It does ok, but not great.
Especially with neon pink - fluorescent green combo Pioneer seems to love so much. :P
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Weekend project: Better model pattern colour selection

Post by FluffyFreak »

FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Weekend project: Better model pattern colour selection

Post by FluffyFreak »

Just to bubble this to the top again but there are ports to various languages including C# -> https://github.com/nathanpjones/randomColorSharped
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Weekend project: Better model pattern colour selection

Post by FluffyFreak »

PR for this idea is now up.
Post Reply