This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:cprog:fall2023:projects:gtf0 [2023/09/07 01:25] – [DRAWING A LINE] xcroft | notes: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, | + | Command for a Line is gdImageLine (image, |
====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==== |