{{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.
== 関数 ==
=== 概要 ===
<source lang="lua">
myStencil = love.graphics.newStencil( stencilFunction )
</source>
=== 引数 ===
{{param (日本語)|function|stencilFunction|Function that draws the stencil.}}
=== 返値 ===
{{param (日本語)|function|myStencil|Function that defines the new stencil.}}
== 関連 ==
* [[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 (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.newStencil}}