Buffer object used in ThreeDFrame.

Buffer.
x1

Type: number

Buffer.
y1

Type: number

Buffer.
x2

Type: number

Buffer.
y2

Type: number

Buffer.
width

Type: number

Buffer.
height

Type: number

Buffer.
blitWin

Type: window

Buffer:
setPixel(x, y, c)

Returns: void
Name Type Description
x number
y number
c number color for the pixel

Buffer:
image(x, y, image)

Returns: void
Name Type Description
x number
y number
image PaintUtilsImage load with paintutils

Buffer:
setBufferSize(x1, y1, x2, y2)

Returns: void
Name Type Description
x1 number x of starting position of the buffer's window
y1 number y of starting position of the buffer's window
x2 number x of ending position of the buffer's window
y2 number y of ending position of the buffer's window

Buffer:
clear()

Returns: void

Buffer:
fastClear()

Returns: void

Buffer:
clearDepth()

Returns: void

Buffer:
drawTriangle(x1, y1, x2, y2, x3, y3, c, depth, z1, z2, z3)

Returns: void
Name Type Description
x1 number
y1 number
x2 number
y2 number
x3 number
y3 number
c number fill color
depth number distance to the triangle
z1 number when interpolation is on: depth for the first vertex
z2 number when interpolation is on: depth for the second vertex
z3 number when interpolation is on: depth for the third vertex

Buffer:
depthInterpolation(enabled)

Returns: void
Name Type Description
enabled boolean if enabled, uses depth interpolation (default)

Buffer:
useTriangleEdges(enabled)

Returns: void
Name Type Description
enabled boolean if enabled, uses black as default outline color for triangles