daJam Creations

Commander Crayon



    Commander Crayon is a graphical educational programming language. By pressing the buttons presented through the interface, pictures (programs) can be created.
Goto Home

Goto Introduction

Goto Macintosh

Goto Java Applet

Goto Glossary

Goto Ball of Yarn

Goto Ferris Wheel

Goto Fractal Quilt

Goto Fractal Rose

Goto Vertigo's Maze

Goto Pyramid

Goto 3D Ring
  Glossary:
Filled Rect
This button draws a rectangle whose interior is filled by the color of the crayon. The upper left-hand corner of the rectangle is located at the position of the crayon. The rectangle's width is given by Equation 1 (the coefficients in the first column), and the rectangle's height is given by the second equation (the coefficients in the second column).

Framed Rect
This button draws a rectangle with a white interior. The upper left-hand corner of the rectangle is located at the position of the crayon. The rectangle's width is given by Equation 1 (the coefficients in the first column), and the rectangle's height is given by the second equation (the coefficients in the second column).

Filled Oval
This button draws a oval whose interior is filled by the color of the crayon. The upper left-hand corner of the oval is located at the position of the crayon. The oval's width is given by Equation 1 (the coefficients in the first column), and the oval's height is given by the second equation (the coefficients in the second column).

Framed Oval
This button draws a oval with a white interior. The upper left-hand corner of the oval is located at the position of the crayon. The oval's width is given by Equation 1 (the coefficients in the first column), and the oval's height is given by the second equation (the coefficients in the second column).

Filled Arc
This button draws a arc whose interior is filled by the color of the crayon. The upper left-hand corner of the arc is located at the position of the crayon. The arc's width is given by Equation 1 (the coefficients in the first column), and the arc's height is given by the second equation (the coefficients in the second column). The angle at which the arc starts is given by Eq 3 (the coefficients in the third column), and the size of the angle through which the arc is drawn is given by Eq 4 (the coefficients in the fourth column).

Framed Arc
This button draws a arc with a white interior. The upper left-hand corner of the arc is located at the position of the crayon. The arc's width is given by Equation 1 (the coefficients in the first column), and the arc's height is given by the second equation (the coefficients in the second column). The angle at which the arc starts is given by Eq 3 (the coefficients in the third column), and the size of the angle through which the arc is drawn is given by Eq 4 (the coefficients in the fourth column).

3D Rect Up
This button draws a raised 3D rectangle. Unfortunately, it is very hard to see the 3D effect. Try drawing this rectangle in a color other than black. The upper left-hand corner of the rectangle is located at the position of the crayon. The rectangle's width is given by Equation 1 (the coefficients in the first column), and the rectangle's height is given by the second equation (the coefficients in the second column).

3D Rect Down
This button draws a depressed 3D rectangle. Unfortunately, it is very hard to see the 3D effect. Try drawing this rectangle in a color other than black. The upper left-hand corner of the rectangle is located at the position of the crayon. The rectangle's width is given by Equation 1 (the coefficients in the first column), and the rectangle's height is given by the second equation (the coefficients in the second column).

Left
This button changes the crayon's direction to the left by the angle given by Equation 1 (the coefficients in the first column).

Right
This button changes the crayon's direction to the right by the angle given by Equation 1 (the coefficients in the first column).

Save
This button saves the crayon's position and direction into a stack. Up to ten different crayon states can be saved.

Restore
This button restores the crayon's position and direction to a previously saved state. Since the crayon's states are stored in a stack, the states are stored in the reverse order in which they were saved. Pressing the restore button without saving any crayon states restores the crayon to its starting position and direction

Line
This button draws a line whose length is given by Equation 1 (the coefficients in the first column). The line is drawn in the direction in which the crayon points. The line's starting point is the current position of the crayon. The crayon's new position is the ending point of the line.

Jump
This button moves the crayon by a distance is given by Equation 1 (the coefficients in the first column). The crayon is moved in the direction in which the crayon points.

LineTo
This button draws a line whose starting point is the current position of the crayon. The x-coordinate of the ending point is given by Eq 1, and the y-coordinate of the ending point is given by Eq 2. The crayon's new position is the ending point of the line. The crayon's direction remains unchanged.

JumpTo
This button moves the crayon to a point whose x-coordinate is given by Eq 1, and y-coordinate is given by Eq 2. The crayon's direction remains unchanged.

A B C D
These are procedure buttons. Pressing this button the first time allows one to assign a group of commands to this button. The procedure's definition is closed by pressing the } button. Pressing the procedure button afterwards tells ProgArt to execute the group of commands within the procedure. One cannot define a procedure within another procedure or within a repeat loop.

Fractal
This button draws an l-fractal. This command takes three arguments. The first argument is the procedure -- A, B, C, or D -- which contains the list of graphical commands which will be used in the fractal. The second argument is the name of the graphical command within the procedure which will be recursively replaced by the list of commands in the procedure. The third argument is a number which indicates the number of times this recursion will occur. To specify the arguments after pressing the fractal button, press the A, B, C, or D button to indicate the first argument; then press the button representing the command which you would like recursively replaced. The third argument will automatically come from the value in the Interval field of Eq 1 (the first column). The fractal command cannot be used unless a procedure is at first defined. Keep the third argument small, because large values can create long drawing times.

Repeat
This button opens a Repeat loop. A Repeat loop executes the commands found within the loop the number of times indicated by its argument. The argument for the Repeat loop is given by the interval text field of Eq 1 (Column 1). Pree the } button to close the repeat loop. Repeat loops can be nested. Up to ten Repeat loops can be nested together.

}
This button closes an open Repeat loop or procedure definition. Everytime you open a Repeat loop or a Procedure definition, you must close it by pressing this button.

Color
This button changes the color of the crayon. Objects drawn after this command is called will be drawn in that color. This command has three arguments which specifies the amount of red, green, and blue in the new color. The arguments can range in value from 0 to 255. The red component is specified by Equation 1 (the coefficients in the first column). The green component is specified by Equation 2 (the coefficients in the second column), and the blue component is specified by Equation 2 (the coefficients in the third column).

Draw
This button draws a new picture by executing the commands in the program window. This button will execute only if all loops and definitions are closed.

Stop
This button does nothing at the present time

Erase
This button erases both the program from the program window and the drawing from the drawing window.

Filled RR
This button draws a rounded rectangle whose interior is filled by the color of the crayon. The upper left-hand corner of the rectangle is located at the position of the crayon. The rectangle's width is given by Equation 1 (the coefficients in the first column), and the rectangle's height is given by the second equation (the coefficients in the second column). The width of the rectangle used to round the corners is given by Eq 3 (the coefficients in the third column), and the height of the rectangle used to round the corners is given by Eq 4 (the coefficients in the fourth column).

Eq 1, Eq 2, Eq 3, Eq 4
These buttons change the type of equation each column of coefficients represents. There are four possible types: Linear (Ax+B), Quadratic (Ax^2 + Bx + C), Sinusoidal (A + BsinC(x+D)), and Random[A, B] where A and B represents the range in which the random number can appear.



 

Home

Introduction

Macintosh

Java Applet

Glossary

Ball Of Yarn

Ferris Wheel

 

Quilt

Fractal Rose

Verigo's Maze

Pyramid

3D Ring

 

Email