pub struct SpotLight {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub points_at_x: f32,
    pub points_at_y: f32,
    pub points_at_z: f32,
    pub specular_exponent: PositiveF32,
    pub limiting_cone_angle: Option<f32>,
}Expand description
A spot light source.
feSpotLight element in the SVG.
Fields§
§x: f32X location for the light source.
x in the SVG.
y: f32Y location for the light source.
y in the SVG.
z: f32Z location for the light source.
z in the SVG.
points_at_x: f32X point at which the light source is pointing.
pointsAtX in the SVG.
points_at_y: f32Y point at which the light source is pointing.
pointsAtY in the SVG.
points_at_z: f32Z point at which the light source is pointing.
pointsAtZ in the SVG.
specular_exponent: PositiveF32Exponent value controlling the focus for the light source.
specularExponent in the SVG.
limiting_cone_angle: Option<f32>A limiting cone which restricts the region where the light is projected.
limitingConeAngle in the SVG.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpotLight
impl RefUnwindSafe for SpotLight
impl Send for SpotLight
impl Sync for SpotLight
impl Unpin for SpotLight
impl UnwindSafe for SpotLight
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