velato 0.10.0

A Lottie integration for vello.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2024 the Velato Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

use super::shape::Shape;
use crate::schema::animated_properties::shape_property::ShapeProperty;
use serde::{Deserialize, Serialize};

/// Animatable Bezier curve
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct PathShape {
    #[serde(flatten)]
    pub shape: Shape,

    /// Bezier path
    #[serde(rename = "ks")]
    pub shape_property: ShapeProperty,
}