Skip to content
Snippets Groups Projects
Commit 11cf4025 authored by Daniel's avatar Daniel
Browse files

updated screenshots

parent 2a198dfd
No related branches found
No related tags found
No related merge requests found
Pipeline #223204 passed
# Sorting Visualizer
# Sorting Visualizer
Sorting Visualizer demonstrates how Bubble Sort works through an interactive graphical interface.
---
![unsorted](unsorted.png)
![sorted](sorted.png)
[Check it out](https://sorting-visualizer-stdarunte-0b3511e20a59a622aed5caf7134ac4faf2.h-da.io/)
---
![unsorted](screenshots/unsorted.png)
![sorted](screenshots/sorted.png)
screenshots/sorted.png

72.5 KiB

screenshots/unsorted.png

80.1 KiB

......@@ -103,7 +103,7 @@ function SortingVisualizer() {
}} defaultValue={BarNumber}
value={BarNumber} style={{width: '50px', margin: '10px'}}/>
<div style={{background: 'gray', height: '85%', width: '2px'}}></div>
<div className="SpeedLabel">Sorting-Speed: </div>
<div className="SpeedLabel">Sorting-Speed:</div>
<button className="Button" disabled={sorting}
style={{background: `${sortSpeed == 100 ? 'green' : ''}`}}
onClick={() => setSortSpeed('100')}>Slow
......
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import {StrictMode} from 'react'
import {createRoot} from 'react-dom/client'
import SortingVisualizer from './SortingVisualizer.jsx'
createRoot(document.getElementById('root')).render(
<StrictMode>
<SortingVisualizer />
</StrictMode>,
)
<StrictMode>
<SortingVisualizer/>
</StrictMode>,
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment