mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
Move the gradient-focused nodes from the Color category to a new Gradient category (#4403)
This commit is contained in:
committed by
Dennis Kobert
parent
c5cb466e28
commit
27f1e8a65b
@@ -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<_>>())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user