(pc *paint.Context, pos math32.Vector2, size float32)
| 80 | } |
| 81 | |
| 82 | func DrawBox(pc *paint.Context, pos math32.Vector2, size float32) { |
| 83 | x := size * 0.9 |
| 84 | pc.MoveTo(pos.X-x, pos.Y-x) |
| 85 | pc.LineTo(pos.X+x, pos.Y-x) |
| 86 | pc.LineTo(pos.X+x, pos.Y+x) |
| 87 | pc.LineTo(pos.X-x, pos.Y+x) |
| 88 | pc.ClosePath() |
| 89 | pc.FillStrokeClear() |
| 90 | } |
| 91 | |
| 92 | func DrawTriangle(pc *paint.Context, pos math32.Vector2, size float32) { |
| 93 | x := size * 0.9 |
no test coverage detected