Difference between revisions of "Canvas:setFilter"
(Added anisotropy parameter) |
m (Improve descriptions and add links.) |
||
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| | + | {{param|FilterMode|min|Filter mode to use when minifying the canvas.}} |
− | {{param|FilterMode|mag| | + | {{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| | + | {{param|FilterMode|min|Filter mode to use when minifying the canvas.}} |
− | {{param|FilterMode|mag| | + | {{param|FilterMode|mag|Filter mode to use when magnifying the canvas.}} |
− | {{param|number|anisotropy (1)|Maximum amount of anisotropic filtering | + | {{param|number|anisotropy (1)|Maximum amount of anisotropic filtering to use.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
== See Also == | == See Also == | ||
* [[parent::Canvas]] | * [[parent::Canvas]] | ||
− | * [[ | + | * [[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}} |
Revision as of 09:14, 28 January 2015
Available since LÖVE 0.8.0 |
This function is not supported in earlier versions. |
Sets the filter mode of the Canvas.
Contents
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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info