MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / rect

Method rect

canvas/src/primitives.rs:25–29  ·  view source on GitHub ↗

Draws a rectangle between particular coordinates

(&mut self, x1: f32, y1: f32, x2: f32, y2: f32)

Source from the content-addressed store, hash-verified

23 /// Draws a rectangle between particular coordinates
24 ///
25 fn rect(&mut self, x1: f32, y1: f32, x2: f32, y2: f32) {
26 for d in draw_rect(x1, y1, x2, y2) {
27 self.draw(d);
28 }
29 }
30
31 ///
32 /// Draws a circle at a particular point

Callers 15

restore_rewinds_canvasFunction · 0.80
mainFunction · 0.80
show_mandelbrotFunction · 0.80
draw_mandelbrotFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
clip_rectFunction · 0.80

Implementers 1

primitives.rscanvas/src/primitives.rs

Calls 2

draw_rectFunction · 0.85
drawMethod · 0.45

Tested by 3

restore_rewinds_canvasFunction · 0.64
clip_rectFunction · 0.64