Blending between colours on LEDs - PBF4 | Intech Studio
💬 general Grid

Blending between colours on LEDs - PBF4

Phil Maguire
Phil Maguire · · 15 replies

Is it possible to blend between two colours on the LEDs on the PBF4? I am finding the editor very confusing and I can't find where this option may be, or any clear outline of if it's possible. For instance I would want the LED on fader 1 to be blue when the fader is at 0 and blend to orange as I move the fader up.

Replies (15)

narayb narayb ·

There is a feature that does this called the functions led_color_min() , led_color_mid(),
led_color_max().

Here we talk about it in a forum thread: https://forum.intech.studio/t/led-color-min-mid-max/258/4.

narayb narayb ·

Generally you want to use it the following way:

  • Under init/setup event of your fader add the two colors you'd want to blend inbetween as min and max using the above functions in a Code Block.
  • Now your fader's LED should change color and not brightness when you move it!
narayb narayb ·

As an example, it should look something like this.

image.png
Phil Maguire Phil Maguire ·

@user that didn't seem to do anything. it's just changing the intensity of one colour?

narayb narayb ·

Oh true, you need the mid value as well.

narayb narayb ·

I'll just upload the example to the cloud under the name "Color feedback fader", please check it.

narayb narayb ·

Now you should be able to find it.

Phil Maguire Phil Maguire ·

wait it is working! i missed the 'num' part

Phil Maguire Phil Maguire ·

where is this?

narayb narayb ·
image.png
Phil Maguire Phil Maguire ·

ah thanks

Phil Maguire Phil Maguire ·

i get this error with the color feedback fader code

image.png
Phil Maguire Phil Maguire ·

just using this code seems to work fine

led_color_min(num, 1, 255, 0, 0) led_color_max(num, 1, 0, 0, 255)

narayb narayb ·

If that works for you that's great!

narayb narayb ·

I would suggest using mid for the second code to not have to change anything else.

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →