{"id":1000,"date":"2018-01-13T14:44:49","date_gmt":"2018-01-13T14:44:49","guid":{"rendered":"http:\/\/hein.artstage.nl\/?p=1000"},"modified":"2018-01-15T21:27:09","modified_gmt":"2018-01-15T21:27:09","slug":"mondriaan","status":"publish","type":"post","link":"https:\/\/hein.artstage.nl\/?p=1000","title":{"rendered":"Mondriaan"},"content":{"rendered":"<p>Zelfts een kunstenaar als Mondriaan is niet veilig.\u00a0 Ook die is er nu als webpagina<\/p>\n<p><a href=\"https:\/\/www.heinprivenl.net\/s\/1NyrwewXzzDDOcG\" target=\"_blank\" rel=\"noopener\">Klik hier voor een voorbeeld<\/a><\/p>\n<p>&lt;html&gt;<\/p>\n<p style=\"padding-left: 30px;\">&lt;body&gt;<br \/>\n&lt;br&gt;<br \/>\n&lt;br&gt;<br \/>\n&lt;canvas width=&#8221;1000&#8243; height=&#8221;800&#8243; id=&#8221;myCanvas&#8221;&gt;<br \/>\n&lt;\/canvas&gt;<br \/>\n&lt;script&gt;<\/p>\n<p style=\"padding-left: 60px;\">var TekenOppervlak = document.getElementById(&#8220;myCanvas&#8221;);<br \/>\nvar TekenVlak = TekenOppervlak.getContext(&#8220;2d&#8221;);<br \/>\nTekenVlak.fillStyle = &#8216;black&#8217;;<br \/>\nTekenVlak.strokeStyle = &#8216;black&#8217;;<br \/>\nvar X = 0;<br \/>\nvar Y = 0;<br \/>\nvar P = 12; &lt;!&#8211; Orde &#8211;&gt;<br \/>\nvar A = Math.sqrt(1\/2); &lt;!&#8211; Verkortingsverhouding &#8211;&gt;<br \/>\nvar H = 0.1; &lt;!&#8211; Scaling factor &#8211;&gt;<br \/>\nvar S = 0;<br \/>\nvar Z = 300; &lt;!&#8211; Zoom factor &#8211;&gt;<br \/>\nvar Xmid = 200;<br \/>\nvar Ymid = 50;<br \/>\nvar Titel = &#8220;Fractal : Mondriaan&#8221;;<br \/>\nvar Bodem = &#8220;\\u00A9 H.L. Muller 2016&#8221;;<\/p>\n<p style=\"padding-left: 60px;\">TekenVlak.font = &#8220;16pt sans-serif&#8221;;<br \/>\nTekenVlak.fillText(Titel,20,20);<br \/>\nTekenVlak.stroke();<\/p>\n<p style=\"padding-left: 60px;\">X1rel = Xmid;<br \/>\nY1rel = Ymid;<br \/>\nTekenVlak.moveTo (X1rel, Y1rel);<br \/>\nX2rel = Xmid + (1 * Z);<br \/>\nY2rel = Ymid + (0 * Z);<br \/>\nTekenVlak.lineTo (X2rel,Y2rel);<br \/>\nX2rel = Xmid + (1 * Z);<br \/>\nY2rel = Ymid + (1 * Z);<br \/>\nTekenVlak.lineTo (X2rel,Y2rel);<br \/>\nX2rel = Xmid + (0 * Z);<br \/>\nY2rel = Ymid + (1 * Z);<br \/>\nTekenVlak.lineTo (X2rel,Y2rel);<br \/>\nX2rel = Xmid;<br \/>\nY2rel = Ymid;<br \/>\nTekenVlak.lineTo (X2rel,Y2rel);<br \/>\nTekenVlak.stroke();<\/p>\n<p style=\"padding-left: 60px;\">N = 1<br \/>\nwhile (N &lt; 101 ){<\/p>\n<p style=\"padding-left: 90px;\">\nX = 0.8 * Math.random() + 0.1;<br \/>\nY = 0.8 * Math.random() + 0.1;<br \/>\nK = H * ( 1 &#8211; Math.sqrt(1 &#8211; Math.random()));<br \/>\nif (Math.random() &gt; 0.5){<br \/>\nQ = Math.round(3 * Math.random()) + 1;<br \/>\nif (Q == 1){TekenVlak.strokeStyle = &#8216;Black&#8217;;}<br \/>\nif (Q == 2){TekenVlak.strokeStyle = &#8216;Blue&#8217;;}<br \/>\nif (Q == 3){TekenVlak.strokeStyle = &#8216;Red&#8217;;}<br \/>\nif (Q == 4){TekenVlak.strokeStyle = &#8216;Yellow&#8217;;}<br \/>\nQ = Math.round(9 * Math.random()) + 1;<br \/>\nTekenVlak.lineWidth= Q;<\/p>\n<p style=\"padding-left: 90px;\">X1rel = Xmid + (X * Z);<br \/>\nY1rel = Ymid + ((Y &#8211; K) * Z);<br \/>\nTekenVlak.moveTo (X1rel, Y1rel);<br \/>\nX2rel = Xmid + (X * Z);<br \/>\nY2rel = Ymid + ((Y + K) * Z);<br \/>\nTekenVlak.lineTo (X2rel,Y2rel);<br \/>\nTekenVlak.stroke();<\/p>\n<p style=\"padding-left: 60px;\">\n}<br \/>\nelse {<\/p>\n<p style=\"padding-left: 90px;\">\nQ = Math.round(3 * Math.random()) + 1;<br \/>\nif (Q == 1){TekenVlak.strokeStyle = &#8216;black&#8217;;}<br \/>\nif (Q == 2){TekenVlak.strokeStyle = &#8216;blue&#8217;;}<br \/>\nif (Q == 3){TekenVlak.strokeStyle = &#8216;red&#8217;;}<br \/>\nif (Q == 4){TekenVlak.strokeStyle = &#8216;yellow&#8217;;}<br \/>\nQ = Math.round(9 * Math.random()) + 1;<br \/>\nTekenVlak.lineWidth= Q;<\/p>\n<p style=\"padding-left: 90px;\">X1rel = Xmid + ((X &#8211; K) * Z);<br \/>\nY1rel = Ymid + (Y * Z);<br \/>\nTekenVlak.moveTo (X1rel, Y1rel);<br \/>\nX2rel = Xmid + ((X + K) * Z);<br \/>\nY2rel = Ymid + (Y * Z);<br \/>\nTekenVlak.lineTo (X2rel,Y2rel);<br \/>\nTekenVlak.stroke();<\/p>\n<p style=\"padding-left: 60px;\">\n}<br \/>\nN++;<br \/>\n}<\/p>\n<p style=\"padding-left: 60px;\">TekenVlak.fillStyle = &#8216;black&#8217;;<br \/>\nTekenVlak.font = &#8220;8pt sans-serif&#8221;;<br \/>\nTekenVlak.fillText(Bodem,20,420);<br \/>\nTekenVlak.stroke();<\/p>\n<p style=\"padding-left: 60px;\">&lt;\/script&gt;<br \/>\n&lt;br&gt;<\/p>\n<p style=\"padding-left: 30px;\">&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zelfts een kunstenaar als Mondriaan is niet veilig.\u00a0 Ook die is er nu als webpagina Klik hier voor een voorbeeld &lt;html&gt; &lt;body&gt; &lt;br&gt; &lt;br&gt; &lt;canvas width=&#8221;1000&#8243; height=&#8221;800&#8243; id=&#8221;myCanvas&#8221;&gt; &lt;\/canvas&gt; &lt;script&gt; var TekenOppervlak = document.getElementById(&#8220;myCanvas&#8221;); var TekenVlak = TekenOppervlak.getContext(&#8220;2d&#8221;); TekenVlak.fillStyle = &#8216;black&#8217;; TekenVlak.strokeStyle = &#8216;black&#8217;; var X = 0; var Y = 0; var P = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[51,49],"tags":[],"class_list":["post-1000","post","type-post","status-publish","format-standard","hentry","category-html-canvas","category-code-experiments"],"_links":{"self":[{"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=\/wp\/v2\/posts\/1000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1000"}],"version-history":[{"count":5,"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=\/wp\/v2\/posts\/1000\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=\/wp\/v2\/posts\/1000\/revisions\/1007"}],"wp:attachment":[{"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hein.artstage.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}