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

Method fill_transform

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

Applies a transformation to the fill texture or gradient

(&mut self, transform: Transform2D)

Source from the content-addressed store, hash-verified

95
96 /// Applies a transformation to the fill texture or gradient
97 fn fill_transform(&mut self, transform: Transform2D) { self.draw(Draw::FillTransform(transform)); }
98
99 /// Sets the colour to use for the next stroke() operation
100 fn stroke_color(&mut self, col: Color) { self.draw(Draw::StrokeColor(col)); }

Callers 3

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

Tested by

no test coverage detected