#3480: Change Color: Hue Transform takes After Effects' range

Hue Transform takes -1800..1800 degrees, After Effects' recorded valid range
in the same units. The CPU and GPU renderers wrap the hue (rem_euclid /
fract_euclid), so five turns render like the hue they end on, at the same
cost.
Default and slider are unchanged.
This commit is contained in:
arnav-hiwarkar committed 2026-11-12 15:47:14 +05:30
1 parent 244f9bd846
commit ce4db78896
3 files changed
+2 -2

No files matched your search

-1
View File
@@ -743,7 +743,6 @@ mod tests {
("ec.generate.beam", "endThickness", 3475),
("ec.generate.grid", "border", 3476),
("ec.stylize.scatter", "amount", 3477),
("ec.color.changecolor", "hueTransform", 3480),
("ec.time.pixelmotionblur", "shutterAngle", 3481),
("ec.time.pixelmotionblur", "shutterSamples", 3482),
("ec.noise.fractal", "subSettings/subInfluence", 3485),
+1 -1
View File
@@ -809,7 +809,7 @@ pub fn specs() -> Vec<EffectSpec> {
"Change Color",
vec![
p("view", "View", Value::Enum(0), popup(&["Corrected Layer", "Color Correction Mask"])),
p("hueTransform", "Hue Transform", num(0.0), slider(-360.0, 360.0, -180.0, 180.0, 1)),
p("hueTransform", "Hue Transform", num(0.0), slider(-1800.0, 1800.0, -180.0, 180.0, 1)),
p("lightnessTransform", "Lightness Transform", num(0.0), bipolar()),
p("saturationTransform", "Saturation Transform", num(0.0), bipolar()),
p("colorToChange", "Color To Change", col(0.8, 0.2, 0.2), ParamUi::Color),
+1
View File
@@ -49,6 +49,7 @@ const ROWS: &[(u32, &str, &str, f64, f64)] = &[
(3483, "ec.noise.noisehlsauto", "lightness", 0.0, 1000.0),
(3483, "ec.noise.noisehlsauto", "saturation", 0.0, 1000.0),
(3484, "ec.noise.noisehlsauto", "grainSize", 0.0, 100.0),
(3480, "ec.color.changecolor", "hueTransform", -1800.0, 1800.0),
];
fn path(effect: &str, param: &str) -> String {