Expand description
A circular HSV color wheel widget for Iced.
Renders a hue/saturation wheel (angle = hue, distance = saturation) with click-and-drag interaction. Pair with a brightness slider for full HSV control.
§Usage
use iced::widget::canvas;
use iced_color_wheel::WheelProgram;
// In your view function:
let wheel = canvas(WheelProgram::new(hue, saturation, value, |h, s| {
MyMessage::HueSatChanged(h, s)
}))
.width(250)
.height(250);Structs§
- Wheel
Program - A circular HSV color wheel canvas program for Iced.
- Wheel
State - Internal canvas state (persists across frames).
Functions§
- color_
to_ hsv - Convert iced::Color to HSV (h: 0-360, s: 0-1, v: 0-1).
- hex_
to_ color - Parse a hex string (#RRGGBB or RRGGBB) to iced::Color.
- hsv_
to_ color - Convert HSV (h: 0-360, s: 0-1, v: 0-1) to iced::Color.
- hsv_
to_ hex - Convert HSV to hex string (#RRGGBB).