[][src]Trait web_canvas::Canvas2dApi

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

Required methods

pub fn set_fill_color(&self, color: &str)[src]

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

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

Loading content...

Implementors

impl Canvas2dApi for CanvasContext[src]

Loading content...