diff --git a/node-graph/nodes/graphic/src/graphic.rs b/node-graph/nodes/graphic/src/graphic.rs index 02a97c72c2..f467008f32 100644 --- a/node-graph/nodes/graphic/src/graphic.rs +++ b/node-graph/nodes/graphic/src/graphic.rs @@ -1007,7 +1007,7 @@ pub async fn flatten_gradient(_: impl Ctx, #[implementations } /// 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(_: impl Ctx, #[implementations(List, List)] colors: T) -> Item { Item::new_from_element(Gradient::from(colors.into_flattened_list::())) } diff --git a/node-graph/nodes/math/src/lib.rs b/node-graph/nodes/math/src/lib.rs index b1e1f92a8a..9bda897f82 100644 --- a/node-graph/nodes/math/src/lib.rs +++ b/node-graph/nodes/math/src/lib.rs @@ -1378,7 +1378,7 @@ fn gradient_value(_: impl Ctx, _primary: (), #[default(Color::BLACK, Color::WHIT } /// Sets the type (linear or radial) of each gradient in the input list. -#[node_macro::node(category("Color"))] +#[node_macro::node(category("Gradient"))] fn gradient_type(_: impl Ctx, gradient: Item, gradient_type: Item) -> Item { let mut gradient = gradient; gradient.set_attribute(core_types::ATTR_GRADIENT_TYPE, *gradient_type.element()); @@ -1386,7 +1386,7 @@ fn gradient_type(_: impl Ctx, gradient: Item, gradient_type: Item, spread_method: Item) -> Item { let mut gradient = gradient; gradient.set_attribute(core_types::ATTR_SPREAD_METHOD, *spread_method.element()); @@ -1396,7 +1396,7 @@ fn spread_method(_: impl Ctx, gradient: Item, spread_method: Item, positions: List) -> Item { let mut gradient = gradient; let positions: Vec = positions.iter_element_values().copied().collect(); @@ -1409,7 +1409,7 @@ fn gradient_positions(_: impl Ctx, gradient: Item, positions: List, midpoints: List) -> Item { let mut gradient = gradient; let midpoints: Vec = midpoints.iter_element_values().copied().collect(); diff --git a/tools/node-docs/src/utility.rs b/tools/node-docs/src/utility.rs index b8734742c8..898ad0c622 100644 --- a/tools/node-docs/src/utility.rs +++ b/tools/node-docs/src/utility.rs @@ -13,13 +13,14 @@ pub fn category_description(category: &str) -> &str { " ), "Blending" => "Nodes in this category control how overlapping graphical content is composited together, considering blend modes, opacity, and clipping.", - "Color" => "Nodes in this category deal with selecting and manipulating colors, gradients, and palettes.", + "Color" => "Nodes in this category deal with selecting and manipulating colors and palettes.", "Debug" => indoc!( " Nodes in this category are temporarily included for debugging purposes by Graphite's developers. They may have rare potential uses for advanced users, but are not intended for general use and will be removed in future releases. " ), "General" => "Nodes in this category deal with general data handling, such as merging and flattening graphical elements.", + "Gradient" => "Nodes in this category build gradients and adjust the placement of their color stops, as well as the shape and repetition of the transition between them.", "Context" => "Nodes in this category read data from the evaluation context supplied by downstream nodes, such as the current loop iteration index.", "Repeat" => "Nodes in this category enable the duplication, arrangement, and looped generation of graphical elements.", "Math: Arithmetic" => "Nodes in this category perform common arithmetic operations on numerical values (and where applicable, `vec2` values).",