pub struct WavePoint {
pub x: f32,
pub y: f32,
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}Expand description
The values a program left in its output registers this frame, already converted out of MilkDrop’s per-frame vocabulary where that applies.
Default is MilkDrop’s own default for each, which is what the host
seeds before running a program — so an output the preset never writes
comes back as the reference’s resting value rather than as zero.
It is therefore unconverted, in the reference’s vocabulary, and is
not interchangeable with a value read returns. Anything comparing
the two must convert first.
Fields§
§x: f32The point’s position, in uv with y = 0 at the top.
y: f32See x.
r: f32The point’s colour, which a custom wave may vary along its length.
g: f32See r.
b: f32See r.
a: f32The point’s alpha, read as intensity.
Trait Implementations§
impl Copy for WavePoint
impl StructuralPartialEq for WavePoint
Auto Trait Implementations§
impl Freeze for WavePoint
impl RefUnwindSafe for WavePoint
impl Send for WavePoint
impl Sync for WavePoint
impl Unpin for WavePoint
impl UnsafeUnpin for WavePoint
impl UnwindSafe for WavePoint
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