[]Trait rangoon::Canvas2dApi

pub trait Canvas2dApi {
    fn set_fill_color(&self, color: &str);
fn fill_rect(
        &self,
        x: impl Into<f64>,
        y: impl Into<f64>,
        w: impl Into<f64>,
        h: impl Into<f64>
    );
fn clear_rect(
        &self,
        x: impl Into<f64>,
        y: impl Into<f64>,
        w: impl Into<f64>,
        h: impl Into<f64>
    ); }

Required methods

fn set_fill_color(&self, color: &str)

fn fill_rect(
    &self,
    x: impl Into<f64>,
    y: impl Into<f64>,
    w: impl Into<f64>,
    h: impl Into<f64>
)

fn clear_rect(
    &self,
    x: impl Into<f64>,
    y: impl Into<f64>,
    w: impl Into<f64>,
    h: impl Into<f64>
)

Loading content...

Implementors

impl Canvas2dApi for CanvasContext

Loading content...