mirror of
https://github.com/obsqrbtz/egui_knob.git
synced 2026-04-08 20:19:17 +03:00
update README.md
This commit is contained in:
@@ -18,6 +18,7 @@ A simple, customizable knob widget for egui.
|
|||||||
- Configurable sweep range
|
- Configurable sweep range
|
||||||
- Background arc with filled segments
|
- Background arc with filled segments
|
||||||
- Adjustable drag sensitivity
|
- Adjustable drag sensitivity
|
||||||
|
- Logarithmic scaling
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -104,6 +105,13 @@ Knob::new(&mut value, 0.0, 1.0, KnobStyle::Wiper)
|
|||||||
.with_label_format(|v| format!("{:.0}%", v * 100.0));
|
.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
|
## Running demo app
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user