{{newin|[[0.8.0]]|080|type=function}}
Sets the [[FilterMode|filter mode]] of the [[Canvas]].
== Function ==
=== Synopsis ===
<source lang="lua">
Canvas:setFilter( min, mag )
</source>
=== Arguments ===
{{param|FilterMode|min|Filter mode to use when minifying the canvas.}}
{{param|FilterMode|mag|Filter mode to use when magnifying the canvas.}}
=== Returns ===
Nothing.
== Function ==
{{newin|[[0.9.0]]|090|type=variant}}
=== Synopsis ===
<source lang="lua">
Canvas:setFilter( min, mag, anisotropy )
</source>
=== Arguments ===
{{param|FilterMode|min|Filter mode to use when minifying the canvas.}}
{{param|FilterMode|mag|Filter mode to use when magnifying the canvas.}}
{{param|number|anisotropy (1)|Maximum amount of anisotropic filtering to use.}}
=== Returns ===
Nothing.
== See Also ==
* [[Canvas]]
* [[Canvas:getFilter]]
[[Category:Functions]]
{{#set:Description=Sets the [[FilterMode|filter mode]] of the [[Canvas]].}}
== Other Languages ==
{{i18n|Canvas:setFilter}}