[][src]Trait purrmitive::graphics::Shape

pub trait Shape {
    pub fn rasterize(&self, w: u32, h: u32) -> Vec<Scanline>;
pub fn random<T: SeedableRng + RngCore>(w: u32, h: u32, rng: &mut T) -> Self;
pub fn mutate<T: SeedableRng + RngCore>(
        &mut self,
        w: u32,
        h: u32,
        rng: &mut T
    );
pub fn draw(&self, img: &mut RgbaImage, color: &Rgba<u8>);
pub fn to_svg(&self, attr: &str) -> String; }

Required methods

pub fn rasterize(&self, w: u32, h: u32) -> Vec<Scanline>[src]

pub fn random<T: SeedableRng + RngCore>(w: u32, h: u32, rng: &mut T) -> Self[src]

pub fn mutate<T: SeedableRng + RngCore>(&mut self, w: u32, h: u32, rng: &mut T)[src]

pub fn draw(&self, img: &mut RgbaImage, color: &Rgba<u8>)[src]

pub fn to_svg(&self, attr: &str) -> String[src]

Loading content...

Implementors

impl Shape for Combo[src]

impl Shape for Circle[src]

impl Shape for Ellipse[src]

impl Shape for Polygon[src]

impl Shape for Quadratic[src]

impl Shape for Rectangle[src]

impl Shape for RotatedEllipse[src]

impl Shape for RotatedRectangle[src]

impl Shape for Triangle[src]

Loading content...