tawasuyu/llimphi
Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.
⎇ main
shared/foreign-lottie/src/schema/shapes/gradient_fill.rs
Ñawpa willay
Pi imata llamkarqan
ch'uya
1// Copyright 2024 the Velato Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4use super::base_gradient::BaseGradientShape;
5use crate::schema::constants::fill_rule::FillRule;
6use crate::schema::{animated_properties::value::FloatValue, shapes::shape_style::ShapeStyleShape};
7use serde::{Deserialize, Serialize};
8
9#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
10pub struct GradientFillShape {
11 #[serde(flatten)]
12 pub shape_style: ShapeStyleShape,
13
14 /// Gradient data
15 #[serde(flatten)]
16 pub gradient: BaseGradientShape,
17
18 /// Fill Rule
19 #[serde(rename = "r")]
20 pub fill_rule: Option<FillRule>,
21}