Skip to content

struct

Look

pub struct Look {
    pub color: Option<Color>,
    pub opacity: Option<f32>,
    pub scale: [Option<f32>; 3],
    pub rotate: [Option<f32>; 3],
    pub translate: [Option<f32>; 3],
    pub emissive: Option<f32>,
}

What one set of classes does to an object.

Fields

color

pub color: Option<Color>

Colour (fill-*, bg-*).

opacity

pub opacity: Option<f32>

Opacity, 0–1 (opacity-*).

scale

pub scale: [Option<f32>; 3]

Scale on x, y and z (scale-*).

rotate

pub rotate: [Option<f32>; 3]

Degrees.

translate

pub translate: [Option<f32>; 3]

Movement on x, y and z, in scene units (translate-*).

emissive

pub emissive: Option<f32>

Glow strength, from brightness-* above 100.

Methods

is_empty

pub fn is_empty(&self) -> bool

Whether the classes set nothing.

Trait implementations