<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Johan Karlsson</title>
    <description>The latest articles on DEV Community by Johan Karlsson (@donkarlssonsan).</description>
    <link>https://dev.to/donkarlssonsan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F545539%2Fc2ec8438-8785-49ab-9c0d-9951a5cf4f60.jpg</url>
      <title>DEV Community: Johan Karlsson</title>
      <link>https://dev.to/donkarlssonsan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/donkarlssonsan"/>
    <language>en</language>
    <item>
      <title>My Creative Coding 2020</title>
      <dc:creator>Johan Karlsson</dc:creator>
      <pubDate>Tue, 22 Dec 2020 22:39:10 +0000</pubDate>
      <link>https://dev.to/donkarlssonsan/my-creative-coding-2020-1ghm</link>
      <guid>https://dev.to/donkarlssonsan/my-creative-coding-2020-1ghm</guid>
      <description>&lt;p&gt;Hi, my name is Johan and I’m a creative coder working with JavaScript. I've been doing these retrospectives since 2016, this is my 2020. I like to think back and write about the year because it makes me appreciate all the accomplishments. I've used the CodePen blog previously, but now they've retired that feature.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://codepen.io/DonKarlssonSan/post/my-2016-on-codepen" rel="noopener noreferrer"&gt;2016&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codepen.io/DonKarlssonSan/post/my-2017-on-codepen" rel="noopener noreferrer"&gt;2017&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codepen.io/DonKarlssonSan/post/my-2018-on-codepen" rel="noopener noreferrer"&gt;2018&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://codepen.io/DonKarlssonSan/post/my-2019-on-codepen" rel="noopener noreferrer"&gt;2019&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most of my experiments are on CodePen. I've embedded the Pens directly into this blog post. If you experience a blank Pen, try clicking the Rerun button in the lower right corner. The default view is the Result tab. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click Babel or JS tab to view the code, then you can click the result tab to hide it if you want to.&lt;/li&gt;
&lt;li&gt;Or even better, click the Edit on CodePen link in the upper right corner to open the Pen in a new tab. From here you can click the Fork button in the lower right to create your own editable copy of my Pen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I usually make the canvas clickable so that you can easilly generate new patterns, remember to try it out! Some themes for 2020 are: SVG, hexagons, circle packing and patterns, as you will see.&lt;/p&gt;

&lt;p&gt;Late 2019 I figured out a &lt;a href="https://en.wikipedia.org/wiki/Delaunay_triangulation" rel="noopener noreferrer"&gt;delaunay triangulation&lt;/a&gt; algorithm which I had a lot of fun with. I also started to generate SVG with JavaScript.&lt;/p&gt;

&lt;p&gt;My first Pen of 2020 is "Voronio SVG". A &lt;a href="https://en.wikipedia.org/wiki/Voronoi_diagram" rel="noopener noreferrer"&gt;Voronoi diagram&lt;/a&gt; can be obtained by first doing delaunay triangulation for a set of points and then connect the circumcenters of all triangles that share an edge. &lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/ExawemK?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Last year I figured out the math for making a hexagon tile. This is an animated version: "Hexagon Wave". Normally you can embedd a Pen in status "stopped" which I usually use for animations to not bog the whole page. For some reason I can't here on dev.to so instead you have to click Result and then Babel to see the animation. Sorry about that.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/povZeNy?height=600&amp;amp;default-tab=js&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Rainbow Hexagon Stripes"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/Baybxzz?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Random Stripes On Isometric Cubes"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/eYmXjev?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;In March I was reading up on generative art and found out about the pioneer &lt;a href="https://en.wikipedia.org/wiki/Vera_Moln%C3%A1r" rel="noopener noreferrer"&gt;Vera Molnár&lt;/a&gt;. I was inspired to try and re-create some of her works.&lt;br&gt;
"A Tribute to Vera Molnár"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/rNVYWRg?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Another Tribute to Vera Molnár | SCSS"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/jOPamJp?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"A Third Tribute to Vera Molnár"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/ZEGaZZX?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Forth Tribute to Vera Molnár"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/yLNvrBr?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;I wanted to try something else than triangulating randomly positioned points. This is points in a spiral pattern. &lt;br&gt;
"Gray Spiral Delaunay with Texture"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/vYOpYVW?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Here is a rainbow version "Rainbow Spiral Delaunay with Texture"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/bGdopPx?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Somewhere around here I got hooked on creating patterns.&lt;br&gt;
"Colorful Circles"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/poJegJx?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Colorful Squares"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/gOpgQWr?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Lines in Rectangles"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/GRJEgYm?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;As so many times before, Daniel Shiffman inspired me with his youtube channel The Coding Train. This time it was a basic circle packing algorithm. First the still version "Circle Packing - Still Image".&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/MWwGvGM?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Then the animated interactive version: "🧼🧽 Soap Bubble Sweeper". Move the mouse cursor! 😀&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/VwLxXYg?height=600&amp;amp;default-tab=js&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;I continued my foray in pattern generation with "Random Chevron Pattern"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/eYNKqjX?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Sparre" which is chevron in Swedish 😉&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/dyojPQM?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Jagged Chevron Pattern"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/wvaXRvg?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Circle Stacks" using shadows to create a bit of depth.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/BaNPmzg?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Taraxacum"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/qBdyyWP?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Another inspiration from Daniel Shiffman is the mathematical &lt;a href="https://mathworld.wolfram.com/HeartCurve.html" rel="noopener noreferrer"&gt;heart curve&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;"Burning Love"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/OJVoVPx?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The reason why I learned to generate SVG from JavaScript last year was because I planned to by an AxiDraw penplotter. I bought it during the summer and it arrived in September, due to US -&amp;gt; Sweden transport. This is when I started to create a lot more SVG based patterns.&lt;/p&gt;

