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 int 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 int Horizontal position
  • y int Vertical position
  • w int Width of containing area
  • h int Height of containing area
Graphics:fillall ()
Fill the entire drawing area. Fills the drawing area with the current color.
generated by LDoc 1.4.6 Last updated 2025-02-03 21:43:38