Need help programming an effect

I finally have had a lull in my work schedule so I can finally start building my KR Sabers Luke Eco Hero. Can anyone help me achieve this effect as depicted here: Luke Eco Hero Master Chassis?

It looks like a simple KITT effect at the beginning that transitions from blue to green and speeds up until it’s almost a solid pulsing effect.

I have a 5-pixel strip. Tried using the Build A Sequence tool on Fett263’s site, but I just can’t figure it out.

Thanks,

Christopher

Something like this?

StylePtr<Cylon<Blue,20,50,Green,20,500,2000>>()

What if I wanted that to then transition to this: BrownNoiseFlicker<Green,Yellow,50>?

Like this?

StylePtr<Cylon<Blue,20,50,BrownNoiseFlicker<Green,Yellow,50>,100,500,2000>>()

Yes! That’s pretty much it! Just to clarify… instead of a second color you can put another style within a set of < >?

So how would you go about transitioning through several styles? Or can you only transition between two since it is the off / on states?

Also, Since it is a 5-pixel strip, at 20% of the strip it would start out lighting a single pixel, correct?

That’s how styles work. Any COLOR argument can use a STYLE or a LAYER instead.

So based on the above, you can set a ColorSelect<> to contain multiple Styles instead of colors.
You could also use EffectSequence to advance when an EFFECT_SOMETHING happens.

Correct. Provided that you have the blade defined with 5 pixels, as in WS281XBladePtr<5

1 Like

This will cycle through all 4 colors based on the speed set in Saw
StylePtr<ColorSelect<Sum<Variation,Saw<Int<30>,Int<4>,Int<0>>>,TrInstant,Red,Green,Blue,Yellow>>()

Each color could be replaced with a style (simple ones used in example below, but they can be as complex as you want).

StylePtr<ColorSelect<Sum<Variation,Saw<Int<5>,Int<4>>>,TrInstant,

ColorSelect<Sum<Variation,Saw<Int<30>,Int<4>>>,TrFade<500>,
AudioFlicker<White,Blue>,
Gradient<Blue,Green,Yellow,Red>,
StyleFire<Blue,Cyan>,
Blinking<Red,Blue,1000,500>>
>>()
1 Like

Thanks so much, guys! I really appreciate the help!

1 Like