Workshop


The workshop is designed to help you anticipate possible questions, review what you've learned, and begin putting your knowledge into practice.

Quiz

1.

What RGB values would you use for pure black and pure white?

2.

How do you create a new, blank canvas that is 300 pixels wide and 200 pixels tall?

3.

What function is used to draw a polygon? A filled polygon?

Answers

1.

(0,0,0) is pure black, and (255,255,255) is pure white.

2.

$new_image = ImageCreate(300,200);


3.

ImagePolygon() and ImageFilledPolygon()

Activity

Instead of creating a pie chart, use your drawing skills to create a bar chart with either vertical or horizontal bars, each 30 pixels wide and filled with the same color, but of different lengths. Make sure that there are 10 pixels of space between each bar.




Sams Teach Yourself PHP, MySQL And Apache All in One
Sams Teach Yourself PHP, MySQL and Apache All in One (3rd Edition)
ISBN: 0672328739
EAN: 2147483647
Year: 2004
Pages: 327

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net