Trait pixel_engine::traits::DottedShapeTrait [−][src]
pub trait DottedShapeTrait: ScreenTrait {
fn draw_line_dotted<P>(&mut self, p1: P, p2: P, col: Color, pattern: u32)
where
P: Into<Vec2d<i32>>,
{ ... }
fn draw_rect_dotted<P>(&mut self, pos: P, size: P, col: Color, pattern: u32)
where
P: Into<Vec2d<i32>>,
{ ... }
fn draw_triangle_dotted<P>(
&mut self,
pts1: P,
pts2: P,
pts3: P,
col: Color,
pattern: u32
)
where
P: Into<Vec2d<i32>>,
{ ... }
}
Provided methods
Draw a dotted line
Draw a rectangle with the top left corner at (x, y)
and the bottom right corner at (x + w, y + h)
(both inclusive)
This is the dotted form