#N canvas 668 255 857 570 8;
#X text 148 185 create and destroy the graphics window;
#X obj 51 436 gemwin;
#X msg 84 184 create;
#X obj 462 197 gemhead;
#X msg 91 212 destroy;
#X msg 105 264 1;
#X msg 104 302 0;
#X msg 51 134 dimen 300 300;
#X msg 173 414 lighting 1;
#X obj 462 308 rotate;
#X floatatom 561 276;
#X obj 318 476 world_light;
#X obj 318 421 gemhead 1;
#X msg 172 382 lighting 0;
#X obj 462 361 sphere;
#X obj 462 255 color;
#X msg 564 185 1 1 1;
#X msg 564 150 1 0 1;
#X text 45 94 set the window size to 300 x 300;
#X text 150 38 create a sphere with and without lighting;
#X text 525 121 change the color;
#X text 531 249 rotate the sphere;
#X text 410 475 creates a light an infinite distance away.;
#X text 400 416 gemhead has a value of 1 so that it is rendered before the sphere is;
#X text 157 342 you can turn lighting on and off while it is running;
#X text 147 284 turn rendering on and off;
#X connect 2 0 1 0;
#X connect 3 0 15 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 1 0;
#X connect 7 0 1 0;
#X connect 8 0 1 0;
#X connect 9 0 14 0;
#X connect 10 0 9 1;
#X connect 12 0 11 0;
#X connect 13 0 1 0;
#X connect 15 0 9 0;
#X connect 16 0 15 1;
#X connect 17 0 15 1;
