EncodeExt

Trait EncodeExt 

Source
pub trait EncodeExt: Sealed {
    // Required method
    fn encode_into(
        &self,
        paints: &mut Vec<EncodedPaint>,
        transform: Affine,
    ) -> Paint;
}
Expand description

A trait for encoding gradients.

Required Methods§

Source

fn encode_into( &self, paints: &mut Vec<EncodedPaint>, transform: Affine, ) -> Paint

Encode the gradient and push it into a vector of encoded paints, returning the corresponding paint in the process. This will also validate the gradient.

Implementations on Foreign Types§

Source§

impl EncodeExt for Gradient

Source§

fn encode_into( &self, paints: &mut Vec<EncodedPaint>, transform: Affine, ) -> Paint

Encode the gradient into a paint.

Implementors§