iced_color_wheel
A circular HSV color wheel widget for Iced.
No circular color wheel picker exists in the Iced ecosystem — this fills that gap.
Features
- Circular hue/saturation wheel (angle = hue, distance from center = saturation)
- Smooth gradient rendering (360 hue steps x 128 saturation bands)
- Click and drag interaction with proper mouse cursor feedback
- Brightness (value) parameter controls wheel appearance
- HSV/RGB/hex conversion utilities included
- Generic over your app's message type
Usage
Add to your Cargo.toml:
[]
= { = "../iced_color_wheel" }
# or from crates.io once published:
# iced_color_wheel = "0.1"
In your Iced app:
use canvas;
use ;
// In your view function:
let wheel = canvas
.width
.height;
Pair with an Iced slider for brightness control — see the basic example for a complete setup.
Examples
Conversion Utilities
use ;
let color = hsv_to_color; // bright green
let = color_to_hsv;
let hex = hsv_to_hex; // "#33FF33"
let parsed = hex_to_color; // Some(red)
License
MIT