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

Method fill_gradient

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

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

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

Source from the content-addressed store, hash-verified

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) {
93 self.draw(Draw::FillGradient(gradient_id, (x1, y1), (x2, y2)));
94 }
95
96 /// Applies a transformation to the fill texture or gradient
97 fn fill_transform(&mut self, transform: Transform2D) { self.draw(Draw::FillTransform(transform)); }

Callers 7

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