Sets the stroke color of the canvas to `rgb`.
(&mut self, rgb: RGB)
| 162 | |
| 163 | /// Sets the stroke color of the canvas to `rgb`. |
| 164 | fn set_stroke_style_rgb(&mut self, rgb: RGB) { |
| 165 | if self.stroke_color != rgb { |
| 166 | self.context.set_stroke_style_str(&format!("rgb({}, {}, {})", rgb.0, rgb.1, rgb.2)); |
| 167 | self.stroke_color = rgb; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | /// Defines a canvas path for a polygon. |
| 172 | fn poly_path(&self, points: &[PixelsXY]) { |
no outgoing calls
no test coverage detected