mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 04:58:12 +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
87a048232c
commit
c2f27bf743
@@ -997,7 +997,7 @@ pub fn flatten_gradient<T: IntoGraphicList>(_: impl Ctx, #[implementations(List<
|
||||
}
|
||||
|
||||
/// 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"))]
|
||||
fn colors_to_gradient<T: IntoGraphicList>(_: impl Ctx, #[implementations(List<Graphic>, List<Color>)] colors: T) -> Gradient {
|
||||
Gradient::from(colors.into_flattened_list::<Color>())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user