Quick select tool

This commit is contained in:
Skyler Lehmkuhl
2026-03-07 05:30:51 -05:00
parent 1900792fa9
commit 354b96f142
3 changed files with 280 additions and 19 deletions
@@ -84,6 +84,9 @@ pub struct RasterToolSettings {
pub wand_mode: FillThresholdMode,
/// true = BFS from click (contiguous region only); false = global color scan.
pub wand_contiguous: bool,
// --- Quick Select ---
/// Brush radius in canvas pixels for the quick-select tool.
pub quick_select_radius: f32,
// --- Flood fill (Paint Bucket, raster) ---
/// Color-distance threshold (Euclidean RGBA, 0–510). Pixels within this
/// distance of the comparison color are included in the fill.
@@ -152,6 +155,7 @@ impl Default for RasterToolSettings {
fill_threshold: 15.0,
fill_softness: 0.0,
fill_threshold_mode: FillThresholdMode::Absolute,
quick_select_radius: 20.0,
}
}
}