<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[The Osmosian Order of Plain English Programmers Welcomes You]]></provider_name><provider_url><![CDATA[http://osmosianplainenglishprogramming.blog]]></provider_url><author_name><![CDATA[gerryrzeppa]]></author_name><author_url><![CDATA[https://osmosianplainenglishprogramming.blog/author/gerryrzeppa/]]></author_url><title><![CDATA[Plain English Programming — Jackson Pollock&#8217;s Alphabet&nbsp;Soup]]></title><type><![CDATA[link]]></type><html><![CDATA[<header class="entry-header">
<h1 class="entry-title"></h1>
</header>
<div class="entry-content">
<p>Jackson Pollock was an “artist” who “painted” by pouring paint on a canvas on the floor. This is a close-up portion of one of his most famous works, aptly entitled, “Number 8”:</p>
<p><img loading="lazy" class="alignnone size-full wp-image-333820" src="https://cdncontribute.geeksforgeeks.org/wp-content/uploads/sample-painting.jpg" alt="" width="583" height="578" /></p>
<p>When I’m not programming, I’m often painting. But it turns out that I’m constitutionally incapable of “painting” using Pollock’s technique simply because I think too much about what I’m trying to paint. This, for example, is what came out when I attempted to apply his technique while thinking about him at work in his studio:</p>
<p><img loading="lazy" class="alignnone size-full wp-image-333819" src="https://cdncontribute.geeksforgeeks.org/wp-content/uploads/pollock-at-work.jpg" alt="" width="821" height="812" /></p>
<p>So I thought, maybe I can write a Plain English program to approximate Pollock’s unique style. I just need an easy way to simulate the drippy calligraphic strokes that the “master” used to use. And the moment the word “calligraphic” popped into my head, I thought, “Of course! All I really need is one of those fancy, scripty fonts to work with. A quick search of dafonts.com quickly yielded “Jellyka Saint-Andrew’s Queen,” exactly the kind of font I had in mind. It was free, but I sent a donation to the author since the font served me so well. And because people should get paid for their work.</p>
<p>This is what the uppercase letters and squiggly braces look like on a page in Plain English’s built-in page editor:</p>
<p><img loading="lazy" class="alignnone size-large wp-image-333816" src="https://cdncontribute.geeksforgeeks.org/wp-content/uploads/font-sample-1024x819.jpg" alt="" width="665" height="532" /></p>
<p>And this is the Plain English program I wrote to make use of that font:</p>
<p><span style="color:#00ccff;">To run:</span><br />
<span style="color:#00ccff;"> Start up.</span><br />
<span style="color:#00ccff;"> Clear the screen.</span><br />
<span style="color:#00ccff;"> Make a box 6 inches by 6 inches. Center the box on the screen. Mask outside the box.</span><br />
<span style="color:#00ccff;"> Loop.</span><br />
<span style="color:#00ccff;"> Pick a letter from &#8220;{ABCDEFGHIJKLMNOPQRSTUVWXYZ}&#8221;.</span><br />
<span style="color:#00ccff;"> Pick a spot within 1/2 inch of the box.</span><br />
<span style="color:#00ccff;"> Pick a pollock color.</span><br />
<span style="color:#00ccff;"> Pick a size between 1/16 inch and 2 inches.</span><br />
<span style="color:#00ccff;"> Put &#8220;Jellyka, Saint-Andrew&#8217;s Queen&#8221; and the size into a font.</span><br />
<span style="color:#00ccff;"> Draw the letter at the spot with the pollock color and the font (varying the thickness).</span><br />
<span style="color:#00ccff;"> If a counter is past 2000, break.</span><br />
<span style="color:#00ccff;"> If the counter is evenly divisible by 100, Rotate the canvas.</span><br />
<span style="color:#00ccff;"> Repeat.</span><br />
<span style="color:#00ccff;"> Refresh the screen.</span><br />
<span style="color:#00ccff;"> Wait for the escape key.</span><br />
<span style="color:#00ccff;"> Shut down.</span></p>
<p>In short, the program just draws random letters at random spots in colors typical of Pollock’s Number 8 painting, over and over and over, rotating the canvas every 100 letters (to simulate Jackson walking around his canvas on the floor).</p>
<p>The subroutine that chooses a “pollock color” looks like this:</p>
<p><span style="color:#00ccff;">To pick a pollock color:</span><br />
<span style="color:#00ccff;"> If you feel like it, exit.</span><br />
<span style="color:#00ccff;"> Pick a number between 1 and 100.</span><br />
<span style="color:#00ccff;"> If the number is less than 35, put the darkest yellow color into the pollock color; exit.</span><br />
<span style="color:#00ccff;"> If the number is less than 50, put the black color into the pollock color; exit.</span><br />
<span style="color:#00ccff;"> If the number is less than 80, put the lightest orange color into the pollock color; exit.</span><br />
<span style="color:#00ccff;"> If the number is less than 85, put the light red color into the pollock color; exit.</span><br />
<span style="color:#00ccff;"> If the number is less than 94, put the light orange color into the pollock color; exit.</span><br />
<span style="color:#00ccff;"> If the number is less than 95, put the lightest yellow color into the pollock color; exit.</span><br />
<span style="color:#00ccff;"> Put the white color into the pollock color.</span></p>
<p>“If you feel like it” means 50% of the time, which in this case leaves the color as it was for another round.</p>
<p>The subroutine that varies the thickness of the letters looks like this:</p>
<p><span style="color:#00ccff;">To draw a letter at a spot with a pollock color and a font (varying the thickness):</span><br />
<span style="color:#00ccff;"> Draw the letter at the spot<br />
with the pollock color and the font.</span><br />
<span style="color:#00ccff;"> If you feel like it, move the spot 1 pixel right<br />
and 1 pixel down; repeat.</span><br />
<span style="color:#00ccff;"> Add 1 to a count. If the count is less than 3, repeat.</span></p>
<p>As you can see, we sometimes move the spot right and down and redraw the letter to make it a little thicker. Sometimes more than once.</p>
<p>This is what shows up on the screen after the first two dozen letters are drawn:</p>
<p><img loading="lazy" class="alignnone size-full wp-image-333817" src="https://cdncontribute.geeksforgeeks.org/wp-content/uploads/generated-painting-in-progress.jpg" alt="" width="583" height="578" /></p>
<p>And this is what the finished work looks like:</p>
<p><img loading="lazy" class="alignnone size-full wp-image-333818" src="https://cdncontribute.geeksforgeeks.org/wp-content/uploads/generated-painting.jpg" alt="" width="583" height="578" /></p>
<p>Et voila! Not exactly an original Pollock, but definitely in the ballpark. Fun to write, fun to run.</p>
</div>
]]></html><thumbnail_url><![CDATA[https://i1.wp.com/cdncontribute.geeksforgeeks.org/wp-content/uploads/sample-painting.jpg?fit=440%2C330&ssl=1]]></thumbnail_url><thumbnail_width><![CDATA[333]]></thumbnail_width><thumbnail_height><![CDATA[330]]></thumbnail_height></oembed>