MCPcopy Create free account
hub / github.com/SolarLune/masterplan / SetSizes

Method SetSizes

utils.go:994–1001  ·  view source on GitHub ↗
(xywh ...float32)

Source from the content-addressed store, hash-verified

992}
993
994func (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

Callers 2

UpdateMethod · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected