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

Method canvas_height

canvas/src/context.rs:112–112  ·  view source on GitHub ↗

Sets a transformation such that: (0,0) is the center point of the canvas (0,height/2) is the top of the canvas Pixels are square

(&mut self, height: f32)

Source from the content-addressed store, hash-verified

110 /// (0,height/2) is the top of the canvas
111 /// Pixels are square
112 fn canvas_height(&mut self, height: f32) { self.draw(Draw::CanvasHeight(height)); }
113
114 /// Moves a particular region to the center of the canvas (coordinates are minx, miny, maxx, maxy)
115 fn center_region(&mut self, minx: f32, miny: f32, maxx: f32, maxy: f32) {

Callers 15

drawMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
show_titleFunction · 0.80
show_statsFunction · 0.80
show_mandelbrotFunction · 0.80
draw_mandelbrotFunction · 0.80
mainFunction · 0.80

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 1

drawMethod · 0.45