User Tools

Site Tools


notes:c4eng:fall2024:projects:gtf0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:c4eng:fall2024:projects:gtf0 [2024/09/11 00:30] – [DRAWING A CIRCLE] ehoad1notes:c4eng:fall2024:projects:gtf0 [2024/09/11 23:38] (current) – [DRAWING AN ELLIPSE] dnayo
Line 28: Line 28:
 ====MIXING A COLOR==== ====MIXING A COLOR====
 ====DRAWING A LINE==== ====DRAWING A LINE====
 +Use Function "gdImageLine (image, starting-X, starting-Y, terminating-X, terminating-Y, color);"
  
 ====DRAWING A RECTANGLE==== ====DRAWING A RECTANGLE====
 +Use function "gdImageRectangle (image, top left-X, top left-Y, bottom right-X, bottom right-Y, outline color);"
 ====FILLING AN ENCLOSED SPACE==== ====FILLING AN ENCLOSED SPACE====
 Use code, "gdImageFill (image, x-coordinate, y-coordinate, color to fill);" Use code, "gdImageFill (image, x-coordinate, y-coordinate, color to fill);"
 ====DRAWING A FILLED RECTANGLE==== ====DRAWING A FILLED RECTANGLE====
 +Use code, "gdImageFilledRectangle (image, x-coordinate, y-coordinate, final x-coordinate, final y-coordinate, color);"
 ====DRAWING A CIRCLE==== ====DRAWING A CIRCLE====
 Use code, "gdImageArc (image, center x-coordinate, center y-coordinate, diameter x, diameter y, start angle, end angle, color of the outline);" Use code, "gdImageArc (image, center x-coordinate, center y-coordinate, diameter x, diameter y, start angle, end angle, color of the outline);"
 ====DRAWING AN ELLIPSE==== ====DRAWING AN ELLIPSE====
 +Use code "gdImageArc (image, center x-coordinate, center y-coordinate, diameter x, diameter y, start angle, end angle, color);" (make sure the x and y diameters do not match - you WILL end up with a circle)
  
notes/c4eng/fall2024/projects/gtf0.1726014653.txt.gz · Last modified: 2024/09/11 00:30 by ehoad1