Difference between revisions of "love.graphics.setPoint"
m |
m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{oldin|[[0.9.0]]|090|type=function|text=Use [[love.graphics.setPointSize]] and [[love.graphics.setPointStyle]]}} | ||
Sets the point size and style. | Sets the point size and style. | ||
== Function == | == Function == | ||
Line 7: | Line 8: | ||
=== Arguments === | === Arguments === | ||
{{param|number|size|The new point size.}} | {{param|number|size|The new point size.}} | ||
− | {{param|PointStyle|style | + | {{param|PointStyle|style|The new point style.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | == Examples == | ||
+ | Increase the point size by 1 and set it to smooth. | ||
+ | <source lang="lua"> | ||
+ | local s = love.graphics.getPointSize() + 1 | ||
+ | love.graphics.setPoint(s, "smooth") | ||
+ | </source> | ||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
Line 17: | Line 24: | ||
{{#set:Description=Sets the point size and style.}} | {{#set:Description=Sets the point size and style.}} | ||
{{#set:Since=000}} | {{#set:Since=000}} | ||
+ | {{#set:Sub-Category=State}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.graphics.setPoint}} | {{i18n|love.graphics.setPoint}} |
Latest revision as of 02:32, 17 June 2013
Removed in LÖVE 0.9.0 |
Use love.graphics.setPointSize and love.graphics.setPointStyle. |
Sets the point size and style.
Function
Synopsis
love.graphics.setPoint( size, style )
Arguments
number size
- The new point size.
PointStyle style
- The new point style.
Returns
Nothing.
Examples
Increase the point size by 1 and set it to smooth.
local s = love.graphics.getPointSize() + 1
love.graphics.setPoint(s, "smooth")
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