(&mut self, cx: f64, cy: f64, radius: f64, r: f64, g: f64, b: f64, a: f64)
| 11910 | } |
| 11911 | |
| 11912 | pub fn draw_circle_lines(&mut self, cx: f64, cy: f64, radius: f64, r: f64, g: f64, b: f64, a: f64) { |
| 11913 | let segments = 36; |
| 11914 | for i in 0..segments { |
| 11915 | let a1 = (i as f64) / (segments as f64) * std::f64::consts::TAU; |
| 11916 | let a2 = ((i + 1) as f64) / (segments as f64) * std::f64::consts::TAU; |
| 11917 | self.draw_line( |
| 11918 | cx + radius * a1.cos(), cy + radius * a1.sin(), |
| 11919 | cx + radius * a2.cos(), cy + radius * a2.sin(), |
| 11920 | 1.0, r, g, b, a, |
| 11921 | ); |
| 11922 | } |
| 11923 | } |
| 11924 | |
| 11925 | pub fn draw_triangle(&mut self, x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64, r: f64, g: f64, b: f64, a: f64) { |
| 11926 | self.ensure_draw_state(0); |
no test coverage detected