I have this code repeating at the bottom of every one of my presets, how do i save space by having it apply to all of them
TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrWipe<1000>>,AlphaL<RgbArg<BASE_COLOR_ARG,Blue>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>
, TransitionEffectL<TrConcat<TrExtend<2000,TrWipe<100>>,AlphaL<RgbArg<BASE_COLOR_ARG,Blue>,SmoothStep<VolumeLevel,Int<-1>>>,TrFade<300>>,EFFECT_VOLUME_LEVEL>
Code/memory space? You don’t.
Visual space? Alias it.
using [Name] = [typename]
See
It works for style “fragments” also since using is a C++ feature.
It should be noted that C++ often (but not always) only generate code for the repeated part once.