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

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Linear Color Interpolation

Post any examples or modules that you want to share here

Linear Color Interpolation

Postby tulamide » Fri Jul 04, 2014 3:35 pm

A little "green" module that might be of help. Note that "min color" and "max color" doesn't mean a darker and a brighter color, or something, but refers to the t-value. "min color" is the resulting color, when t-value = 0, and "max color" the resulting color when t-value = 1. If you provide an alpha value, then alpha isn't interpolated but instead uses that fixed value.

Could be used as an indicator for the strength of a signal, or in excessive use for different skins of a GUI, etc.

(If this already exists as a stock module or prim, I beg your pardon. But I couldn't find anything, that's why I built one for myself)

linear color interpolation.png
linear color interpolation.png (21.56 KiB) Viewed 18661 times
Attachments
linear color interpolation.fsm
(5.17 KiB) Downloaded 1199 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Linear Color Interpolation

Postby Drnkhobo » Fri Jul 04, 2014 5:04 pm

Nice!

Thanks Tulamide ;)
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Linear Color Interpolation

Postby Jay » Fri Jul 04, 2014 10:27 pm

thankyou for sharing the schematic and the info! i was one of the people who thought it was lighter and darker variants of a color!
Jay
 
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: Linear Color Interpolation

Postby tulamide » Sat Jul 05, 2014 4:32 pm

You're welcome, guys :)
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Linear Color Interpolation

Postby Perfect Human Interface » Mon Sep 01, 2014 3:38 pm

Neat! I sometimes control/automate the Hue value in colors for different effects, but this should open up some possibilities for color blending. :)
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Linear Color Interpolation

Postby tulamide » Tue Sep 02, 2014 5:35 pm

Perfect Human Interface wrote:Neat! I sometimes control/automate the Hue value in colors for different effects, but this should open up some possibilities for color blending. :)

Thank you. Yes, it openms up a lot of opportunities to visualize dsp in a more intuitive way (color blended frequencies, dynamics, etc.) Hope you will some day show what you made out of it :mrgreen:

btw, by chaining those linear modules, you can also achieve cubic or qarp etc., i.e. from color a to color b over color c (and over color d, and over...) But i felt it was too bloated to do that, so I stayed at lerp.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to User Examples

Who is online

Users browsing this forum: No registered users and 56 guests