(pc *paint.Context, pos math32.Vector2, size float32)
| 90 | } |
| 91 | |
| 92 | func DrawTriangle(pc *paint.Context, pos math32.Vector2, size float32) { |
| 93 | x := size * 0.9 |
| 94 | pc.MoveTo(pos.X, pos.Y-x) |
| 95 | pc.LineTo(pos.X-x, pos.Y+x) |
| 96 | pc.LineTo(pos.X+x, pos.Y+x) |
| 97 | pc.ClosePath() |
| 98 | pc.Stroke() |
| 99 | } |
| 100 | |
| 101 | func DrawPyramid(pc *paint.Context, pos math32.Vector2, size float32) { |
| 102 | x := size * 0.9 |