tanishq2520/Algo-Visualizer

Replace speed control buttons with a dynamic slider

Open

#1 opened on Oct 12, 2025

 (0 comments) (0 reactions) (0 assignees)Python (10 forks)auto 404
enhancementhelp wantedstreamlit

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

The current speed control uses fixed buttons (1x, 2x, 4x, 8x), which feels clunky and offers limited options. We should replace this with a slider for a smoother, more intuitive user experience.

Implementation Plan:

Remove the existing st.button elements for speed control.

Implement st.slider to allow the user to select a speed value. A good range might be from 1 (slowest) to 10 (fastest).

The value from the slider should dynamically control the time.sleep() duration in the animation loop. For example, time.sleep(1 / slider_value).

The change must be reflected instantly as the user moves the slider, without needing to regenerate the frames.

Contributor guide