(xywh ...float32)
| 992 | } |
| 993 | |
| 994 | func (shape *Shape) SetSizes(xywh ...float32) { |
| 995 | for i := 0; i < len(xywh); i += 4 { |
| 996 | shape.Rects[i/4].X = xywh[i] |
| 997 | shape.Rects[i/4].Y = xywh[i+1] |
| 998 | shape.Rects[i/4].W = xywh[i+2] |
| 999 | shape.Rects[i/4].H = xywh[i+3] |
| 1000 | } |
| 1001 | } |
| 1002 | |
| 1003 | // func DrawRectExpanded(r rl.Rectangle, thickness float32, color rl.Color) { |
| 1004 |