GMU:Wild Type/Part1: Difference between revisions

From Medien Wiki
No edit summary
(update source, add links to openprocessing)
Line 26: Line 26:


==== Source Code ====
==== Source Code ====
Here is the source for our little "J" example.
You can also find it [http://openprocessing.org/sketch/226349 here] and in the [http://www.openprocessing.org/classroom/25077 Wild Type Class Room] ''OpenProcessing''.
<source lang="java">
<source lang="java">


////////////////////////////////////////////////////////
//                                                    //
//          P A R A M E T R I C  >> J <<            //
//                                                    //
////////////////////////////////////////////////////////
// This is a really simple example of parametric type design.
// HOMEWORK:
// Create your own parametric letter
void setup() {
void setup() {
   size(400, 400);
   size(400, 400);
   noFill();
   noFill();
}
}
 
 
void draw() {
void draw() {
 
 
   int gap = 30;
   int gap = 60;
   int pos = 228;
   int pos = 250;
   int maxheight = 303;
   int maxheight = 320;
   int thickness = 1;
   int thickness = 20;
   int dx = 163;
   int dx = 120;
   int dy = 186;
   int dy = 120;
 
 
   background(0);
   background(0);
   stroke(255);
   stroke(255);
Line 49: Line 65:
    
    
}
}
</source>
</source>


Line 59: Line 76:
# Pick a letter from the alphabet and create your own parametric letter
# Pick a letter from the alphabet and create your own parametric letter
# Put the source code and a screen shot onto your user page for this course
# Put the source code and a screen shot onto your user page for this course
== Links ==
* [http://www.openprocessing.org/classroom/25077 Wild Type Class Room]