User Tools

Site Tools


haas:spring2017:cprog:projects:cos0

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
haas:spring2017:cprog:projects:cos0 [2017/03/11 23:00] wedgehaas:spring2017:cprog:projects:cos0 [2017/03/20 14:45] (current) – [How to view your image] wedge
Line 22: Line 22:
 Now that we've gotten through all of them, it is time to start applying those concepts so that deeper and further familiarity can be gained. This project is one such attempt at that. Now that we've gotten through all of them, it is time to start applying those concepts so that deeper and further familiarity can be gained. This project is one such attempt at that.
  
-We all know what a circle is, and in various math classes we've even explored various methods for doing things with circles (they have a radius, a circumference, a diameter), but how do would we enable the computer to draw a circle?+We all know what a circle is, and in various math classes we've even explored various methods for doing things with circles (they have a radius, a circumference, a diameter), but how would we enable the computer to draw a circle?
  
 One piece of that, obviously, is the math. One piece of that, obviously, is the math.
Line 70: Line 70:
  *  *
  * Documentation:  http://www.boutell.com/gd/manual2.0.33.html  * Documentation:  http://www.boutell.com/gd/manual2.0.33.html
 +                 https://libgd.github.io/manuals/2.1.1/index/Functions.html
  */  */
 #include <stdio.h> #include <stdio.h>
Line 180: Line 181:
 } }
 </code> </code>
 +
 +=====How to view your image=====
 +When you have a functioning project and want to view the images generated, you need to make sure they are deployed into your **public_html/** directory.
 +
 +To view your image in a web browser, simply point it at the following URL:
 +
 +  * <nowiki>https://lab46.g7n.org/~USERNAME/IMAGE.png</nowiki>
 +
 +... where "USERNAME" is your lab46 username (in lowercase), and "IMAGE" is the name of your png file (likely also in lowercase, such as 'cos0').
 +
 +Note that the tilde just prior to your username in the URL is critical and necessary.
  
 =====Grabit Integration===== =====Grabit Integration=====
haas/spring2017/cprog/projects/cos0.1489273224.txt.gz · Last modified: 2017/03/11 23:00 by wedge