diff --git a/README.md b/README.md index 6e52c49..6d80747 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/scrot.png b/scrot.png index c53b93f..f8a5fb3 100644 Binary files a/scrot.png and b/scrot.png differ