Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

(RUBY) Advanced Color Management

Post any examples or modules that you want to share here

(RUBY) Advanced Color Management

Postby tulamide » Thu Jun 04, 2015 6:16 pm

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 32119 times


Download reanabled here on the forums.
Attachments
Color mixer r4-2 FS3.fsm
(7.28 KiB) Downloaded 451 times
Last edited by tulamide on Sat Oct 01, 2022 10:05 pm, edited 8 times in total.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Generic Color Mixer with alpha channel

Postby primate » Thu Jun 04, 2015 10:07 pm

Thanks fella, sounds handy already, will happily see if I can add to it.
primate
 
Posts: 22
Joined: Thu Dec 19, 2013 10:42 pm

Re: Generic Color Mixer with alpha channel

Postby Perfect Human Interface » Fri Jun 05, 2015 6:08 am

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.
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Generic Color Mixer with alpha channel

Postby tulamide » Fri Jun 05, 2015 1:14 pm

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.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Generic Color Mixer with alpha channel

Postby tulamide » Sun Jun 14, 2015 11:22 pm

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.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: (RUBY) Generic Color Mixer incl. alpha

Postby Perfect Human Interface » Mon Jun 15, 2015 11:22 pm

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.
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: (RUBY) Generic Color Mixer incl. alpha

Postby tulamide » Tue Jun 16, 2015 10:07 am

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.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: (RUBY) Generic Color Mixer incl. alpha

Postby tulamide » Sun Jun 21, 2015 1:33 pm

New version r3!

See first post for image, changelog and to download. Comments very welcome.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: (RUBY) Generic Color Mixer incl. alpha

Postby Nubeat7 » Sun Jun 21, 2015 2:21 pm

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?
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: (RUBY) Generic Color Mixer incl. alpha

Postby Nubeat7 » Sun Jun 21, 2015 2:46 pm

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...
Attachments
color_mixer_r3_propertiestool.fsm
(5.56 KiB) Downloaded 1306 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Next

Return to User Examples

Who is online

Users browsing this forum: No registered users and 34 guests