All drawing-related functions share a few properties:
- (x, y) coordinates must be between (0, 0) and (255, 239)
- The "duration" is specified as a number of frames during which the drawing must remain on the screen. This defaults to 1 frame when unspecified, and draw calls will be permanent (until a call to [clearScreen](#clearscreen)) if duration is set to 0.
- Colors are integers in ARGB format:
White: 0xFFFFFF
Black: 0x000000
Red: 0xFF0000
Green: 0x00FF00
Blue: 0x0000FF
The alpha component (transparency) can be used and defaults to being fully opaque when set to 0 or omitted. (0xFF is fully transparent)
Returns an array of ARGB values for the entire screen (256px by 240px) - can be used with [emu.setScreenBuffer()](#setscreenbuffer) to alter the frame.
## setScreenBuffer ##
**Syntax**
emu.setScreenBuffer(screenBuffer)
**Parameters**
screenBuffer - *Array* An array of 32-bit integers in ARGB format
**Return value**
*None*
**Description**
Replaces the current frame with the contents of the specified array.