<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1566869350106117648</id><updated>2011-04-22T03:39:24.739+01:00</updated><title type='text'>An Introduction to Processing</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-3166185850971415952</id><published>2007-03-25T11:53:00.001+01:00</published><updated>2007-03-28T11:41:29.987+01:00</updated><title type='text'>Introduction</title><content type='html'>&lt;span style="font-family:Arial,sans-serif;"&gt;In this project we will use the program “processing” to create an original and exciting work of art. &lt;/span&gt;&lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;Processing can be downloaded for free from the processing website at  &lt;/span&gt;&lt;a href="http://www.proce55ing.net/"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;www.Proce55ing.net. or processing.org &lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-3166185850971415952?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/3166185850971415952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=3166185850971415952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3166185850971415952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3166185850971415952'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/introduction.html' title='Introduction'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-3614176715973705291</id><published>2007-03-25T11:52:00.000+01:00</published><updated>2007-03-25T11:53:29.922+01:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Mknak4DfOko/RgZUllPdgJI/AAAAAAAAAA0/LNBxSTqFNI0/s1600-h/processing.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_Mknak4DfOko/RgZUllPdgJI/AAAAAAAAAA0/LNBxSTqFNI0/s400/processing.bmp" alt="" id="BLOGGER_PHOTO_ID_5045813437144072338" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-3614176715973705291?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/3614176715973705291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=3614176715973705291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3614176715973705291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3614176715973705291'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/blog-post_25.html' title=''/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Mknak4DfOko/RgZUllPdgJI/AAAAAAAAAA0/LNBxSTqFNI0/s72-c/processing.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-4217231798840344040</id><published>2007-03-25T11:51:00.000+01:00</published><updated>2007-03-25T11:52:37.776+01:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Mknak4DfOko/RgZUcFPdgII/AAAAAAAAAAs/gcVs58PoOzk/s1600-h/controls.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_Mknak4DfOko/RgZUcFPdgII/AAAAAAAAAAs/gcVs58PoOzk/s400/controls.bmp" alt="" id="BLOGGER_PHOTO_ID_5045813273935315074" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-4217231798840344040?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/4217231798840344040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=4217231798840344040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/4217231798840344040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/4217231798840344040'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/blog-post.html' title=''/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Mknak4DfOko/RgZUcFPdgII/AAAAAAAAAAs/gcVs58PoOzk/s72-c/controls.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-8515101686089608844</id><published>2007-03-25T11:50:00.000+01:00</published><updated>2007-03-28T11:45:11.796+01:00</updated><title type='text'>Part 1</title><content type='html'>&lt;p&gt;copy and paste this into processing and then click run:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Verdana;font-size:100%;"  lang="EN-GB" &gt;size(200,100);&lt;br /&gt;background(255,255,0);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;span style=";font-family:Verdana;font-size:100%;color:black;"   lang="EN-GB" &gt;stroke(255,0,0);&lt;br /&gt;strokeWeight(20);&lt;/span&gt;&lt;span style=";font-family:Verdana;font-size:24;"  lang="EN-GB" &gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;point(50,50);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Let us break this code down, line for line.&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;Size(200,100);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Calling the &lt;b&gt;size &lt;/b&gt;function lets the size of the canvas to 200 pixels high, 100 pixels wide. If you do not call this at the beginning, the default will be 100x100.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;background(0,0,0);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Calling the &lt;b&gt;background&lt;/b&gt; function lets you change the color of the entire canvas. The default is grey.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;stroke(255,0,0);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Calling the &lt;b&gt;stroke&lt;/b&gt; function lets you change the current drawing color so that every drawing command called after it will draw using that color. 255,0,0 means red. The default is black.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;point(50,50);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Calling the &lt;b&gt;point&lt;/b&gt; function will set the pixel at 50,50 to the current stroke color. In this case, red.&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;&lt;br /&gt;stroke(0,255,0);&lt;br /&gt;point(100,50);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This code makes a green dot in the center.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;stroke(0,0,255);&lt;br /&gt;point(150,50); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This code makes the blue dot on the right.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(255, 102, 0);font-size:85%;" &gt;strokeWeight(12);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;the number controls the size of the stroke/pen.&lt;/span&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Verdana;font-size:24;"  lang="EN-GB" &gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;       &lt;p&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Exercise 1 :&lt;/span&gt;&lt;/span&gt;   &lt;/p&gt; &lt;p&gt;&lt;br /&gt;Try changing the numbers to make different sized canvas and background then try changing the other numbers. Add more dots and experiment with changing their order in the window.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;Keep print screens of your progress.&lt;br /&gt;&lt;br /&gt;REMEMBER: &lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;The screen is a graph of pixels - each individually addressable by a unique (X,Y) coordinate. The origin (0,0) is at the top left corner of the rectangle. As you add to Y, you move down. As you add to X, you move to the right.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-8515101686089608844?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/8515101686089608844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=8515101686089608844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/8515101686089608844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/8515101686089608844'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-1_25.html' title='Part 1'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-2726501071302404960</id><published>2007-03-25T11:49:00.002+01:00</published><updated>2007-03-28T11:50:54.715+01:00</updated><title type='text'>Part 2</title><content type='html'>Let us now expand to more complex shapes. Here are two lines. The first one is white, and the second one is yellow.&lt;br /&gt;&lt;br /&gt;&lt;table style="color: rgb(0, 0, 0);" border="0" cellpadding="5" cellspacing="0" width="500"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bg="" width="123"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;background(0,0,0);&lt;br /&gt;stroke(255,255,255);&lt;br /&gt;line(0,0,60,40);&lt;br /&gt;stroke(255,255,0);&lt;br /&gt;line(30,50,100,100);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;In the line function, the first two parameters are the first x,y coordinate, and the last two parameters are the second x,y coordinate. The line is drawn from the first coordinate to the second.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;table border="0" cellpadding="5" cellspacing="0" width="500"&gt;  &lt;col width="123"&gt;  &lt;col width="193"&gt;  &lt;col width="154"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="123"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td width="193"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="154"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/2.gif" name="graphics5" align="bottom" border="0" height="145" width="126" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="color: rgb(255, 0, 0); font-style: italic;font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Exercise 2 :&lt;/span&gt;&lt;/span&gt; &lt;p&gt;&lt;br /&gt;Horizontal, Vertical, and Angled lines all contribute to creating different moods of a picture. Straight, horizontal lines, commonly found in landscape photography, gives the impression of calm, tranquility, and space. An image filled with strong vertical lines tends to have the impression of height, and grandeur. Tightly angled convergent lines give a dynamic, lively, and active effect to the image.  &lt;/p&gt; &lt;p&gt;Please add at least 5 lines to your canvas. You should give consideration to both the placing of these in relation to both each other and the size of the frame. You should consider overlapping them to create dynamic effects as well as continuing them off the page.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-2726501071302404960?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/2726501071302404960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=2726501071302404960' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/2726501071302404960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/2726501071302404960'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-2_25.html' title='Part 2'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-6023552257605999408</id><published>2007-03-25T11:49:00.001+01:00</published><updated>2007-03-30T10:44:56.802+01:00</updated><title type='text'>Part 3</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:6;"&gt;&lt;b&gt;Triangle&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;triangle&lt;/b&gt; will draw a three-pointed polygon.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;It has six parameters. numbers 1 and 2 are the first X,Y coordinate. numbers 3 and 4 are the second X,Y coordinate and numbers  5 and 6 are the third X,Y coordinate. &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Type the code below into processing exactly as it is . When it works you can change the numbers to create your own triangles.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;triangle(12,50, 90,15, 50,60);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Now try to make a more equilateral triangle. Add a second triangle to make a star design.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;..........&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Rectangle&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;rect &lt;/b&gt;will draw a rectangle. The first and second parameter will specify the position of the top left corner, while the third and fourth parameters specify the width and height.&lt;br /&gt;&lt;br /&gt;rect(&lt;span style="color: rgb(204, 102, 0);"&gt;x&lt;/span&gt;, &lt;span style="color: rgb(204, 102, 0);"&gt;y&lt;/span&gt;, &lt;span style="color: rgb(204, 102, 0);"&gt;width&lt;/span&gt;, &lt;span style="color: rgb(204, 102, 0);"&gt;height&lt;/span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;eg&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;rect(25,25,50,50);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Fit 3 squares inside each other and record the result.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;...............&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;Elli&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;pse&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt; Ellipse &lt;/b&gt;&lt;span style=""&gt;will draw an oval. The first 2 numbers specify the middle of the ellipse. The next are its width and height.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;ellipse(80,10,60,60);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Try smooth(); in conduction with this shape:Put it BEFORE the ellipse command&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;.....&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;QUADRILATERAL&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;quad &lt;/b&gt;will draw a four-pointed polygon. The structure of the parameters are similar to that of triangle, but this time, a fourth pair of parameters are added to specify a fourth X,Y coordinate. Type in the code below and then adjust numbers until you are happy that you understand it.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;quad(61,60, 94,60, 99,83, 81,90);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Exercise 3&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0.5cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Try to create an interesting geometric design that uses rectangles, circles, ellipses and quads and then record this.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-6023552257605999408?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/6023552257605999408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=6023552257605999408' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/6023552257605999408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/6023552257605999408'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-3_25.html' title='Part 3'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-3243394785356939750</id><published>2007-03-25T11:44:00.002+01:00</published><updated>2007-03-25T12:14:38.957+01:00</updated><title type='text'>Part 4</title><content type='html'>&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;fills and strokes&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;Quad(61,60, 94,60, 99,83, 81,90);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;fill(#CC6600);&lt;br /&gt;stroke(#FFFFFF);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;.........&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;The colours are based on hexadecimal system often used with web colours. The first 2 numbers represent the amount of red the next two green and the last blue. Clearer explanationation of this can be found on &lt;/b&gt;&lt;a href="http://www.w3schools.com/"&gt;&lt;b&gt;www.w3schools.com&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;&lt;br /&gt;Fill is what makes the polygons green, while stroke is what makes the outlines red. The default fill is white. But what if I don't want a fill?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;.........&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;noFill( );&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;..........&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Exercise 4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Create a sketch which has at least 4 different shapes. Try to use all of the commands that we have encountered so far. Make sure that you choose your colours carefully. Change the order of the shapes eg put rect below triangle and see if you can see any difference in the output sketch.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;&lt;span style="font-size:85%;"&gt;Part 5 -- 3d boxes&lt;/span&gt;&lt;/h3&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-size:6;"&gt;&lt;b&gt;box()&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Examples  &lt;/p&gt; &lt;p&gt;&lt;img src="http://processing.org/reference/media/box_.gif" name="graphics28" alt="example pic" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt; &lt;pre&gt;translate(58, 48, 0);&lt;br /&gt;rotateY(0.5);&lt;br /&gt;box(40);&lt;/pre&gt;&lt;p&gt; &lt;img src="http://processing.org/reference/media/box_2.gif" name="graphics29" alt="example pic" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt; &lt;pre&gt;translate(58, 48, 0);&lt;br /&gt;rotateY(0.5);&lt;br /&gt;box(40, 20, 50);&lt;/pre&gt;&lt;p&gt; Description A box is an extruded rectangle. A box with equal dimension on all sides is a cube. Syntax  &lt;/p&gt; &lt;pre&gt;box(&lt;kbd&gt;size&lt;/kbd&gt;);&lt;br /&gt;box(&lt;kbd&gt;width&lt;/kbd&gt;, &lt;kbd&gt;height&lt;/kbd&gt;, &lt;kbd&gt;depth&lt;/kbd&gt;);&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;h3&gt;&lt;span style="font-size:85%;"&gt;example&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;size(100,100,P3D);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;noStroke();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;lights();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;translate(50,50,0);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;rotateY(0.5);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;box(40);&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;&lt;span style="font-size:85%;"&gt;example2&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;/**&lt;/span&gt;&lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;* Primitives 3D. &lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;* &lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;*  &lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;* Created 16 January 2003&lt;/span&gt;&lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;*/&lt;/span&gt;&lt;/p&gt; &lt;p&gt;  &lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;size(200, 200, P3D); &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;background(0);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;lights();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;noStroke();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;pushMatrix();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;translate(47, height/2, 0);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;rotateY(0.75);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;box(50);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;popMatrix();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;pushMatrix();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;translate(200, height/2, 0);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;sphere(100);&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;popMatrix();&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;.......&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-3243394785356939750?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/3243394785356939750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=3243394785356939750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3243394785356939750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3243394785356939750'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-4_25.html' title='Part 4'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-1166343620224335209</id><published>2007-03-25T11:44:00.001+01:00</published><updated>2007-03-25T11:44:34.839+01:00</updated><title type='text'>Part 6</title><content type='html'>&lt;h3&gt;&lt;span style="font-size:85%;"&gt;Part 6 Java Comments&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Comments start a line with "//" . They are not executed. They are inserted by the programmer to explain what she is doing. And when coming back later, you or another programmer can quickly follow what has been done. &lt;/span&gt; &lt;/p&gt; &lt;dl&gt;&lt;dd style="margin-left: 0.03cm; text-align: left;"&gt;&lt;br /&gt; &lt;/dd&gt;&lt;dd style="margin-left: 0.03cm; text-align: left;"&gt;  Typing comments throughout your code does not have any affect on the  program's commands. However, like showing you “working out” in  maths, adding comments to your code display your thought processes  as you create your design.&lt;/dd&gt;&lt;dd style="margin-left: 0.03cm; text-align: left;"&gt;  &lt;br /&gt; &lt;/dd&gt;&lt;dd style="margin-left: 0.03cm; text-align: left;"&gt;  Comments are added using the // command followed by some text&lt;/dd&gt;&lt;dd style="margin-left: 0.03cm; text-align: left;"&gt;  &lt;br /&gt; &lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  Another common practise is using rows of characters such as %%%%%%  or ************  to mark out or emphasise some important step.&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  &lt;br /&gt; &lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //a simple program&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //**************&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //prepare paper and pen&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  Paper 0&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  Pen 100&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //###################&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //#This is a way to make an&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //#emphatic comment&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //####################&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  Line 0 0 50 100&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  &lt;br /&gt; &lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  &lt;br /&gt; &lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //%%%%%%%%%%%%%%%&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //%                                            %&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //%                                            %&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //%          look at me!                %&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //%                                            %&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //%%%%%%%%%%%%%%%&lt;/dd&gt;&lt;dd style="margin-left: 0cm; text-align: left;"&gt;  //&lt;/dd&gt;&lt;/dl&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;.................&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;b&gt;Now, you can see the quad underneath the oval because only the strokes are being drawn. Similarly, there is noStroke, which disables the outline from being drawn. To enable stroke or fill once more, you must call stroke or fill, specifying a color.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Extension &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Composition is the plan, placement or arrangement of the elements of art in a work. The general goal is to select and place appropriate elements within the work in order to communicate ideas and feelings with the viewer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Change  the locations of the shapes and their colours (or noFill( );) You can repeat shapes but you must have at least 6 shapes.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;.........................&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-1166343620224335209?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/1166343620224335209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=1166343620224335209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/1166343620224335209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/1166343620224335209'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-6_25.html' title='Part 6'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-3208330466170515104</id><published>2007-03-25T11:40:00.000+01:00</published><updated>2007-04-04T15:02:55.202+01:00</updated><title type='text'>Part 7</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Drawing with curves is slightly more complex than drawing with straight lines. Specifying a curve requires providing non-visual information that helps to define the severity and direction of curvature. First we will look at Bezier curves&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;bezier(50, 20, 100, 0, 90, 80, 50, 90);&lt;br /&gt;//this code shows you the points used for the curve information&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;strokeWeight(9);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;point(100,0);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;point(90,80);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;For the &lt;b&gt;bezier( )&lt;/b&gt; function, the first two parameters specify the first point in the curve and the last two parameters specify the last point. The middle parameters provide the context for defining the shape of the curve. The 2nd two numbers make a kind of target for the first two numbers and the 5th and 6th numbers make a target co-ordinate for the ending point specified at 7 and 8.&lt;br /&gt;&lt;br /&gt;see the processing - help - reference for more information.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:78%;"&gt;....&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Exercise - Try to make either a "love heart" shape or a Nike sign using 2 bezier curves.&lt;/p&gt;&lt;p&gt;.......&lt;/p&gt;&lt;p&gt;now paste this in to processing and play!!&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;void draw()&lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;background(204); &lt;/p&gt;&lt;p&gt;bezier(mouseX, 20, 100, 0, 90, 80, 50, 90);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;.........&lt;/p&gt;Curves are slightly different - post this link into your browser&lt;br /&gt;&lt;br /&gt;http://www.cse.unsw.edu.au/~lambert/splines/CatmullRom.html&lt;br /&gt;&lt;br /&gt;....................................&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;You might also want to try some arcs&lt;/p&gt;&lt;h3&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:6;"&gt;&lt;b&gt;arc()&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p style="MARGIN-BOTTOM: 0cm"&gt;Examples &lt;/p&gt;&lt;p&gt;&lt;img height="100" alt="example pic" src="http://processing.org/reference/media/arc_.gif" width="100" align="bottom" border="0" name="graphics23" /&gt;&lt;/p&gt;&lt;pre&gt;arc(50, 55, 50, 50, 0, PI/2);&lt;br /&gt;noFill();&lt;br /&gt;arc(50, 55, 60, 60, PI/2, PI);&lt;br /&gt;arc(50, 55, 70, 70, PI, TWO_PI-PI/2);&lt;br /&gt;arc(50, 55, 80, 80, TWO_PI-PI/2, TWO_PI);&lt;/pre&gt;&lt;p&gt;Description Draws an arc in the display window. Arcs are drawn along the outer edge of an ellipse defined by the &lt;b&gt;x&lt;/b&gt;, &lt;b&gt;y&lt;/b&gt;, &lt;b&gt;width&lt;/b&gt; and &lt;b&gt;height&lt;/b&gt; parameters. The origin or the arc's ellipse may be changed with the &lt;b&gt;ellipseMode()&lt;/b&gt; function. The &lt;b&gt;start&lt;/b&gt; and &lt;b&gt;stop&lt;/b&gt; parameters specify the angles at which to draw the arc. Syntax &lt;/p&gt;&lt;pre style="MARGIN-BOTTOM: 0.5cm"&gt;ellipse(&lt;kbd&gt;x&lt;/kbd&gt;, &lt;kbd&gt;y&lt;/kbd&gt;, &lt;kbd&gt;width&lt;/kbd&gt;, &lt;kbd&gt;height&lt;/kbd&gt;, &lt;kbd&gt;start&lt;/kbd&gt;, &lt;kbd&gt;stop&lt;/kbd&gt;)&lt;/pre&gt;&lt;table cellspacing="0" cellpadding="0" width="642" border="0"&gt;&lt;colgroup&gt;&lt;col width="43"&gt;&lt;col width="599"&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th width="43"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/th&gt;&lt;td width="599"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th width="43"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/th&gt;&lt;td width="599"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th width="43"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/th&gt;&lt;td width="599"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th width="43"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/th&gt;&lt;td width="599"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th width="43"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/th&gt;&lt;td width="599"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th width="43"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/th&gt;&lt;td width="599"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-3208330466170515104?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/3208330466170515104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=3208330466170515104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3208330466170515104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3208330466170515104'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-7.html' title='Part 7'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-4169395221283027275</id><published>2007-03-25T11:39:00.000+01:00</published><updated>2007-03-25T11:40:04.348+01:00</updated><title type='text'>Part 8</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial, sans-serif;"&gt;&lt;span style="font-size: 28pt;font-size:6;" &gt;&lt;b&gt;Part 8 Points &lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;h3&gt;point()&lt;/h3&gt; &lt;p style="margin-bottom: 0cm;"&gt;Examples  &lt;/p&gt; &lt;p&gt;&lt;img src="http://processing.org/reference/media/point_.gif" name="graphics21" alt="example pic" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt; &lt;pre&gt;point(30, 20);&lt;br /&gt;point(85, 20);&lt;br /&gt;point(85, 75);&lt;br /&gt;point(30, 75);&lt;/pre&gt;&lt;p&gt; &lt;img src="http://processing.org/reference/media/point_2.gif" name="graphics22" alt="example pic" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt; &lt;pre&gt;size(100, 100, P3D);&lt;br /&gt;point(30, 20, -50);&lt;br /&gt;point(85, 20, -50);&lt;br /&gt;point(85, 75, -50);&lt;br /&gt;point(30, 75, -50);&lt;/pre&gt;&lt;p&gt; Description Draws a point, a coordinate in space at the dimension of one pixel. The first parameter is the horizontal value for the point, the second value is the vertical value for the point, and the optional third value is the depth value. Drawing this shape in 3D using the &lt;b&gt;z&lt;/b&gt; parameter requires the P3D or OPENGL parameter in combination with size as shown in the above example. Syntax  &lt;/p&gt; &lt;pre&gt;point(&lt;kbd&gt;x&lt;/kbd&gt;, &lt;kbd&gt;y&lt;/kbd&gt;);&lt;br /&gt;point(&lt;kbd&gt;x&lt;/kbd&gt;, &lt;kbd&gt;y&lt;/kbd&gt;, &lt;kbd&gt;z&lt;/kbd&gt;);&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-4169395221283027275?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/4169395221283027275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=4169395221283027275' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/4169395221283027275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/4169395221283027275'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-8.html' title='Part 8'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-4579000857879134381</id><published>2007-03-25T11:37:00.000+01:00</published><updated>2007-03-25T12:03:04.285+01:00</updated><title type='text'>Part 9</title><content type='html'>&lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;Part 9 more shapes &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;Although Processing has provided these quick primitives, you are still free (and encouraged) to construct your own shapes.&lt;br /&gt;&lt;br /&gt;Using the &lt;b&gt;beginShape( )&lt;/b&gt; and &lt;b&gt;endShape( )&lt;/b&gt; methods are the key to creating more complex forms. &lt;b&gt;beginShape( )&lt;/b&gt; begins recording vertices for a shape and &lt;b&gt;endShape( )&lt;/b&gt; stops recording. The &lt;b&gt;beginShape( )&lt;/b&gt; command requires a parameter to tell it which type of shape to create from the provided vertices. The parameters available for &lt;b&gt;beginShape( )&lt;/b&gt; are LINES, LINE_STRIP, LINE_LOOP, TRIANGLES, TRIANGLE_STRIP, QUADS, QUAD_STRIP, and POLYGON. After giving the &lt;b&gt;beginShape( )&lt;/b&gt; command, a series of &lt;b&gt;vertex( )&lt;/b&gt; commands must follow. To stop drawing the shape, give the &lt;b&gt;endShape( )&lt;/b&gt; command. &lt;b&gt;Vertex( )&lt;/b&gt; commands with two parameters specify a position in 2D and &lt;b&gt;vertex( )&lt;/b&gt; commands with three parameters specify a position in 3D. Each shape will be outlined with the current stroke color and filled with the fill color (see the Color section for more information).&lt;br /&gt;&lt;br /&gt;Here are some examples from Proce55ing.net&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;table border="0" cellpadding="5" cellspacing="0" width="519"&gt;  &lt;col width="234"&gt;  &lt;col width="27"&gt;  &lt;col width="228"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;beginShape(LINE_LOOP);&lt;br /&gt;vertex(30,    20, -50);&lt;br /&gt;vertex(85, 20, 0);&lt;br /&gt;vertex(85, 75, -80);&lt;br /&gt;vertex(30,    75, 0);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape5.gif" name="graphics13" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;beginShape(TRIANGLES);&lt;br /&gt;vertex(30,    75);&lt;br /&gt;vertex(40, 20);&lt;br /&gt;vertex(50, 75);&lt;br /&gt;vertex(60,    20);&lt;br /&gt;vertex(70, 75);&lt;br /&gt;vertex(80, 20);&lt;br /&gt;vertex(90,    75);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape6.gif" name="graphics14" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;beginShape(TRIANGLE_STRIP);&lt;br /&gt;vertex(30,    75);&lt;br /&gt;vertex(40, 20);&lt;br /&gt;vertex(50, 75);&lt;br /&gt;vertex(60,    20);&lt;br /&gt;vertex(70, 75);&lt;br /&gt;vertex(80, 20);&lt;br /&gt;vertex(90,    75);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape7.gif" name="graphics15" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;noFill(    );&lt;br /&gt;beginShape(TRIANGLE_STRIP);&lt;br /&gt;vertex(30, 75);&lt;br /&gt;vertex(40,    20);&lt;br /&gt;vertex(50, 75);&lt;br /&gt;vertex(60, 20);&lt;br /&gt;vertex(70,    75);&lt;br /&gt;vertex(80, 20);&lt;br /&gt;vertex(90, 75);&lt;br /&gt;endShape( );&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape8.gif" name="graphics16" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;noStroke(    );&lt;br /&gt;fill(153, 153, 153);&lt;br /&gt;beginShape(TRIANGLE_STRIP);&lt;br /&gt;vertex(30,    75);&lt;br /&gt;vertex(40, 20);&lt;br /&gt;vertex(50, 75);&lt;br /&gt;vertex(60,    20);&lt;br /&gt;vertex(70, 75);&lt;br /&gt;vertex(80, 20);&lt;br /&gt;vertex(90,    75);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape9.gif" name="graphics17" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;noStroke(    );&lt;br /&gt;fill(102);&lt;br /&gt;beginShape(POLYGON);&lt;br /&gt;vertex(38,    23);&lt;br /&gt;vertex(46, 23);&lt;br /&gt;vertex(46, 31);&lt;br /&gt;vertex(54,    31);&lt;br /&gt;vertex(54, 38);&lt;br /&gt;vertex(61, 38);&lt;br /&gt;vertex(61,    46);&lt;br /&gt;vertex(69, 46);&lt;br /&gt;vertex(69, 54);&lt;br /&gt;vertex(61,    54);&lt;br /&gt;vertex(61, 61);&lt;br /&gt;vertex(54, 61);&lt;br /&gt;vertex(54,    69);&lt;br /&gt;vertex(46, 69);&lt;br /&gt;vertex(46, 77);&lt;br /&gt;vertex(38,    77);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape15.gif" name="graphics18" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;beginShape(LINE_STRIP);&lt;br /&gt;curveVertex(84,    91);&lt;br /&gt;curveVertex(68, 19);&lt;br /&gt;curveVertex(21,    17);&lt;br /&gt;curveVertex(32, 100);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape16.gif" name="graphics19" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;beginShape(LINE_STRIP);&lt;br /&gt;curveVertex(84,    91);&lt;br /&gt;curveVertex(84, 91);&lt;br /&gt;curveVertex(68,    19);&lt;br /&gt;curveVertex(21, 17);&lt;br /&gt;curveVertex(32,    100);&lt;br /&gt;curveVertex(32, 100);&lt;br /&gt;endShape( ); &lt;/span&gt;&lt;/span&gt;    &lt;/p&gt;   &lt;/td&gt;   &lt;td width="27"&gt;    &lt;p&gt; &lt;/p&gt;  &lt;br /&gt;&lt;/td&gt;   &lt;td width="228"&gt;    &lt;p align="right"&gt;&lt;img src="http://www.jtnimoy.com/itp/p5/workshop/images/BeginShape_EndShape17.gif" name="graphics20" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td bg="" style="color: rgb(238, 238, 238);" width="234"&gt;    &lt;p&gt;&lt;span style="font-family:Verdana,Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size:78%;"&gt;beginShape(LINE_STRIP);&lt;br /&gt;bezierVertex(30,    20);&lt;br /&gt;bezierVertex(80, 0);&lt;br /&gt;bezierVertex(80,    75);&lt;br /&gt;bezierVertex(30, 75);&lt;br /&gt;endShape( );&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td colspan="2" valign="top" width="265"&gt;&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-4579000857879134381?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/4579000857879134381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=4579000857879134381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/4579000857879134381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/4579000857879134381'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-9-more-shapes-although-processing.html' title='Part 9'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-3833660747892241091</id><published>2007-03-25T11:22:00.002+01:00</published><updated>2007-03-25T11:27:31.428+01:00</updated><title type='text'>Part 9</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:6;"&gt;&lt;b&gt;Part 9 &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-3833660747892241091?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/3833660747892241091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=3833660747892241091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3833660747892241091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3833660747892241091'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-9.html' title='Part 9'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-5372216518840551507</id><published>2007-03-25T11:22:00.001+01:00</published><updated>2007-04-11T10:29:50.402+01:00</updated><title type='text'>Part 10: Images</title><content type='html'>&lt;p style="margin-bottom: 0cm;"&gt;  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;  &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;size(395, 253);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;PImage a;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;a=loadImage("http://www.isse-school.nl/images/building/ISSE%20front%20view.JPG"); &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;image(a, 0, 0); &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;.....&lt;br /&gt;&lt;/p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;now let's try tinting&lt;/span&gt;&lt;/span&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;Examples  &lt;/p&gt; &lt;p&gt;&lt;img src="http://processing.org/reference/media/tint_.jpg" name="graphics30" alt="example pic" align="bottom" border="0" height="38" width="75" /&gt;&lt;/p&gt; &lt;pre&gt;PImage b;&lt;br /&gt;b = loadImage("&lt;span style="font-family:Arial,sans-serif;font-size:85%;"&gt;http://www.isse-school.nl/images/building/ISSE%20front%20view.JPG&lt;/span&gt;");&lt;br /&gt;image(b, 0, 0);&lt;br /&gt;tint(0, 153, 204);&lt;br /&gt;image(b, 50, 0);&lt;/pre&gt;&lt;p&gt; &lt;img src="http://processing.org/reference/media/tint_2.jpg" name="graphics31" alt="example pic" align="bottom" border="0" height="100" width="100" /&gt;&lt;/p&gt; &lt;pre&gt;PImage b;&lt;br /&gt;b = loadImage("&lt;span style="font-family:Arial,sans-serif;font-size:85%;"&gt;http://www.isse-school.nl/images/building/ISSE%20front%20view.JPG&lt;/span&gt;");&lt;br /&gt;image(b, 0, 0);&lt;br /&gt;// Tint blue and set transparency&lt;br /&gt;tint(0, 153, 204, 126);&lt;br /&gt;image(b, 50, 0);&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p style="margin-bottom: 0cm;"&gt; &lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;exercise 5&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:130%;"&gt;The history of art has produced many iconic images such as mona lisa,s smile or Michaelangleos touching the fingers thing. For the final activity you will create an original piece of work using processing and inspired by a traditional aspect of art. You might tint a work of art differently, follow some curves using bezier curves or use golden raios. You must explain within your comments what you are trying to do. Your work could be as literal as Duchamp who drew a moustache on the Mona Lisa or far more subtle be creative but remember to keep a diary of your progress.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-5372216518840551507?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/5372216518840551507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=5372216518840551507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/5372216518840551507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/5372216518840551507'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-10.html' title='Part 10: Images'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-2597529169086956578</id><published>2007-03-25T10:56:00.000+01:00</published><updated>2007-04-23T08:15:01.675+01:00</updated><title type='text'>for</title><content type='html'>&lt;table class="ref-item" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr class="name-row"&gt; &lt;th scope="row"&gt;&lt;br /&gt;&lt;/th&gt; &lt;td&gt; &lt;h3&gt;for()&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;&lt;br /&gt;&lt;/th&gt; &lt;td&gt; &lt;div class="example"&gt;&lt;img alt="example pic" src="media/for_.gif" /&gt;&lt;br /&gt;&lt;pre class="margin"&gt;for(int i=0; i&lt;40; i=i+1)&lt;br /&gt;{&lt;br /&gt; line(30, i, 80, i);&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt; &lt;div class="example"&gt;&lt;img alt="example pic" src="media/for_2.gif" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="margin"&gt;for(int i=0; i&lt;80; i=i+5)&lt;br /&gt;{&lt;br /&gt; line(30, i, 80, i);&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt; &lt;div class="example"&gt;&lt;img alt="example pic" src="media/for_3.gif" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="margin"&gt;for(int i=40; i&lt;80; i=i+5)&lt;br /&gt; {&lt;br /&gt; line(30, i, 80, i);&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt; &lt;div class="example"&gt;&lt;img alt="example pic" src="media/for_4.gif" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="margin"&gt;for(int i=30; i&lt;80; i=i+5) {&lt;br /&gt; for(int j=0; j&lt;80; j=j+5) {&lt;br /&gt;   point(i, j);&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;Description&lt;/th&gt; &lt;td&gt;Controls a sequence of repetitions. A &lt;b&gt;for()&lt;/b&gt; structure has three  parts: &lt;b&gt;init&lt;/b&gt;, &lt;b&gt;test&lt;/b&gt;, and &lt;b&gt;update&lt;/b&gt;. Each part must be separated  by a semi-colon ";". The loop continues until the test evaluates to  &lt;b&gt;false&lt;/b&gt;. When a &lt;b&gt;for()&lt;/b&gt; structure is executed, the following sequence  of events occurs:&lt;br /&gt;1. The init statement is executed&lt;br /&gt;2. The test is  evaluated to be true or false&lt;br /&gt;3. If the test is true, jump to step 4. If the  test is False, jump to step 6&lt;br /&gt;4. Execute the statements within the  block&lt;br /&gt;5. Execute the update statement and jump to step 2&lt;br /&gt;6. Exit the  loop.&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;Syntax&lt;/th&gt; &lt;td&gt;&lt;pre&gt;for(&lt;kbd&gt;init&lt;/kbd&gt;; &lt;kbd&gt;test&lt;/kbd&gt;; &lt;kbd&gt;update&lt;/kbd&gt;) {&lt;br /&gt; &lt;kbd&gt;statements&lt;/kbd&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;Parameters&lt;/th&gt; &lt;td&gt; &lt;table border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;init&lt;/th&gt; &lt;td&gt;statement executed once when beginning loop&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;test&lt;/th&gt; &lt;td&gt;if the test evaluates to true, the statements execute&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;update&lt;/th&gt; &lt;td&gt;executes at the end of each iteration&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;statements&lt;/th&gt; &lt;td&gt;collection of statements executed each time through the  loop&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;Usage&lt;/th&gt; &lt;td&gt;Web &amp;amp; Application&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-2597529169086956578?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/2597529169086956578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/2597529169086956578'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/part-5.html' title='for'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-6894419566735448656</id><published>2007-03-25T10:27:00.000+01:00</published><updated>2007-04-23T08:16:44.095+01:00</updated><title type='text'>While</title><content type='html'>&lt;table class="ref-item" border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt; &lt;tr class="name-row"&gt;&lt;td&gt; &lt;h3&gt;while()&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;&lt;br /&gt;&lt;/th&gt; &lt;td&gt; &lt;div class="example"&gt;&lt;img alt="example pic" src="media/while_.gif" /&gt;&lt;br /&gt;&lt;pre class="margin"&gt;int i=0;&lt;br /&gt;while(i&lt;80) {&lt;br /&gt; line(30, i, 80, i);&lt;br /&gt; i = i + 5;&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;Description&lt;/th&gt; &lt;td&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Controls a sequence of repetitions. The &lt;b&gt;while&lt;/b&gt; structure executes a  series of statements continuously while the &lt;b&gt;expression&lt;/b&gt; is &lt;b&gt;true&lt;/b&gt;.  The expression must be updated during the repetitions or the program will never  "break out" of &lt;b&gt;while()&lt;/b&gt;.&lt;/td&gt;&lt;/tr&gt; &lt;tr class=""&gt; &lt;th scope="row"&gt;Syntax&lt;/th&gt; &lt;td&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;while(&lt;kbd&gt;expression&lt;/kbd&gt;) {&lt;br /&gt; &lt;kbd&gt;statements&lt;/kbd&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-6894419566735448656?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/6894419566735448656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=6894419566735448656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/6894419566735448656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/6894419566735448656'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/03/processing-controls.html' title='While'/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1566869350106117648.post-3716098756883575686</id><published>2007-02-27T21:20:00.000+01:00</published><updated>2007-03-25T12:17:08.055+01:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_Mknak4DfOko/RgZAO1PdgEI/AAAAAAAAAAM/kOdiDOyv954/s1600-h/processing.bmp"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1566869350106117648-3716098756883575686?l=introductiontoprocessing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://introductiontoprocessing.blogspot.com/feeds/3716098756883575686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1566869350106117648&amp;postID=3716098756883575686' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3716098756883575686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1566869350106117648/posts/default/3716098756883575686'/><link rel='alternate' type='text/html' href='http://introductiontoprocessing.blogspot.com/2007/02/hello-world.html' title=''/><author><name>Jim Eastwell</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://bp3.blogger.com/_Mknak4DfOko/R4k1bquOf4I/AAAAAAAAABA/4zSBHKSp_k0/S220/untitled.JPG'/></author><thr:total>0</thr:total></entry></feed>
