Help
Into the field above you can enter a BASIC program, which will be executed when you hit the RUN CODE! button.
The program will have access to an 800x600 image, which will be returned when it finishes.
To make your program update the image you can use the following functions:
- CIRCLE x, y, r
The CIRCLE function draws a circle of radius R at the coordinates x,y. For example: 10 COLOR 255,0,0
20 CIRCLE 50,50,50
30 SAVE
- COLOR a, b, c
Set the color which is used for the drawing functions. The arguments are "Red", "Green", and "Blue" respectively. So to make a green-circle you would enter: 10 COLOR 255,0,0
20 CIRCLE 50,50,50
30 SAVE
- LINE x1, y1, x2, y2
The LINE function draws a line between the two points specified. For example: 10 LINE 40,60, 80,120
20 SAVE
- PLOT x, y
The PLOT function sets a single pixel at the specified coordinate.For example: 10 COLOR 255,0,0
20 PLOT 50, 50
30 PLOT 100, 100
40 SAVE
- SAVE
The SAVE function saves your image - You must end all your programs with a SAVE statement.
|