{{newinoldin|[[0.8.0]]|080|[[0.9.0]]|090|type=function|text=Lua functions can be used directly with [[love.graphics.stencil]] (or [[love.graphics.setStencil]] in 0.9)}}
Creates a new stencil.
== Function ==
=== Synopsis ===
<source lang="lua">
myStencil = love.graphics.newStencil( stencilFunction )
</source>
=== Arguments ===
{{param|function|stencilFunction|Function that draws the stencil.}}
=== Returns ===
{{param|function|myStencil|Function that defines the new stencil.}}
== See Also ==
* [[parent::love.graphics]]
* [[parent::love.graphics.setStencil]]
* [[parent::love.graphics.setInvertedStencil]]
[[Category:Functions]]
{{#set:Description=Creates a new stencil.}}
{{#set:Since=080}}
{{#set:Sub-Category=Object Creation}}
== Other Languages ==
{{i18n|love.graphics.newStencil}}