User Tools

Site Tools


notes:cprog:fall2023: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:cprog:fall2023:projects:gtf0 [2023/09/04 23:03] – [DRAWING A CIRCLE] jbernatanotes:cprog:fall2023:projects:gtf0 [2023/09/07 01:47] (current) – [DRAWING A LINE] xcroft
Line 54: Line 54:
  
  
-====DRAWING A LINE==== +====DRAWING A LINE====                             
 +Command for a Line is gdImageLine (image, x, y, x^2, y^2, color);
 ====DRAWING A RECTANGLE==== ====DRAWING A RECTANGLE====
 +Command is gdImageRectangle (image, x, y, x^2, y^2, color);
 ====FILLING AN ENCLOSED SPACE==== ====FILLING AN ENCLOSED SPACE====
 +Do  gdImageFill (image, x, y, color);
  
 ====DRAWING A FILLED RECTANGLE==== ====DRAWING A FILLED RECTANGLE====
Line 66: Line 67:
 <blockquote> gdImageFilledRectangle (image, x, y, x2, y2, color); </blockquote> <blockquote> gdImageFilledRectangle (image, x, y, x2, y2, color); </blockquote>
 ====DRAWING A CIRCLE==== ====DRAWING A CIRCLE====
-gdImageArc (image, center point X, center point Y, diameter X, diameter Y, Angle start, angle end, color):+gdImageArc (image, center point X, center point Y, diameter X, diameter Y, Angle start, angle end, color)
 + 
 +Make sure the diameter X and Y are the same, as this makes a perfect circle
 ====DRAWING AN ELLIPSE==== ====DRAWING AN ELLIPSE====
  
 +gdImageArc (image, center point X, center point Y, diameter X, diameter Y, Angle start, angle end, color);
  
 +Make sure the diameter x and y are different integers, as this stretches the circle on the larger side making an ellipse.
notes/cprog/fall2023/projects/gtf0.1693868608.txt.gz · Last modified: 2023/09/04 23:03 by jbernata