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

Function NewShape

utils.go:986–992  ·  view source on GitHub ↗
(rectCount int)

Source from the content-addressed store, hash-verified

984}
985
986func NewShape(rectCount int) *Shape {
987 shape := &Shape{}
988 for i := 0; i < rectCount; i++ {
989 shape.Rects = append(shape.Rects, &sdl.FRect{})
990 }
991 return shape
992}
993
994func (shape *Shape) SetSizes(xywh ...float32) {
995 for i := 0; i < len(xywh); i += 4 {

Callers 2

NewMenuFunction · 0.85
NewCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected