Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

998 B
Raw Blame
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

//! Animated types for CSS values related to effects.

use crate::values::animated::color::Color;
use crate::values::computed::length::Length;
use crate::values::computed::url::ComputedUrl;
use crate::values::computed::{Angle, NonNegativeLength, Number};
use crate::values::generics::effects::Filter as GenericFilter;
use crate::values::generics::effects::SimpleShadow as GenericSimpleShadow;

/// An animated value for the `drop-shadow()` filter.
pub type AnimatedSimpleShadow = GenericSimpleShadow<Color, Length, NonNegativeLength>;

/// An animated value for a single `filter`.
// raea: url() in servo too (an SVG <filter>, drawn through usvg by blitz-paint; docs/blitz-bevy.feature B4a)
pub type AnimatedFilter = GenericFilter<Angle, Number, Length, AnimatedSimpleShadow, ComputedUrl>;