Code: Select all
myStencilFunction = function()
love.graphics.rectangle("fill", 225, 200, 350, 300)
end
love.graphics.setStencil(myStencilFunction)
how does it works? i see it there but the wiki its not the best place (for me at least) to search for help..
can someone give me a simple example using this code and making a center rectangles and a circle around it and the rectangle be
blue as example and the out circle dark..
i want to get in to lighting and maybe this is best way to do it (hope it is) but to start I need to understand this process of Stencil
if someone so kind to help me with a small .love to study it nothing big just something simple no extra fancy stuff else i will get confuse
even more lol