Difference between revisions of "Lua API:Graphics"

From The Powder Toy
Jump to: navigation, search
(Start a basic Graphics Page.)
 
m (Handle Constants better)
Line 13: Line 13:
 
=== graphics.drawCircle ===
 
=== graphics.drawCircle ===
 
   graphics.drawCircle()
 
   graphics.drawCircle()
 
 
=== graphics.WIDTH ===
 
  graphics.WIDTH()
 
  
  
Line 25: Line 21:
 
=== graphics.fillRect ===
 
=== graphics.fillRect ===
 
   graphics.fillRect()
 
   graphics.fillRect()
 
 
=== graphics.HEIGHT ===
 
  graphics.HEIGHT()
 
  
  
Line 37: Line 29:
 
=== graphics.drawText ===
 
=== graphics.drawText ===
 
   graphics.drawText()
 
   graphics.drawText()
 +
 +
 +
== Constants ==
 +
Any of these constants can be accessed with graphics.<constant name here>
 +
 +
=== Uncatergorized ===
 +
; WIDTH
 +
; HEIGHT

Revision as of 00:08, 7 September 2013

Description goes here.

Methods

graphics.drawLine

 graphics.drawLine()


graphics.drawRect

 graphics.drawRect()


graphics.drawCircle

 graphics.drawCircle()


graphics.fillCircle

 graphics.fillCircle()


graphics.fillRect

 graphics.fillRect()


graphics.textSize

 graphics.textSize()


graphics.drawText

 graphics.drawText()


Constants

Any of these constants can be accessed with graphics.<constant name here>

Uncatergorized

WIDTH
HEIGHT