[comp.graphics] drawing a resizable star

briand@rfengr.com (Brian Dear) (06/02/91)

I'm trying to find a reference to a book or usenet article that 
describes either in C or pseudocode a routine that will simply
draw a star on the screen.

For example, the routine might look like this

	DrawStar( centerx, centery, rotationAngle, size );

where centerx and centery describe the coordinates of the center of
the star, and rotationAngle is the angle of rotation of the star,
and size is the size of the star.  I'm sure this is an extremely easy
algorithm -- it should only involve a little trigonometry to figure
out the points on the screen to do a bunch of LineTo()'s and MoveTo()'s.

Anyone have any suggestions?

Please reply to brian@coconut.com.... thanks!!!


Brian Dear          Coconut Computing, Inc.       brian@coconut.com