Page 1 of 5

(RUBY) Advanced Color Management

Posted: Thu Jun 04, 2015 6:16 pm
by tulamide
Sooner or later we all come to the point where the color prim just isn't sufficient, because it lacks an alpha channel. That's where all of us do our own solutions (mostly a module placed behind the color output, to add an alpha channel).

I think it might be better to have a generic color mixer that all of us can use - and improve. Kind of like a community project, where everyone adds whatever seems helpful and re-uploads here.

Happy programming!

ACM r5
Scroll to page 4 for infos about version r5

Color Mixer r4 (22/June/2015)
color_mixer_r4.png
color_mixer_r4.png (56.09 KiB) Viewed 41243 times


Download reanabled here on the forums.

Re: Generic Color Mixer with alpha channel

Posted: Thu Jun 04, 2015 10:07 pm
by primate
Thanks fella, sounds handy already, will happily see if I can add to it.

Re: Generic Color Mixer with alpha channel

Posted: Fri Jun 05, 2015 6:08 am
by Perfect Human Interface
Hi Tulamide
This was my take on it I made a short while back.
viewtopic.php?f=3&t=3416

Of course you are welcome to modify it if you think you can improve upon it. But it does what I envisioned such a tool should do.

Re: Generic Color Mixer with alpha channel

Posted: Fri Jun 05, 2015 1:14 pm
by tulamide
PHI I'm totally sorry, I completely missed that one! So we now have two solutions.

I advice that if you prefer a green solution that is far more advanced, you should use and support PHI's color designer.

The color mixer stays Ruby-based.

Re: Generic Color Mixer with alpha channel

Posted: Sun Jun 14, 2015 11:22 pm
by tulamide
New version. See first post to download.

color mixer r2 features RGB, HSV (new) and alpha. Values get immediatly updated for the other color model, so you see the changes in realtime.

Still 100% Ruby!

Usage: Click on a box and drag to change a value. Hold shift while dragging to finetune. Double click to enter a value. Use ctrl-c and ctrl-v after double click to copy/paste.

Re: (RUBY) Generic Color Mixer incl. alpha

Posted: Mon Jun 15, 2015 11:22 pm
by Perfect Human Interface
Nice work. The layout is nice and clean.
I notice that the color goes to black when you set hue to 360. Also for the saturation and value parameters, I would personally prefer they were either formatted as percent or 0-255 (int). I think it just seems more consistent. Minor detail though.

Re: (RUBY) Generic Color Mixer incl. alpha

Posted: Tue Jun 16, 2015 10:07 am
by tulamide
Thank you PHI, especially for testing and, most importantly, reporting back!

The 360 issue will be corrected in the next version.
As for sat and val, I wasn't sure what to take. In fact, I already calculated them based on 0-100, but just divided the results by 100 again right before posting. That is because HSV is mathematically defined as hue in full circle degrees, sat and val as 0-1.
Photoshop, iirc, uses 0-100%, so I probably use that.

The next version will look less clean, I'm afraid, because it implements hex color and color wheel.

Re: (RUBY) Generic Color Mixer incl. alpha

Posted: Sun Jun 21, 2015 1:33 pm
by tulamide
New version r3!

See first post for image, changelog and to download. Comments very welcome.

Re: (RUBY) Generic Color Mixer incl. alpha

Posted: Sun Jun 21, 2015 2:21 pm
by Nubeat7
wow! thats amazing tulamide the colorwheel made it real mature now! thanks a lot for this, i didn't test it very deeply yet but it looks like everything is working well.. straight into my toolbox :)

would be something for FS guru too, or?

Re: (RUBY) Generic Color Mixer incl. alpha

Posted: Sun Jun 21, 2015 2:46 pm
by Nubeat7
just an idea to this, i see this more as a propertiestool which ( specially in vsts ) is not part of the GUI itself, to use it like this change the view to "Properties" view, add a ruby module before the output which is just a through module ("output @in" - to use ruby's persistence), and purgeable all the other modules to save filesize...