&lt;p&gt;This is "Circle Grid | SVG"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/MWyPdVR?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Did you know that there is an SVG renderer for three.js?!?! I wanted to create a lot of cubes that I could print with the AxiDraw but it turned into an animation instead, "Cube World":&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/dyMaRJN?height=600&amp;amp;default-tab=js&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The reason why so many of my SVG Pens have dark background is because I love plotting on black paper with a light pen. I have several verieties of Gelly Roll pens: white, Metal and Stardust Glitter!&lt;/p&gt;

&lt;p&gt;My workflow is like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I have something in mind&lt;/li&gt;
&lt;li&gt;I create an SVG based Pen&lt;/li&gt;
&lt;li&gt;I export the SVG to a file&lt;/li&gt;
&lt;li&gt;I import the SVG file into InkScape&lt;/li&gt;
&lt;li&gt;I use the AxiDraw plug-in to plot it on paper&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"Spiral Packing | SVG" based on the circle packing algorithm from Daniel Shiffman that I mentioned earlier. This time using spirals instead. I love how it looks printed on black paper with metallic Gelly Roll pen.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/zYqXLPe?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This is how it looks plotted:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fgza3kv6mnghmz0tb79mp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fgza3kv6mnghmz0tb79mp.jpg" alt="IMG_4118"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;"Yarn Ball Packing"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/mdPgNWB?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Circle Packing Text"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/xxVvbqN?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Plotted and framed:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fqb6jlt8g2r2daz3ah7w4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fqb6jlt8g2r2daz3ah7w4.jpg" alt="IMG_4040"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In "Color Themes From Images" I use circle packing with varying space. The colors are taken from images that I think have pretty color themes. Each circle gets the color of a random pixel in the source image. Click through a few of them and see if you can guess the source photos. Hint: the common theme is nature. The correct answer is written to the JavaScript console.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/mdPNvOB?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;In "Hole Punch" I use an offscreen canvas and &lt;code&gt;globalCompositeOperation = "xor"&lt;/code&gt; &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/yLYOmrw?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Stacked Rainbow Rectangles" was inspired by an image on Pinterest.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/NWGbvmg?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Another rainbow colored Pen insired by an image on Pinterest, "Color Wheel Squircles":&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/OJyxvRJ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Geometric Pattern" is based on a few tiles with basic geometric shapes. Each tile's rotation is random. The color patterns come from &lt;a href="https://coolors.co/" rel="noopener noreferrer"&gt;coolors&lt;/a&gt;. Notice that a few tiles have twice the size as the rest. The grainy texture is created with random pixels with dark but very transparent color.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/eYpjNVe?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Colorful Triangles". The color patterns come from &lt;a href="https://coolors.co/" rel="noopener noreferrer"&gt;coolors&lt;/a&gt;.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/ZEbaxdr?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Line based patterns work well with the AxiDraw so I decided to try the &lt;a href="https://en.wikipedia.org/wiki/Maurer_rose" rel="noopener noreferrer"&gt;Maurer Rose&lt;/a&gt;. Use the sliders to change parameters or just click the Random button. You can double click the title of the menu to hide it or you can click the Edit on CodePen link to open the Pen in a new tab.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/LYZVEWd?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

