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

Function ThickRect

utils.go:756–763  ·  view source on GitHub ↗
(x, y, w, h, thickness int32, color Color)

Source from the content-addressed store, hash-verified

754}
755
756func ThickRect(x, y, w, h, thickness int32, color Color) {
757
758 ThickLine(Vector{float32(x), float32(y)}, Vector{float32(x + w), float32(y)}, float32(thickness), color)
759 ThickLine(Vector{float32(x + w), float32(y)}, Vector{float32(x + w), float32(y + h)}, float32(thickness), color)
760 ThickLine(Vector{float32(x + w), float32(y + h)}, Vector{float32(x), float32(y + h)}, float32(thickness), color)
761 ThickLine(Vector{float32(x), float32(y + h)}, Vector{float32(x), float32(y)}, float32(thickness), color)
762
763}
764
765func RectTopLeft(rect sdl.FRect) Vector {
766 return Vector{rect.X, rect.Y}

Callers 4

DrawGridMethod · 0.85
DrawMethod · 0.85
DrawMethod · 0.85
mainFunction · 0.85

Calls 1

ThickLineFunction · 0.85

Tested by

no test coverage detected