-
Notifications
You must be signed in to change notification settings - Fork 1
melon.stencil
garryspins edited this page Feb 27, 2026
·
3 revisions
melon.stencil
Stencil helpers
melon
melon.stencil.Start()
surface.SetDrawColor(255, 255, 255)
surface.DrawTexturedRectRotated(w / 2, h / 2, w, 50, CurTime() * 10)
melon.stencil.Cut()
draw.Text({
text = "Some Text",
pos = {w / 2, h / 2},
yalign = 1,
xalign = 1,
font = melon.Font(60),
color = Color(255, 0, 0)
})
melon.stencil.End() Tells the stencil to start cutting but flip it, deny everything thats drawn!

