git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit3930772e0645cb9ab288834e98699d5a9fc1d5b4
parent6ecddd501f
authorLucas Galante <[email protected]>
date2026-07-04 21:02
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;