PLEASE RELOAD
Filled Shapes



Filled Shapes

Remember all x y positions are based on a canvas of 300x300 or the size you designate...For this, center is 150x150.

These are the same shapes as in Lesson one. In the first lesson shapes were drawn and then filled. This give you the opportunity to draw the shape in one color and fill it with a different color. Now we'll draw the shapes and fill them at the same time. The same functions are used with filled added. An example: imageRectangle becomes imageFilledRectangle. When this function is used the draw line and the fill will be the same color.

Can you connect several lines and then fill them...?
Can you put one filled ellipse partially on top of another...?
See if you can make a boxcar. A rectangle, four circles for wheels and lines going down the rectangle at intervals.

http://www.simplysally.com/GD/lessons/lesson2.txt


GD BasicsHome