1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Create a Polygon

Thursday May 3, 2007
The imagepolygon () function is used to create a shape with the GD Library by entering in the coordinates of it's corners and letting PHP 'connect the dots'. You don't just have to make squares and octagons with it, you can actually cross coordinates to makes more abstract shapes like those found in classic screen savers.
Comments
May 3, 2007 at 7:32 pm
(1) Jason Champion says:

you could also use MSPaint….

…okay… I’m just messin’ with you

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.