pub struct Effect {
pub color_shift: MultipliedCurve<RangeDegrees>,
pub opacity: MultipliedCurve<RangePercentage>,
pub beat_progression: MultipliedCurve<RangePercentage>,
pub beat_progression_offset: MultipliedCurve<RangePercentage>,
pub speed_exponent: i32,
pub selection: Option<LayoutSelection>,
pub animation: Option<AssetId<Animation>>,
pub animation_config: AnimationConfig,
}Fields§
§color_shift: MultipliedCurve<RangeDegrees>§opacity: MultipliedCurve<RangePercentage>§beat_progression: MultipliedCurve<RangePercentage>§beat_progression_offset: MultipliedCurve<RangePercentage>§speed_exponent: i32In 2^n of bpm
selection: Option<LayoutSelection>None inherits the tile’s selection.
animation: Option<AssetId<Animation>>§animation_config: AnimationConfigImplementations§
Source§impl Effect
impl Effect
Sourcepub fn values(
&self,
scene_beat: f32,
collections: &Collections,
sound: &dyn SoundLevels,
) -> EffectValues
pub fn values( &self, scene_beat: f32, collections: &Collections, sound: &dyn SoundLevels, ) -> EffectValues
The effect’s values at scene_beat, the scene’s beat position.
Trait Implementations§
Source§impl CollectSoundTriggers for Effect
impl CollectSoundTriggers for Effect
Source§fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
Adds the triggers of
self to triggers. When two triggers share an
id, the first one wins; copies of a value share their trigger.Source§impl<'de> Deserialize<'de> for Effect
impl<'de> Deserialize<'de> for Effect
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
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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