Skip to content
Alessandro Febretti edited this page Aug 28, 2013 · 5 revisions

[[module omega | Python-Reference#module-omega]] wraps omega::DrawInterface EXPERIMENTAL

Exposes methods to simplify drawing on 2d surfaces. Used in conjunction with setDrawFunction

Methods

Method(s) Description
drawRectGradient(position, size, orientation)
drawRect(position, size, color)
drawRectOutline(position, size, color)
drawText(text, font, position, alignFlags)
drawCircleOutline(position, radius, color, segments)
createFont(fontName, fileName, size)
getFont(name)
getDefaultFont()

Remarks

Valid align flags for drawText:

  • TextAlign.HALeft
  • TextAlign.HARight
  • TextAlign.HACenter
  • TextAlign.VATop
  • TextAlign.VABottom
  • TextAlign.VAMidde
Clone this wiki locally