&lt;p&gt;This one looks pretty sweet plotted on paper, "Beziers":&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/PoNrvjB?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feqv10wxpjthtua4l6k1e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feqv10wxpjthtua4l6k1e.jpg" alt="IMG_4227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the SVG version of a Pen I made 2018, "Noisy Circles":&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/bGpyyoP?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

&lt;p&gt;Another circle packing based experiment: "Big Brother". Move the mouse! Click to generate a new pattern! I'm using the same algorithm to pack the circles as in all previous Pens, but have a look in the &lt;code&gt;Circle.draw()&lt;/code&gt; method to see how I get the "eyes" to follow the mouse pointer.&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/OJXPwda?height=600&amp;amp;default-tab=js&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;And then the SVG version. All "eyes" look at the same random point, except for a few stubborn radicals that look in the oposite direction. Can you find one?!&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/dyXYodE?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This is how it looks plotted:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fm8pjyn5tp4ik5pgj62rm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fm8pjyn5tp4ik5pgj62rm.jpg" alt="IMG_4205"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I figured out this pattern while drawing in my sketch book,&lt;br&gt;
"Striped Squares":&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/jOrzjPJ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;One day I saw a &lt;a href="https://en.wikipedia.org/wiki/Linocut" rel="noopener noreferrer"&gt;linocut&lt;/a&gt; pattern on Instagram that I wanted to re-create myself. By first drawing the shape outline and using &lt;code&gt;context.clip()&lt;/code&gt; I then can draw a bunch of concentric circles that are visible only inside the shape (the excess is clipped). &lt;/p&gt;

&lt;p&gt;"Circle Pattern II"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/dyXKZgR?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

&lt;p&gt;"Hand Fan Tessellation"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/oNLymjJ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Hand Fan Tessellation II"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/oNLMwKZ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;"Hand Fan Tessellation III"&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/qBNyXWR?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Last Pen of the year was "Rainbow Triangles". This is the algorithm:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a set of points with random positions, let's call it A.&lt;/li&gt;
&lt;li&gt;Create another set of points with random positions, let's call it B.&lt;/li&gt;
&lt;li&gt;Loop through each point in B and find the three closest point in A.&lt;/li&gt;
&lt;li&gt;Draw a triangle using the three points as vertices.&lt;/li&gt;
&lt;li&gt;Let hue vary along the x axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/DonKarlssonSan/embed/yLazNwQ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion and Reflections
&lt;/h1&gt;

&lt;p&gt;This is what I wrote about the future one year ago: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I'm thinking of bying an AxiDraw in 2020...&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Buying one was a very good decision, I'm so happy! I enjoy creating something physical and ironically the AxiDraw purchase inspired me to draw a lot. Sometimes my drawings inspires me to code something new and sometimes my code inspires me to draw a new pattern. Some things are easier to draw myself, other things are easier to code and plot.&lt;/p&gt;

&lt;p&gt;This year I learned that inspiration is very important, I started to save beautiful patterns and images using Pinterest and I also started following a lot of inspiring artists on Instragram. I ended up creating an account for my own creations: &lt;a href="https://www.instagram.com/donkarlssonsan_art/" rel="noopener noreferrer"&gt;donkarlssonsan_art&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  The Future
&lt;/h1&gt;

&lt;p&gt;I will definitely continue creating SVGs and plotting them with my AxiDraw. &lt;/p&gt;

&lt;p&gt;I've thought about doing several layers to be able to use different colored pens. &lt;/p&gt;

&lt;p&gt;I've seen people put a whole lot of paint on a paper and then creating a pattern by letting the AxiDraw move a stick through the paint, this is something I'd like to try.&lt;/p&gt;

&lt;p&gt;I'm planning to combine manual drawing with plotting. &lt;/p&gt;

&lt;p&gt;I dream of having my own art exhibition so I think I will start by creating a small one just for friends and family...&lt;/p&gt;

&lt;h1&gt;
  
  
  In Closing
&lt;/h1&gt;

&lt;p&gt;Thanks for reading all the way down here, leave a comment or contact me on Twitter!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/DonKarlssonSan" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt;, &lt;a href="https://www.instagram.com/donkarlssonsan_art/" rel="noopener noreferrer"&gt;Instagram&lt;/a&gt;, &lt;a href="https://codepen.io/DonKarlssonSan" rel="noopener noreferrer"&gt;CodePen&lt;/a&gt;&lt;/p&gt;

</description>
      <category>creativecoding</category>
      <category>penplotter</category>
      <category>javascript</category>
      <category>svg</category>
    </item>
  </channel>
</rss>
