Page 1 of 2

ochres: HSL palette composer

Posted: Sat Nov 03, 2012 8:36 pm
by spir
Hello,

Just created 'ochres', a color definer and palette composer using HSL (not HSV!).
This is my first trial at doing anything with Löve, which --indeed-- I just love. An opportunity to explore the framwork. Too bad it's not yet a game, but that will come...

I would thus really enjoy comments and (sensible) critics on:
* interface, usability, design
* code organisation, style
* use of Löve, idiomatic code
* ...

The .love pack is at https://bitbucket.org/denispir/lov/down ... chres.love.
There is a single actual Lua module, ochres.lua, plus a few utilities and main.lua.
User help integrated.

Thank you,
Denis

Re: ochres: HSL palette composer

Posted: Sat Nov 03, 2012 8:44 pm
by Santos
The link doesn't work for me, is the repo private?

EDIT: Works now! :)

Re: ochres: HSL palette composer

Posted: Sat Nov 03, 2012 9:27 pm
by spir
Santos wrote:The link doesn't work for me, is the repo private?
Oups! Just created it and did not check that... should work now, would you check?

Denis

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 10:34 am
by spir
Updated with a few fixes for minor bugs, created an online repository and a wiki page.
(The also wiki points to the .love package.)
Denis

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 2:16 pm
by qaisjp
Nice stuff... what about YUV ;D

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 4:20 pm
by Lap
I like it. I would suggest adding in a few buttons that automatically add some recommended companion colors to the current color.

See http://colorschemedesigner.com/ for some examples.

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 5:38 pm
by spir
qaisjp wrote:Nice stuff... what about YUV ;D
Thank you.
Well, YUV seems interesting, but I don't what use we may have of it in ordinary software.

Denis

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 5:49 pm
by spir
Lap wrote:I like it. I would suggest adding in a few buttons that automatically add some recommended companion colors to the current color.

See http://colorschemedesigner.com/ for some examples.
Thank you.

Yes, this may be a nice add-on, but a bit complicated to set up for me as of now (especially without using a GUI lib, which I try to avoid).
However, once you have understood how HSL works, then it provides a kind of direct access to defining colors that fit well together. That's the whole point, compared to RGB (or worse, a "distorted" color space like HSV). For instance, the schemes recommended on the site you mention are just color nicely distributing on hue: they take the complementary color (oppsite hue) for a scheme of 2, two colors around this complement for a scheme of 3, finally these 2 complements plus another close to the original for a scheme of 4.

Denis

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 9:31 pm
by spir
Uploaded new version, still at ochres.love.

Was for a bug: I first had scales computed every frame (for testing), with every grade converted hsl --> rgb; then forgot to let them store computed values in an array, and only recompute when the color is changed; now, they do! ;)
Also changed vertical size of scales to 128 pixels, so that I don't need to compute grade values (eh, it's just y*2!)...

However, on my computer weak and old computer, it takes much CPU power (say, > 80%, and frame rate is about 37 FPS). Don't know if it's "normal". The program does not compute anything once load() is done, as long as the user does not change colors. Can someone tell me?

Denis

Re: ochres: HSL palette composer

Posted: Sun Nov 04, 2012 9:38 pm
by Larsii30
Looks intresting.
One thing I would like to have was to just hold the left mouse button instead of click everytime to change the settings. ( slider ).