GraphX.lua

From Moondust Wiki
Jump to navigation Jump to search


NOTE: This page is currently under construction. Apologies for any messiness and incomplete/outdated information!

graphX is a helper library for drawing primitives. It was derived from colliders.lua and is being developed as part of the cinematX suite, with cinematX.lua.


Installation

How to Use

Code Documentation

graphX
Type Function/Field Return values/Value type Description
function boxLevel (float x, float y, float width, float height, Color color) nil Draws a colored box at the given coordinates in the level.
function boxScreen (float x, float y, float width, float height, Color color) nil Draws a colored box at the given coordinates on the screen.
function circleLevel (float x, float y, float radius, Color color) nil Draws a colored circle at the given coordinates in the level.
function circleScreen (float x, float y, float radius, Color color) nil Draws a colored circle at the given coordinates on the screen.