summaryrefslogtreecommitdiff
path: root/rust/crates/graphics/src/gradient/mod.rs
blob: ec597ad08ab4c9ed0bd7ca6fcce50592a155e8a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod ast;
pub mod parser;
pub mod raster;
pub mod stops;

pub use ast::{
    Color, ColorStop, Distance, GradientAst, GradientKind, GradientOrientation,
    LinearOrientation, Position, RadialOrientation, Shape, ShapeKind, ShapeStyle,
};
pub use parser::{GradientParseError, parse_gradient};
pub use raster::{
    BackgroundLayer, draw_css_background, is_gradient_layer, parse_background_layers,
    split_css_layers,
};
pub use stops::{NormalizedColorStop, color_to_string, normalize_color_stops};