[][src]Struct weldr::GlitterMaterial

pub struct GlitterMaterial {
    pub value: Color,
    pub alpha: Option<u8>,
    pub luminance: Option<u8>,
    pub surface_fraction: f32,
    pub volume_fraction: f32,
    pub size: GrainSize,
}

Glitter material definition of a color definition (!COLOUR language extension).

Fields

value: Color

Primary color value of the material.

alpha: Option<u8>

Optional alpha (opacity) value.

luminance: Option<u8>

Optional brightness value.

surface_fraction: f32

Fraction of the surface using the alternate color.

volume_fraction: f32

Fraction of the volume using the alternate color.

size: GrainSize

Size of glitter grains.

Trait Implementations

impl Debug for GlitterMaterial[src]

impl PartialEq<GlitterMaterial> for GlitterMaterial[src]

impl StructuralPartialEq for GlitterMaterial[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.