Implementation of nape debug draw using flash/openfl | nme graphics API. |
---|
This debug draw is slower than BitmapDebug which is available in flash10+
however the BitmapDebug draw makes use of Alchemy opcodes so you may wish
not to use it if you are also using Stage3D and do not wish to be subject
to Adobe licensing.
Constructor
new(width:Int, height:Int, bgColour:Int = 0x333333)
Construct new ShapeDebug with given viewport size and backgruond.
Background colour does not have much weight for a ShapeDebug which
always has a transparent background, but serves to bias the colours
chosen for drawing objects.
Parameters:
width | The width of Debug draw viewport. |
---|---|
height | The height of Debug draw viewport. |
bgColour | the background colour for debug draw. (default 0x333333) |
Returns:
The constructed ShapeDebug.
Throws:
# | If width or height are not strictly positive. |
---|