vello_common 0.0.8

Core data structures and utilities shared across the Vello rendering, including geometry processing and tiling logic.
Documentation
// Copyright 2026 the Vello Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! The flood filter.

use crate::color::{AlphaColor, Srgb};

/// A flood filter.
#[derive(Debug)]
pub struct Flood {
    /// The flood color.
    pub color: AlphaColor<Srgb>,
}

impl Flood {
    /// Create a new flood filter with the specified color.
    pub fn new(color: AlphaColor<Srgb>) -> Self {
        Self { color }
    }
}