update README.md

This commit is contained in:
Julius Schmitt
2026-01-22 21:03:26 +01:00
parent 37d0792175
commit 9facd0fdfd
2 changed files with 8 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ A simple, customizable knob widget for egui.
- Configurable sweep range
- Background arc with filled segments
- Adjustable drag sensitivity
- Logarithmic scaling
## Installation
@@ -104,6 +105,13 @@ Knob::new(&mut value, 0.0, 1.0, KnobStyle::Wiper)
.with_label_format(|v| format!("{:.0}%", v * 100.0));
```
#### Logarithmic Knobs
```rust
// Display as percentage
Knob::new(&mut value, 0.0, 1.0, KnobStyle::Wiper)
.with_logarithmic_scaling(true);
```
## Running demo app
```bash

BIN
scrot.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 112 KiB