We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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()
melon.stencil.Cut()
Tells the stencil to start cutting
melon.stencil.Deny()
Tells the stencil to start cutting but flip it, deny everything thats drawn!
melon.stencil.End()
Ends the cutout
melon.stencil.Start()
Starts the cutout