This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2024:projects:gtf0 [2024/09/03 15:03] – cgaul | notes:c4eng:fall2024:projects:gtf0 [2024/09/11 23:38] (current) – [DRAWING AN ELLIPSE] dnayo | ||
---|---|---|---|
Line 3: | Line 3: | ||
=====GRABIT===== | =====GRABIT===== | ||
+ | Just typing in grabit will send you back an error, saying you need a designation and project. It it will then show you a list of designations. You will want c4eng. If you just type in “grabit c4eng” into the prompt, it will still pop back an error, but it will give you a list of projects to pick from. For this specific project, you will want to type in " | ||
+ | |||
+ | NOTE: Make sure you're in the correct directory before you move the files! In this case, you want to be in your repository. | ||
=====REPOSITORY STEPS===== | =====REPOSITORY STEPS===== | ||
+ | No src? Type into the prompt “fixrepo”. This clones the repositories Matt set up for us this semester. Follow the instructs as they show up on the screen. No need to set up a passkey. | ||
+ | |||
+ | Now, a new directory will appear when you use the ls command, called src. Type in "cd src" to get into this new directory. If you use the command " | ||
=====BUILD THE CODE===== | =====BUILD THE CODE===== | ||
+ | In order to build the code you first need to follow the steps above labeled " | ||
=====RUN THE PROGRAM===== | =====RUN THE PROGRAM===== | ||
+ | In order to run the program we will run the command " | ||
=====VIEW THE IMAGE===== | =====VIEW THE IMAGE===== | ||
< | < | ||
Run the following move command " **mv gtf0.png ~/ | Run the following move command " **mv gtf0.png ~/ | ||
- | < | + | < |
< | < | ||
replacing " **USERNAME** " with your lab46 username, make sure to keep the tilde " | replacing " **USERNAME** " with your lab46 username, make sure to keep the tilde " | ||
Line 20: | Line 28: | ||
====MIXING A COLOR==== | ====MIXING A COLOR==== | ||
====DRAWING A LINE==== | ====DRAWING A LINE==== | ||
+ | Use Function " | ||
====DRAWING A RECTANGLE==== | ====DRAWING A RECTANGLE==== | ||
+ | Use function " | ||
====FILLING AN ENCLOSED SPACE==== | ====FILLING AN ENCLOSED SPACE==== | ||
+ | Use code, " | ||
====DRAWING A FILLED RECTANGLE==== | ====DRAWING A FILLED RECTANGLE==== | ||
+ | Use code, " | ||
====DRAWING A CIRCLE==== | ====DRAWING A CIRCLE==== | ||
+ | Use code, " | ||
====DRAWING AN ELLIPSE==== | ====DRAWING AN ELLIPSE==== | ||
+ | Use code " | ||