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

Method fill_texture

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

Sets the texture to use for the next fill() operation

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

Source from the content-addressed store, hash-verified

85
86 /// Sets the texture to use for the next fill() operation
87 fn fill_texture(&mut self, texture_id: TextureId, x1: f32, y1: f32, x2: f32, y2: f32) {
88 self.draw(Draw::FillTexture(texture_id, (x1, y1), (x2, y2)));
89 }
90
91 /// Sets the gradient to use for the next fill() operation
92 fn fill_gradient(&mut self, gradient_id: GradientId, x1: f32, y1: f32, x2: f32, y2: f32) {

Callers 8

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

Tested by

no test coverage detected