apply method
Implementation
@override
void apply(ActorComponent? component, double mix) {
ActorColor ac = component as ActorColor;
int l = _value.length;
Float32List wr = ac.color;
if (mix == 1.0) {
for (int i = 0; i < l; i++) {
wr[i] = _value[i];
}
} else {
double mixi = 1.0 - mix;
for (int i = 0; i < l; i++) {
wr[i] = wr[i] * mixi + _value[i] * mix;
}
}
ac.markPaintDirty();
}