scheme - woodstockcs/support GitHub Wiki

Creating a Simple Circle in Scheme

The command to create a circle (or oval) in the Scheme Programming language is “Ellipse” As with other commands in Scheme the ellipse command is put between parentheses with 4 other variables following it.

The first variable is a number that controls the width of the circle. The second variable is the number that controls the height. The third variable controls whether the circle has a solid fill or is only an outline. This variable is a string (Put in “”). To make a solid circle use “solid”, for just the outline use “outline”. The fourth and last variable is the color of the circle. This is also a string variable. EX: “Red”, “Blue”, etc. Examples:

(ellipse 70 70 "outline" "red")

(ellipse 50 85 "solid" "dark green")