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

Method clear_canvas

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

Clears the canvas entirely to a background colour, and removes any stored resources (layers, sprites, fonts, textures)

(&mut self, color: Color)

Source from the content-addressed store, hash-verified

147
148 /// Clears the canvas entirely to a background colour, and removes any stored resources (layers, sprites, fonts, textures)
149 fn clear_canvas(&mut self, color: Color) { self.draw(Draw::ClearCanvas(color)); }
150
151
152

Callers 15

drawMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 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