pub struct ColorOverride {
pub blend_op: u8,
pub corners_rgba: [[u8; 4]; 4],
pub rate: f32,
pub priority: PriorityMode,
pub set_frame: i32,
pub first_eval_update: Option<u64>,
}Expand description
Per-part color override (mirrors SS6 PartsColorChange). Applied to Normal
parts only. Corners are stored raw (r, g, b, a) in ssruntime order
lt, rt, lb, rb; alpha is pre-multiplied at the seam against the part’s
composited alpha, matching keyframed PartColor.
Fields§
§blend_op: u80=Mix 1=Mul 2=Add 3=Sub.
corners_rgba: [[u8; 4]; 4]Four corners lt, rt, lb, rb, each [r, g, b, a].
rate: f32Per-corner blend rate (single value applied to all corners; 1.0 = full).
priority: PriorityMode§set_frame: i32OverwriteOnNextKeyframe only: the integer frame the override was set on
(floor of the playhead). Handover fires once playback decodes a
surviving PartColor keyframe after this — but the override’s own
set_frame keyframe is ignored through the update of its first
evaluation, so setting on a keyframe wins that keyframe’s segment. Unused
for other modes.
first_eval_update: Option<u64>OverwriteOnNextKeyframe only: the update the override was first
evaluated in (the context’s Context::update count), or None before
that. Every evaluation in that update skips set_frame, so a frame
evaluated again gives the same answer. See
PriorityMode::OverwriteOnNextKeyframe / passed_reaches_key.