()
| 21 | |
| 22 | impl DrawParams { |
| 23 | pub fn new() -> DrawParams { |
| 24 | DrawParams { |
| 25 | color: Color::WHITE, |
| 26 | origin: Vec2::ZERO, |
| 27 | scale: Vec2::ONE, |
| 28 | rotation: 0.0, |
| 29 | flip: BVec2::FALSE, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | pub fn color(mut self, color: Color) -> Self { |
| 34 | self.color = color; |
nothing calls this directly
no test coverage detected