213
edits
No edit summary |
No edit summary |
||
Line 133: | Line 133: | ||
http://keiichimatsuda.com/augmentedcity.php | http://keiichimatsuda.com/augmentedcity.php | ||
http://keiichimatsuda.com/augmented.php | http://keiichimatsuda.com/augmented.php | ||
== 24.10.2011 Processing sketches == | |||
=== I Simple shapes === | |||
<source lang="java"> | |||
/* SIMPLE SHAPES | |||
* | |||
* Get familiar with the coordinate system and the way | |||
* shapes are beeing drawn onto the screen. | |||
* | |||
* Frederic Gmeiner 2011 | |||
*/ | |||
// define the width and height of the display window: | |||
// 400 x 400 px | |||
size(400,400); | |||
// draw the following shapes without outlines: | |||
noStroke(); | |||
//set the fill color of the following shapes to pure red: | |||
fill(255,0,0); | |||
// draw a rectangle: | |||
rect(230,230,50,100); | |||
// set the fill color to pure green and draw a rectangle: | |||
fill(0,255,0); | |||
rect(200,200,50,100); | |||
// set the outline color to pure blue: | |||
stroke(0,0,255); | |||
// draw the following shapes without any fill color: | |||
noFill(); | |||
// draw a ellipse: | |||
ellipse(100,100,20,20); | |||
</source> | |||
[[Category:WS11]] | [[Category:WS11]] |
edits