This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2023:projects:gtf0 [2023/09/04 15:40] – mwinter4 | notes:c4eng:fall2023:projects:gtf0 [2023/09/07 17:56] (current) – [REPOSITORY STEPS] nbutler5 | ||
---|---|---|---|
Line 15: | Line 15: | ||
You can use <wrap hi> | You can use <wrap hi> | ||
You should see 2 files, <wrap hi> | You should see 2 files, <wrap hi> | ||
+ | |||
+ | |||
+ | |||
+ | |||
=====REPOSITORY STEPS===== | =====REPOSITORY STEPS===== | ||
- | =====BUILD THE CODE===== | + | The first step in adding files to the repository is being in the folder where the files you want to add are in. Once you've " |
+ | < | ||
+ | After you've added the files, then you want to commit them. This can be done using the command below. Once the command has been entered it will take you to a nano window. | ||
+ | < | ||
+ | |||
+ | In the nano window you will want to " | ||
+ | < | ||
+ | |||
+ | After exiting and saving the nano window write the following command in the terminal to push your files to the repository server. In the terminal it will show you that the files have been added. | ||
+ | < | ||
+ | |||
+ | To verify you can preform the following commands that will provide info on your " | ||
+ | < | ||
+ | |||
+ | and/or | ||
+ | |||
+ | hg log</ | ||
+ | |||
+ | =====BUILD THE CODE===== | ||
+ | To edit the gtf0 file, you can use the following command: | ||
+ | < | ||
+ | You can scroll down and edit the sizes and colors of various shapes. Keep in mind that a color has to be defined, and every color has to be used, for the make command to work. | ||
=====RUN THE PROGRAM===== | =====RUN THE PROGRAM===== | ||
+ | After you are finished editing the code, and you want to check what it looks like, yo have to compile it with the following command: | ||
+ | < | ||
+ | Then, you can create the gtf0.png with the command: | ||
+ | < | ||
+ | Doing this allows you to copy the image to your public html, which is shown in the next step. If the image already exists, you may have to replace it by typing y when it asks you to overwrite the existing image. | ||
=====VIEW THE IMAGE===== | =====VIEW THE IMAGE===== |