Page 1 of 1

Linear Color Interpolation

Posted: Fri Jul 04, 2014 3:35 pm
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 20663 times

Re: Linear Color Interpolation

Posted: Fri Jul 04, 2014 5:04 pm
by Drnkhobo
Nice!

Thanks Tulamide ;)

Re: Linear Color Interpolation

Posted: Fri Jul 04, 2014 10:27 pm
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!

Re: Linear Color Interpolation

Posted: Sat Jul 05, 2014 4:32 pm
by tulamide
You're welcome, guys :)

Re: Linear Color Interpolation

Posted: Mon Sep 01, 2014 3:38 pm
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. :)

Re: Linear Color Interpolation

Posted: Tue Sep 02, 2014 5:35 pm
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.