Linear Color Interpolation

Post any examples or modules that you want to share here
Post Reply
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Linear Color Interpolation

Post by tulamide »

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 20647 times
Attachments
linear color interpolation.fsm
(5.17 KiB) Downloaded 1275 times
"There lies the dog buried" (German saying translated literally)
Drnkhobo
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Linear Color Interpolation

Post by Drnkhobo »

Nice!

Thanks Tulamide ;)
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: Linear Color Interpolation

Post by Jay »

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!
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Linear Color Interpolation

Post by tulamide »

You're welcome, guys :)
"There lies the dog buried" (German saying translated literally)
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Linear Color Interpolation

Post by Perfect Human Interface »

Neat! I sometimes control/automate the Hue value in colors for different effects, but this should open up some possibilities for color blending. :)
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Linear Color Interpolation

Post by tulamide »

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)
Post Reply