[][src]Enum amicola::ShadeCommand

pub enum ShadeCommand {
    Boundary {
        x: isize,
        y: isize,
        coverage: f32,
    },
    Span {
        x: Range<isize>,
        y: isize,
    },
}

A command to shade a pixel.

Variants

Boundary

A command to shade a pixel at the boundary of path's raster area. Coverage indicates what percentage of the pixel is covered by the raster area. This usually maps to the alpha channel.

Fields of Boundary

x: isizey: isizecoverage: f32
Span

A command to shade a span of the framebuffer. Spans are completely covered in the raster area, so the alpha channel value for spans is usually 1.0.

Fields of Span

x: Range<isize>y: isize

Trait Implementations

impl Clone for ShadeCommand[src]

impl PartialEq<ShadeCommand> for ShadeCommand[src]

impl Debug for ShadeCommand[src]

impl StructuralPartialEq for ShadeCommand[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,