Sets the gradient to use for the next fill() operation
(&mut self, gradient_id: GradientId, x1: f32, y1: f32, x2: f32, y2: f32)
| 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)); } |