![]() # Objective Add interpolation in HSL and HSV colour spaces for UI gradients. ## Solution Added new variants to `InterpolationColorSpace`: `Hsl`, `HslLong`, `Hsv`, and `HsvLong`, along with mix functions to the `gradients` shader for each of them. #### Limitations * Didn't include increasing and decreasing path support, it's not essential and can be done in a follow up if someone feels like it. * The colour conversions should really be performed before the colours are sent to the shader but it would need more changes and performance is good enough for now. ## Testing ```cargo run --example gradients``` |
||
---|---|---|
.. | ||
box_shadow.rs | ||
box_shadow.wgsl | ||
debug_overlay.rs | ||
gradient.rs | ||
gradient.wgsl | ||
lib.rs | ||
pipeline.rs | ||
render_pass.rs | ||
ui_material_pipeline.rs | ||
ui_material.rs | ||
ui_material.wgsl | ||
ui_texture_slice_pipeline.rs | ||
ui_texture_slice.wgsl | ||
ui_vertex_output.wgsl | ||
ui.wgsl |