GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Increase float Ramp curve resolution to 600 slices for smooth visual line rendering
src/widget/input/ramp.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/widget/input/ramp.rs b/src/widget/input/ramp.rs
index 2cf096d..bc78f64 100644
--- a/src/widget/input/ramp.rs
+++ b/src/widget/input/ramp.rs
@@ -670,7 +670,7 @@ impl Element for Ramp {
}
// Curve area fill and outline
- let slices = 80;
+ let slices = 600;
let slice_w = track_w / slices as f32;
for i in 0..slices {
let t1 = i as f32 / slices as f32;