pub struct ChromaticAberrationConfig {
pub delay: f64,
pub duration: f64,
pub amount: f32,
pub easing: EasingType,
}Expand description
Per-element channel-split effect: the red and cyan (green+blue) channels
of the node’s own rendered content separate by amount px and converge
back to a perfect overlap by the end of duration — the same “zero at
the end” guarantee TransitionType::ChromaticWipe gives its reveal edge
(see engine::transition::chromatic_wipe), so no node is left
permanently fringed once the effect has played.
Fields§
§delay: f64Delay before the split starts (seconds).
duration: f64How long the channels take to converge back to zero separation (seconds).
amount: f32How far the red and cyan channels separate at the peak (px), reached
the instant the effect starts (delay) and decaying to 0 by
delay + duration.
easing: EasingTypeEasing applied to the decay from amount down to zero.
Trait Implementations§
Source§impl Clone for ChromaticAberrationConfig
impl Clone for ChromaticAberrationConfig
Source§impl Debug for ChromaticAberrationConfig
impl Debug for ChromaticAberrationConfig
Source§impl<'de> Deserialize<'de> for ChromaticAberrationConfig
impl<'de> Deserialize<'de> for ChromaticAberrationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ChromaticAberrationConfig
impl JsonSchema for ChromaticAberrationConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for ChromaticAberrationConfig
Auto Trait Implementations§
impl Freeze for ChromaticAberrationConfig
impl RefUnwindSafe for ChromaticAberrationConfig
impl Send for ChromaticAberrationConfig
impl Sync for ChromaticAberrationConfig
impl Unpin for ChromaticAberrationConfig
impl UnsafeUnpin for ChromaticAberrationConfig
impl UnwindSafe for ChromaticAberrationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more