pub struct StyleOptions {
pub blend: Option<ParticleBlend>,
pub sheet: Option<SpriteSheet>,
pub trails: TrailOptions,
pub stretch: Option<SpeedStretch>,
pub parallax: [f32; 2],
pub sort_depth: bool,
pub flip: bool,
}Expand description
Optional policies grouped separately from each style’s basic geometry.
Fields§
§blend: Option<ParticleBlend>Batch compositing; None selects the style’s natural rule: additive Plus for
GlowDots and source-over otherwise.
sheet: Option<SpriteSheet>Optional flipbook or atlas cell selection.
trails: TrailOptionsHistorical geometry policy.
stretch: Option<SpeedStretch>Optional velocity stretch.
parallax: [f32; 2]Local displacement per unit depth relative to focus.
sort_depth: boolEnables stable far-to-near sorting by (depth,index).
flip: boolAnimates Quad aspect and brightness using particle age and phase custom[2].
Trait Implementations§
Source§impl Clone for StyleOptions
impl Clone for StyleOptions
Auto Trait Implementations§
impl !RefUnwindSafe for StyleOptions
impl !UnwindSafe for StyleOptions
impl Forget for StyleOptions
impl Freeze for StyleOptions
impl Send for StyleOptions
impl Sync for StyleOptions
impl Unpin for StyleOptions
impl UnsafeUnpin for StyleOptions
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