diff options
| author | Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> | 2024-01-25 23:14:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-25 15:14:48 +0000 |
| commit | f1fbb479b02fa7ebf98ba65bdb79666e150d5930 (patch) | |
| tree | 73a0fe87585f3a097c8e47a1663b2baedbb994d0 | |
| parent | 02b16bf9cfd2f0dc095055487434a94a63485eeb (diff) | |
Make typst's advanced color public (#3234)
| -rw-r--r-- | crates/typst/src/visualize/color.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/typst/src/visualize/color.rs b/crates/typst/src/visualize/color.rs index 9a3fd5c3..90ac8c3d 100644 --- a/crates/typst/src/visualize/color.rs +++ b/crates/typst/src/visualize/color.rs @@ -19,13 +19,13 @@ use crate::layout::{Angle, Ratio}; use crate::syntax::{Span, Spanned}; // Type aliases for `palette` internal types in f32. -pub(crate) type Oklab = palette::oklab::Oklaba<f32>; -pub(crate) type Oklch = palette::oklch::Oklcha<f32>; -pub(crate) type LinearRgb = palette::rgb::Rgba<Linear<encoding::Srgb>, f32>; -pub(crate) type Rgb = palette::rgb::Rgba<encoding::Srgb, f32>; -pub(crate) type Hsl = palette::hsl::Hsla<encoding::Srgb, f32>; -pub(crate) type Hsv = palette::hsv::Hsva<encoding::Srgb, f32>; -pub(crate) type Luma = palette::luma::Luma<encoding::Srgb, f32>; +pub type Oklab = palette::oklab::Oklaba<f32>; +pub type Oklch = palette::oklch::Oklcha<f32>; +pub type LinearRgb = palette::rgb::Rgba<Linear<encoding::Srgb>, f32>; +pub type Rgb = palette::rgb::Rgba<encoding::Srgb, f32>; +pub type Hsl = palette::hsl::Hsla<encoding::Srgb, f32>; +pub type Hsv = palette::hsv::Hsva<encoding::Srgb, f32>; +pub type Luma = palette::luma::Luma<encoding::Srgb, f32>; /// Equivalent of [`std::f32::EPSILON`] but for hue angles. const ANGLE_EPSILON: f32 = 1e-5; |
