Class el.Graphics

A drawing context.

Methods

Graphics:save () Save the current state.
Graphics:restore () Restore the last saved state.
Graphics:setColor (color) Change the color.
Graphics:drawText (text, r) Draw some text.
Graphics:drawText (text, x, y, w, h) Draw some text.
Graphics:fillall () Fill the entire drawing area.


Methods

Graphics:save ()
Save the current state.
Graphics:restore ()
Restore the last saved state.
Graphics:setColor (color)
Change the color.

Parameters:

  • color integer New ARGB color as integer. e.g.0xAARRGGBB
Graphics:drawText (text, r)
Draw some text.

Parameters:

Graphics:drawText (text, x, y, w, h)
Draw some text.

Parameters:

  • text string Text to draw
  • x integer Horizontal position
  • y integer Vertical position
  • w integer Width of containing area
  • h integer Height of containing area
Graphics:fillall ()
Fill the entire drawing area. Fills the drawing area with the current color.
generated by LDoc 1.5.0 Last updated 2024-02-18 20:31:17