[][src]Struct tray_rust::film::animated_color::AnimatedColor

pub struct AnimatedColor { /* fields omitted */ }

AnimatedColor is a list of colors associated with time points in the scene that will compute the color at the desired time by blending the two nearest ones

Methods

impl AnimatedColor[src]

pub fn with_keyframes(keyframes: Vec<ColorKeyframe>) -> AnimatedColor[src]

Create an animated transform that will blend between the passed keyframes

pub fn color(&self, time: f32) -> Colorf[src]

Compute the color at the desired time

Trait Implementations

impl Clone for AnimatedColor[src]

impl Debug for AnimatedColor[src]

Auto Trait Implementations

impl Send for AnimatedColor

impl Sync for AnimatedColor

impl Unpin for AnimatedColor

impl UnwindSafe for AnimatedColor

impl RefUnwindSafe for AnimatedColor

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T[src]