|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| std::vector< Nodes::LineVertex > MayaFlux::Kinesis::apply_color_gradient | ( | const std::vector< glm::vec3 > & | positions, |
| const std::vector< glm::vec3 > & | colors, | ||
| const std::vector< float > & | color_positions = {}, |
||
| float | default_thickness = 1.0F |
||
| ) |
Apply color interpolation to position vertices.
| positions | Input position vertices |
| colors | Color stops for interpolation |
| color_positions | Normalized positions [0,1] for each color stop |
| default_thickness | Line thickness for all vertices (default: 1.0) |
Example: colors = {red, blue} color_positions = {0.0, 1.0} → Linear gradient from red to blue along path
If color_positions.empty(), distributes colors uniformly.
Definition at line 558 of file GeometryPrimitives.cpp.
References apply_color_gradient().
Referenced by apply_color_gradient().
Here is the call graph for this function:
Here is the caller graph for this function: