{"id":2970,"date":"2016-09-11T13:51:29","date_gmt":"2016-09-11T12:51:29","guid":{"rendered":"http:\/\/www.lyceelecorbusier.eu\/p5js\/?p=2970"},"modified":"2016-09-11T14:30:10","modified_gmt":"2016-09-11T13:30:10","slug":"p5-re-code-16","status":"publish","type":"post","link":"https:\/\/www.lyceelecorbusier.eu\/p5js\/?p=2970","title":{"rendered":"\/ p5 \/ re-code 15"},"content":{"rendered":"<p>Inspir\u00e9 par <a href=\"http:\/\/lyceelecorbusier.eu\/p5\/recode\/09_COMPUTER_GRAPHICS_AND_ART_May1978_v3_n2.pdf\" target=\"_blank\">Computer Graphics and Art vol3 n\u00b02 page 16<\/a>, &#8220;Untitled photoprint&#8221;, 15&#8243; x 19&#8243; par\u00a0by Aaron Marcus<\/p>\n\n<!-- iframe plugin v.5.1 wordpress.org\/plugins\/iframe\/ -->\n<iframe src=\"http:\/\/lyceelecorbusier.eu\/p5\/recode\/015-recode\" width=\"780\" height=\"780\" style=\"border: 1px solid #ddd;\" scrolling=\"yes\" class=\"iframe-class\" frameborder=\"0\"><\/iframe>\n\n<pre>\/\/ This sketch is part of the ReCode Project - http:\/\/recodeproject.com\r\n\/\/ From Computer Graphics and Art vol3 no2 pg 16\r\n\/\/ by Aaron Marcus\r\n\/\/ \"Untitled photoprint\", 15\" x 19\"\r\n\/\/ Other works in the Hieroglyphs series are \"Noise Barrier\", and various \"Untitled\" works.\r\n\/\/ \r\n\/\/ Genevieve Hoffman\r\n\/\/ 2012\r\n\/\/ Creative Commons license CC BY-SA 3.0\r\n\r\nfunction setup() {\r\n createCanvas(780,780);\r\n background(0);\r\n \r\n var gridSize = width\/10;\r\n \r\n for (var x = gridSize; x &lt;= width; x += gridSize) {\r\n for (var y = gridSize; y &lt;= height; y += gridSize) {\r\n \r\n \/\/make grid\r\n stroke(255);\r\n smooth();\r\n line(x, 0, x, height);\r\n line(x-gridSize, y, width, y);\r\n \r\n \/\/generate random seed values for location and size\r\n var randLoc = random(-gridSize\/2,gridSize\/2);\r\n var randLoc2 = random(-gridSize\/2,gridSize\/2);\r\n var randLoc3 = random(-gridSize\/2,gridSize\/2);\r\n var randLoc4 = random(-gridSize\/2,gridSize\/2);\r\n var randLoc5 = random(-gridSize\/2,gridSize\/2);\r\n var randLoc6 = random(-gridSize\/2,gridSize\/2);\r\n var randLoc7 = random(-gridSize\/2,gridSize\/2);\r\n var randLoc8 = random(-gridSize\/2,gridSize\/2);\r\n var circSize = random(0, gridSize-10);\r\n var sqSize = random(0, (gridSize-10)\/2);\r\n \r\n \/\/draw circles\r\n noFill();\r\n ellipse(x+randLoc, y+ randLoc2, circSize, circSize);\r\n \r\n \/\/draw squares\r\n push();\r\n translate(x+randLoc3, y+randLoc4);\r\n rotate(random(TWO_PI));\r\n rect(0, 0, sqSize, sqSize);\r\n pop();\r\n \r\n \/\/draw lines\r\n push();\r\n translate(x+randLoc5, y+randLoc6);\r\n rotate(random(TWO_PI));\r\n line(0,0,randLoc7, randLoc8);\r\n pop();\r\n }\r\n }\r\n}\r\n\r\nfunction draw() {\r\n \r\n}\r\n\r\nfunction keyPressed() {\r\n \/\/saveFrame(\"Aaron_Marcus_Untitled2_###.jpg\");\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Inspir\u00e9 par Computer Graphics and Art vol3 n\u00b02 page 16, &#8220;Untitled photoprint&#8221;, 15&#8243; x 19&#8243; par\u00a0by Aaron Marcus \/\/ This sketch is part of the ReCode Project &#8211; http:\/\/recodeproject.com \/\/ From Computer Graphics and Art vol3 no2 pg&#8230; <a class=\"read-more\" href=\"https:\/\/www.lyceelecorbusier.eu\/p5js\/?p=2970\">Lire la suite&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2971,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/posts\/2970"}],"collection":[{"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2970"}],"version-history":[{"count":2,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/posts\/2970\/revisions"}],"predecessor-version":[{"id":2974,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/posts\/2970\/revisions\/2974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=\/wp\/v2\/media\/2971"}],"wp:attachment":[{"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lyceelecorbusier.eu\/p5js\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}