We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78827ee commit d2d27a6Copy full SHA for d2d27a6
node-graph/gcore-shaders/src/color/color.rs
@@ -701,7 +701,7 @@ impl Color {
701
if c_s <= 0.5 {
702
c_b - (1. - 2. * c_s) * c_b * (1. - c_b)
703
} else {
704
- let d: fn(f32) -> f32 = |x| if x <= 0.25 { ((16. * x - 12.) * x + 4.) * x } else { x.sqrt() };
+ let d = |x: f32| if x <= 0.25 { ((16. * x - 12.) * x + 4.) * x } else { x.sqrt() };
705
c_b + (2. * c_s - 1.) * (d(c_b) - c_b)
706
}
707
0 commit comments