Move the gradient-focused nodes from the Color category to a new Gradient category (#4403)

This commit is contained in:
Keavon Chambers
2026-08-04 04:27:37 -07:00
committed by Dennis Kobert
parent c5cb466e28
commit 27f1e8a65b
3 changed files with 7 additions and 6 deletions

View File

@@ -556,7 +556,7 @@ pub fn flatten_gradient<'e>(
}
/// Constructs a gradient from a `Color[]`, where the colors are evenly distributed as gradient stops across the range from 0 to 1.
#[node_macro::node(category("Color"), name("Colors to Gradient"))]
#[node_macro::node(category("Gradient"), name("Colors to Gradient"))]
pub fn colors_to_gradient(_: impl Ctx, colors: IList<Color>) -> Gradient {
Gradient::from(colors.iter().collect::<Vec<_>>())
}