(pc *paint.Context, pos math32.Vector2, size float32)
| 108 | } |
| 109 | |
| 110 | func DrawPlus(pc *paint.Context, pos math32.Vector2, size float32) { |
| 111 | x := size * 1.05 |
| 112 | pc.MoveTo(pos.X-x, pos.Y) |
| 113 | pc.LineTo(pos.X+x, pos.Y) |
| 114 | pc.MoveTo(pos.X, pos.Y-x) |
| 115 | pc.LineTo(pos.X, pos.Y+x) |
| 116 | pc.ClosePath() |
| 117 | pc.Stroke() |
| 118 | } |
| 119 | |
| 120 | func DrawCross(pc *paint.Context, pos math32.Vector2, size float32) { |
| 121 | x := size * 0.9 |