tanishq2520/Algo-Visualizer

Replace speed control buttons with a dynamic slider

开放

#1 创建于 2025年10月12日

 (0 条评论) (0 个反应) (0 位负责人)Python (10 个派生)auto 404
enhancementhelp wantedstreamlit

仓库指标

星标
 (0 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南