Functions

enter2d(dim) Enter 2D, orthographic drawing (one-to-one pixels)
leave2d() Leave 2D, orthographic drawing
rect(prim, x, y, w, h) Draw a rectangle
rect_color(c1, c2, prim, x, y, w, h) Draw 2-tone rectangle

Functions

enter2d(dim)

Enter 2D, orthographic drawing (one-to-one pixels)

Parameters:

dim The dimensions of the view
leave2d()

Leave 2D, orthographic drawing

rect(prim, x, y, w, h)

Draw a rectangle

Parameters:

prim Primitive
x x-start
y y-start
w Width
h Height
rect_color(c1, c2, prim, x, y, w, h)

Draw 2-tone rectangle

Parameters:

c1 Color1
c2 Color2
prim Primitive
x x-start
y y-start
w Width
h Height