-
Notifications
You must be signed in to change notification settings - Fork 26
DrawInterface
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
| 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() |
Valid align flags for drawText:
TextAlign.HALeftTextAlign.HARightTextAlign.HACenterTextAlign.VATopTextAlign.VABottomTextAlign.VAMidde