Wednesday, February 13, 2008

Wednesday, February 13

Obama wins three states in a landslide.

Upon further consideration, the first bit of GASP tutorial should be a circle on a background. Why go too slow?

Here's my thought:

from gasp import *

# open a graphics window the size of the XO's screen called "Circle" with a green background
begin_graphics(height=900, width=1200, title="Circle", background=color.green)
# make a red circle 10 pixels thick in the middle of the window
Circle( ( 600,450 ), 50, filled=False, color=color.red, thickness=10 )
# close the window -- ideally upon hitting escape. I need docs.
end_graphics()

Anyway, you get the idea. It's clean and simple.

Oh, and I updated my XO, so the wireless works. Also, the GASP branding will be as follows:
GASP: Snake in front of blue (!)
GASP-code: Snake in front of gear
GASP-games: Snake in front of soccer ball

No comments: