User Tools

Site Tools


notes:c4eng:fall2024:projects:gtf0

This is an old revision of the document!


GTF0

GRABIT

REPOSITORY STEPS

BUILD THE CODE

RUN THE PROGRAM

VIEW THE IMAGE

in Lab46, ensure you are in the directory where you executed “ gtf0 ”. Run the “ ls ” command, you should see “ gtf0.png ” in your current directory

Run the following move command “ mv gtf0.png ~/public_html ” to move the image file to a viewable website

Run the “ ls ” command, if “ gtf0.png ” is no longer in your current directory then it was successfully moved

In a web browser, navigate to the following URLhttps://lab46.g7n.org/~USERNAME/gtf0.png

replacing “ USERNAME ” with your lab46 username, make sure to keep the tilde “~”

Your output image should be displayed

If you get a “ 404 not found ” error, run the following command in lab46 “ cd ~/public_html

Then run the command “ ls ”, if gtf0.png is not listed as a file contained within the directory it was not successfully moved, review the first step

LIBGD FUNCTIONALITY

MIXING A COLOR

DRAWING A LINE

DRAWING A RECTANGLE

FILLING AN ENCLOSED SPACE

DRAWING A FILLED RECTANGLE

DRAWING A CIRCLE

DRAWING AN ELLIPSE

notes/c4eng/fall2024/projects/gtf0.1725375454.txt.gz · Last modified: 2024/09/03 14:57 by cgaul