Difference between revisions of "Canvas:setFilter"

(Added anisotropy parameter)
(Remove parent)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{newin|[[0.8.0]]|080|type=function}}
 
{{newin|[[0.8.0]]|080|type=function}}
Sets the filter of the Canvas.
+
Sets the [[FilterMode|filter mode]] of the [[Canvas]].
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|FilterMode|min|How to scale a canvas down.}}
+
{{param|FilterMode|min|Filter mode to use when minifying the canvas.}}
{{param|FilterMode|mag|How to scale a canvas up.}}
+
{{param|FilterMode|mag|Filter mode to use when magnifying the canvas.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 18: Line 18:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|FilterMode|min|How to scale a canvas down.}}
+
{{param|FilterMode|min|Filter mode to use when minifying the canvas.}}
{{param|FilterMode|mag|How to scale a canvas up.}}
+
{{param|FilterMode|mag|Filter mode to use when magnifying the canvas.}}
{{param|number|anisotropy (1)|Maximum amount of anisotropic filtering used.}}
+
{{param|number|anisotropy (1)|Maximum amount of anisotropic filtering to use.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== See Also ==
 
== See Also ==
* [[parent::Canvas]]
+
* [[Canvas]]
* [[FilterMode]]
+
* [[Canvas:getFilter]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets the filter mode of the Canvas.}}
+
{{#set:Description=Sets the [[FilterMode|filter mode]] of the [[Canvas]].}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Canvas:setFilter}}
 
{{i18n|Canvas:setFilter}}

Latest revision as of 00:17, 20 July 2017

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Sets the filter mode of the Canvas.

Function

Synopsis

Canvas:setFilter( min, mag )

Arguments

FilterMode min
Filter mode to use when minifying the canvas.
FilterMode mag
Filter mode to use when magnifying the canvas.

Returns

Nothing.

Function

Available since LÖVE 0.9.0
This variant is not supported in earlier versions.

Synopsis

Canvas:setFilter( min, mag, anisotropy )

Arguments

FilterMode min
Filter mode to use when minifying the canvas.
FilterMode mag
Filter mode to use when magnifying the canvas.
number anisotropy (1)
Maximum amount of anisotropic filtering to use.

Returns

Nothing.

See Also

Other Languages