<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jelena Ristic on Medium]]></title>
        <description><![CDATA[Stories by Jelena Ristic on Medium]]></description>
        <link>https://medium.com/@jelena-ristic?source=rss-d5c869f322fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Cjcy_9cwgxU8BHLZjLM4kA.gif</url>
            <title>Stories by Jelena Ristic on Medium</title>
            <link>https://medium.com/@jelena-ristic?source=rss-d5c869f322fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:24:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jelena-ristic/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[May the Flow Be With You: My Love for Sankeys and Star Wars]]></title>
            <link>https://jelena-ristic.medium.com/may-the-flow-be-with-you-my-love-for-sankeys-and-star-wars-ef8389d38cb6?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef8389d38cb6</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[film]]></category>
            <category><![CDATA[plotly]]></category>
            <category><![CDATA[star-wars]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Thu, 14 Jul 2022 22:49:05 GMT</pubDate>
            <atom:updated>2022-07-14T22:49:05.967Z</atom:updated>
            <content:encoded><![CDATA[<h4>“Too strong the Flow with this one is… Mmmmh…” Had Master Yoda plotted a Sankey diagram of the main characters in Star Wars based on their screen times, he would have most likely said that.</h4><figure><img alt="Master Yoda and orange background" src="https://cdn-images-1.medium.com/max/1024/0*3iDExizFytCItA_q" /><figcaption>Photo by <a href="https://unsplash.com/@davidsonluna?utm_source=medium&amp;utm_medium=referral">D A V I D S O N L U N A</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Star Wars is one of the most impactful popular culture franchises of the 20th and 21st centuries, deeply embedded in the <strong>coming-of-age narrative format of transmission of values and identity de/re/construction and negotiation</strong>. I grew up with the original trilogy — I remember watching Episode VI in one of my hometown’s well-known cinemas. Sitting on my dad’s coat so that I could see past the person sitting in front of me, I was 4 years old and amazed. A few decades later, I came across the list of Star Wars characters’ screen times on IMDB, I couldn’t help myself but to collect the data and plot a flow chart to finally have a general overview of all nine films and finally figure out who wins the ultimate prize of screen monopoly. Of course, I already had an inkling and could’ve simply summed up the figures, but plotting a Sankey is SO much more satisfying! It was an excuse, but it was a fun one!</p><p><a href="https://jelena-ristic.medium.com/sankey-generator-webapp-with-python-pandas-plotly-and-streamlit-4cfc7b0a02e3">Sankey diagrams</a> are, in my opinion, one of the most elegant ways to represent data — each chart to its own, but I would choose a Sankey over a pie, e-v-e-r-y single time. <strong>Python and Plotly </strong>were my language and library of choice as the latter allows html export and interactivity. <strong>The characters are on the left and the films on the right — the flow only moves in one direction, from the character to the film.</strong> Let’s enter the intricate spaghetti of Star Wars Sankey World!</p><h4>#1: The Generational Intricacy</h4><figure><img alt="Sankey diagram of Star Wars characters’ screen times in all nine films" src="https://cdn-images-1.medium.com/max/1000/1*KDAtjL_XrQL54KtneXsesA.png" /><figcaption>It’s a long chart! You can see it live here: <a href="https://jelenaristic.info/star-wars-characters-screentime.html">Character screentimes (jelenaristic.info)</a> (Image by Author)</figcaption></figure><p>The home view presents the films in the narrative’s chronological order, i.e. from <em>The Phantom Menace</em> to <em>The Rise of Skywalker</em>. Therefore, t<strong>he distribution of the characters are finely balanced between order of appearance and recurrence. The spaghetti thickness represents screen time in minutes. </strong>Just like any coming-of-age narrative that spans decades, each trilogy is a story of a generation of characters (and viewers!). We can already see the <strong>prominence of the Skywalkers</strong>, which is only confirmed by the hierarchical aggregation of all flows per most screen time: Anakin, Luke, Rey — <strong>a story of transmission, filiation and adoption</strong>.</p><h4>#2: The Father Figure</h4><figure><img alt="Sankey diagram of Star Wars characters’ screentime in hierarchical order from most screentime to least screentime" src="https://cdn-images-1.medium.com/max/1000/1*x8_1WYecvJ_qxHyuu_XYIQ.png" /><figcaption>From most to least screen time in the whole saga (plot and picture by Author)</figcaption></figure><p>Anakin / Vader wins screen monopoly, even though he appears in only six films out of nine. I originally split Anakin and Vader into two flows, but finally decided against it, as ontologically the character is one and the name change only comes to express what is already there. Their duplicity is intrinsic and therefore reflected within their names and appearance. <strong>It is interesting that the whole narrative is really about the tormented father figure, even though the last trilogy puts female characters to the fore, trying to restore the balance.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YsE4ady-aMiZ1YFA" /><figcaption>Photo by <a href="https://unsplash.com/@tommyvankessel?utm_source=medium&amp;utm_medium=referral">TOMMY VAN KESSEL</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>#3: The Guardians</h4><p>The only characters that are tying all nine films together are the comic-relief duo: the droids C-3PO and R2D2. <strong>If we stick to the logic of storytelling in the Star Wars saga, i.e. consider that the first chapter is Episode IV, the droids are the plot initiators</strong> when they deliver the message to Obi-Wan Kenobi in Episode IV, setting the whole narrative into motion. I find it quite enjoyable to read them as the guardians, the only characters to have the most complete (or the least fragmented) version of the narrative because they witnessed it, lived through it and preserved the history of events deep within their circuits so the story can be told. Long live the droids!</p><p><em>Access to the interactive sankey diagram: </em><a href="https://jelenaristic.info/star-wars-characters-screentime.html"><em>Character screentimes (jelenaristic.info)</em></a></p><p><em>Thank you for reading, have fun exploring and may the flow be with you!</em></p><p><em>Jelena</em></p><p><a href="https://jelena-ristic.medium.com/create-wordcloud-portraits-with-python-bb5ce794bc91">Create wordcloud portraits with python</a></p><h3>Would you like to support me and other writers on Medium?</h3><p><em>To get access to unlimited stories, you can also consider </em><a href="https://jelena-ristic.medium.com/membership"><em>signing up to become a Medium member</em></a><em> for just 5$. If you sign up using </em><a href="https://jelena-ristic.medium.com/membership"><em>my link</em></a><em>, I’ll receive a small commission at no extra cost to you. Thank you!</em></p><p><a href="https://jelena-ristic.medium.com/membership">Join Medium with my referral link - Jelena Ristic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef8389d38cb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Animate your logo with a Voronoi pattern using Blender & Photoshop]]></title>
            <link>https://jelena-ristic.medium.com/animate-your-logo-with-a-voronoi-pattern-using-blender-photoshop-3bc863629095?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bc863629095</guid>
            <category><![CDATA[logo-design]]></category>
            <category><![CDATA[blender]]></category>
            <category><![CDATA[photoshop]]></category>
            <category><![CDATA[voronoi]]></category>
            <category><![CDATA[graphic-design]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Sun, 10 Jul 2022 17:54:04 GMT</pubDate>
            <atom:updated>2022-07-10T19:47:20.853Z</atom:updated>
            <content:encoded><![CDATA[<h3>Voronoi pattern animated logo with Blender &amp; Photoshop</h3><h4>Quick and fun tutorial for an eye-catching result!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PkwpBeGiMRLLWcApZzc2_w.png" /><figcaption>See the animated result at the end of this article or on my website: <a href="https://jelenaristic.info/">https://jelenaristic.info</a>. © Jelena Ristic, 2022</figcaption></figure><h4>Voro-what?!</h4><p>Voronoi diagram or tesselation. It is named after the <strong>Imperial Russian mathematician of Ukranian descent </strong><a href="https://en.wikipedia.org/wiki/Georgy_Voronoy"><strong>Georgy Voronoy</strong></a>. In mathematics, this type of diagram is a method of <strong>dividing a plane into regions</strong> called cells based on the following specifications. As a plane is actually an infinite set of points forming a connected flat surface, a limited set of points called seeds is determined beforehand and those seeds will in turn determine their respective cell’s boundaries, as <strong>each region will consist of all the points closer to that seed than to any other seed</strong>. The result is a <strong>characteristic arrangement of individually coloured polygonal cells</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*LrOJJbo13tb9dhTW5VeyQA.jpeg" /><figcaption>Georgy Voronoy (public domain / <a href="https://upload.wikimedia.org/wikipedia/commons/1/11/Georgy_Voronoy.jpg">Wikimedia</a>)</figcaption></figure><p>This type of diagram has vast applications in various domains, such as medical diagnosis, humanities, engineering, astrophysics but also baking and art! The Ukranian chef <a href="https://dinarakasko.com/">Dinara Kasko</a> inspired herself from Voronoi tesselations to create bespoke moulds for her cakes. The <strong>Blender</strong> we’ll be talking about here is not a kitchen appliance, but this <strong>3D graphic design and animation software</strong> can generate colourful Voronoi patterns thanks to its <strong>integrated material shader that comes per default</strong>.</p><p>Let’s get started! I assume that you already created and are happy with your 3D object. You can also start with the staple cube if you just want to experiment with the shader.</p><h4>1. Apply the Voronoi pattern to your 3D object</h4><p>First things first, you have to <strong>set up your rendering engine and the output properties</strong> before starting with shading. For most realistic results, opt for <strong>Cycles</strong> and choose <strong>GPU Compute</strong> to make use of your graphic card power to speed up the render time. If it is greyed out, you need to enable it under <strong>Edit &gt; Preferences menu &gt; System &gt; Cycles Rendering Devices</strong>.</p><figure><img alt="Blender render engine set up menu" src="https://cdn-images-1.medium.com/max/533/1*rci3FbvcDE-sQFN9tQMNYw.png" /><figcaption>Screenshot of Blender rendering menu</figcaption></figure><p>Under <strong>Sampling &gt; Render</strong>, I left the default 128 samples. Increasing the value gives clearer results but requires longer rendering time. If you tick <strong>Denoise</strong>, you can keep a lower amount of samples and still get a good output.</p><figure><img alt="Film sub-menu in Blender render settings" src="https://cdn-images-1.medium.com/max/492/1*MYjmDxL-x1MRqDhbh6NgBQ.png" /><figcaption>Screenshot of Film sub-menu in Blender render settings</figcaption></figure><p>For a <strong>transparent background</strong>, scroll down to the Film sub-menu and check the Transparent box. In the <strong>output properties menu</strong>, set up the <strong>resolution</strong> as desired, choose your <strong>output folder</strong> where the pictures will be saved and pick <strong>PNG</strong> format to preserve transparency.</p><figure><img alt="Screenshot of rendering output sub-menu in Blender" src="https://cdn-images-1.medium.com/max/530/1*w6090y8x_MMnKDhJCTqyaQ.png" /><figcaption>Screenshot of rendering output sub-menu in Blender</figcaption></figure><p>We can now start shading our object!</p><p>In the <strong>Materials menu, click +</strong> to create a new material you can customise. Click on the <strong>yellow dot of the Base Color</strong> menu, it will open up a whole list of preset textures and shaders that are included in Blender per defaut. Click on <strong>Voronoi Texture</strong>.</p><figure><img alt="Materials submenu in Blender" src="https://cdn-images-1.medium.com/max/997/1*kTaoIG48_Yvuyz40AXm-UQ.png" /><figcaption>Screenshot of the Blender’s Materials shader menu</figcaption></figure><p>There are several Voronoi patterns that yield different results — have fun experimenting with various parameters.</p><figure><img alt="Voronoi patterns comparison: Euclidean, Manhattan, Chebychev, Minkowski" src="https://cdn-images-1.medium.com/max/1024/1*EOJ0gv36OC0EARMmcXfmug.jpeg" /><figcaption>Voronoi patterns comparison (image by Author)</figcaption></figure><p>We will use the <strong>Scale parameter</strong> in the Materials menu to create the <strong>animation</strong> by playing with Scale values and assigning them to <strong>keyframes</strong> in the animation timeline.<strong> IMPORTANT: If you wish to combine various parameters (for example switch from Euclidean to Minkowski pattern in the middle of your animation and go back to Euclidean), remember to keyframe the beginning and the end of that change.</strong></p><h4>2. Set up your camera and lights in Layout mode</h4><p>Switch to Layout mode and set up your camera and lights as <strong>this will determine how your output will look when you render it</strong>. If you didn’t keep the camera and the light that come by default when you start with a new Blender project, you can add them like any other primitive: shift+A &gt; Camera and shift+A &gt; Light.</p><blockquote>💡<strong>Quick tip:</strong> If you don’t have time to play with different light types and their respective parameters or you are new to Blender, <strong>create a plane, give it a new basic material by clicking New in the Material menu, play with the Emission base colour and the Emission strength value to have it emit light, and position it above your object (In Object mode: select to Move, R to rotate, S to size).</strong></blockquote><h4><strong>3. Add keyframes to create the animation</strong></h4><ul><li>In Layout mode, expand the Timeline that is at the bottom of the screen and put the playhead on frame 0.</li><li>In the Materials menu, put Scale to 0 and click on the dot on the right to keyframe it. It will create a little yellow diamond in your timeline.</li></ul><figure><img alt="Keyframing the Voronoi pattern in Blender" src="https://cdn-images-1.medium.com/max/1024/1*si8Hb0i7rqWoSGE3eW2xxw.png" /><figcaption>Keyframing the Voronoi pattern on the 0 animation frame (screenshot by Author)</figcaption></figure><ul><li>Go to the last keyframe of your animation (I opted for 100 keyframes, but it’s really up to you… the more keyframes, the longer the animation) and click to keyframe the scale set to 0 again. That will create a continuous loop.<strong> It is important to start at keyframe 0 and not keyframe 1 to have a smooth result</strong>. For now, you have an animation but with the same parameter. So when you play it, there is no change. You can now add other keyframes with varying parameters that will result in an animated surface.</li></ul><figure><img alt="Keyframing the Voronoi pattern in Blender" src="https://cdn-images-1.medium.com/max/1024/1*hQZa1WCHnZ9oDzZZxvSu2A.png" /><figcaption>Keyframing the Voronoi pattern on the last animation frame (screenshot by Author)</figcaption></figure><ul><li>Add as many keyframes with different scale values between frame 0 and your last frame. Experiment with various scale values and keyframes to have the pattern evolve more quickly or more slowly. Once you are happy with the result, it’s time to export!</li></ul><h4>4. Export the animation in PNG format</h4><p>As we already set up the desired export output and the destination folder, we can now simply click on the menu on top <strong>Render &gt; Render animation</strong>. <strong>Blender will generate one PNG per frame</strong>. When the rendering is done, we can fire up Photoshop to group all PNGs and turn them into a GIF.</p><h4>5. Compile the PNGs in a GIF in Photoshop</h4><p>If you haven’t got Photoshop, there are several free online GIF generators you can use. However, the final output quality may suffer due to compression and also you may lose background transparency, which can be annoying depending where you intend to use it.</p><ul><li><strong>Load the PNGs into Photoshop: File &gt; Scripts &gt; Load files into stack</strong>.</li></ul><figure><img alt="Importing PNGs into Photoshop" src="https://cdn-images-1.medium.com/max/587/1*pDYfdnawIR06YlrR3aasqw.png" /><figcaption>PNG import into Photoshop (screenshot by Author)</figcaption></figure><ul><li>In the pop-up window, click on <strong>“Browse”, select all the PNGs, and click OK</strong>. This action will load all the PNGs in separate layers, one per image.</li></ul><figure><img alt="Importing PNGs in Photoshop — pop-up window" src="https://cdn-images-1.medium.com/max/668/1*VyzyXEMb1j1_LP-icWzP3Q.png" /><figcaption>Importing PNGs in Photoshop — pop-up window (screenshot by Author)</figcaption></figure><ul><li>Once Photoshop has finished loading all the PNGs (it may take a while depending on your total number of frames: you can see the progression in the layers menu), go to the top menu <strong>Window &gt; Timeline and make sure Timeline is checked</strong>.</li><li>Your interface should look something like this now. Go ahead and select <strong>Create frame animation</strong> in the timeline. Make sure <strong>Loop Playback</strong> is ticked as well.</li></ul><figure><img alt="Photoshop interface with the timeline window" src="https://cdn-images-1.medium.com/max/1024/1*ntaFXvxtpOjbJ-YTlizwEg.png" /><figcaption>Photoshop interface with the timeline window and “Create Frame Animation” option ticked (screenshot by Author)</figcaption></figure><figure><img alt="Submenu of Photoshop’s timeline" src="https://cdn-images-1.medium.com/max/782/1*Q9fPr7ZC1jv3j6hY2Tf-Zw.png" /></figure><ul><li>Once you’ve clicked on Create frame animation, go back to the same little menu in the pic above, and select <strong>Make frames from layers</strong>.</li></ul><figure><img alt="Photoshop submenu to turn the images into frames" src="https://cdn-images-1.medium.com/max/1024/1*aWEvKkijrhPyfyvzpGVUAA.png" /><figcaption>Go to the submenu to turn the images into frames (screenshot by Author)</figcaption></figure><p>All the frames are imported and you can preview the final result by pressing the <strong>space bar to play it</strong>. Ensure that “<strong>Forever</strong>” is selected in the bottom left corner and you’re good to export it!</p><h4>6. Export in GIF format</h4><ul><li>Go to<strong> File &gt; Export &gt; Save for Web (Legacy)</strong></li></ul><figure><img alt="Photoshop file menu with export options" src="https://cdn-images-1.medium.com/max/862/1*9XQ7-LMlCzfyyowIxd9o1Q.png" /><figcaption>Photoshop’s Export options menu (screenshot by Author)</figcaption></figure><p>In the export pop-up window, <strong>select GIF, 256 colours, tick the Transparent box and opt for Matte &gt; None to keep background transparency</strong>. Change or leave the Image size parameters (they are based on your initial PNG files) and make sure the looping is set to Forever. Click Save and there you have it!</p><figure><img alt="Photoshop’s export menu pop-up window with final output parameters" src="https://cdn-images-1.medium.com/max/1024/1*gQu70VtLcnMouo4MesiycA.png" /><figcaption>Photoshop’s export pop-up window with output parameters (screenshot by Author)</figcaption></figure><p>I hope you enjoyed this tutorial and rest assured, it took longer to write it than to create a Voronoi GIF!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mF7G5XXRE414fHphCmI9DA.gif" /><figcaption>The final output (image by <a href="https://medium.com/@jelena-ristic">Author</a>)</figcaption></figure><p>Many thanks for reading!</p><p><a href="https://jelenaristic.info/">Jelena</a></p><h4>Would you like to support me and other writers on Medium?</h4><p><em>To get access to unlimited stories, you can also consider </em><a href="https://jelena-ristic.medium.com/membership"><em>signing up to become a Medium member</em></a><em> for just 5$. If you sign up using </em><a href="https://jelena-ristic.medium.com/membership"><em>my link</em></a><em>, I’ll receive a small commission at no extra cost to you. Thank you!</em></p><p><a href="https://jelena-ristic.medium.com/membership">Join Medium with my referral link - Jelena Ristic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bc863629095" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an augmented reality 3D logo with Blender and AR.js]]></title>
            <link>https://jelena-ristic.medium.com/how-to-create-an-augmented-reality-3d-logo-with-blender-and-ar-js-1d7097456eb0?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d7097456eb0</guid>
            <category><![CDATA[graphic-design]]></category>
            <category><![CDATA[ar]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[blender]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Mon, 04 Jul 2022 11:44:00 GMT</pubDate>
            <atom:updated>2022-07-25T08:13:45.973Z</atom:updated>
            <content:encoded><![CDATA[<h3>Use the free and open-source tools to create a marker-based fun and interactive logo with very little code</h3><figure><img alt="Pink 3D logo hovering above a QR code" src="https://cdn-images-1.medium.com/max/1024/1*UVCn4Y2NreWbJZVs4wPqRw.jpeg" /><figcaption>Smartphone screenshot of the final result (photo by <a href="https://jelena-ristic.medium.com/">Author</a>)</figcaption></figure><h4>Virtual space — the new frontier</h4><p>With the advent of internet and the world wide web, <strong>the new era of colonisation</strong> has begun — the virtual space is up for grabs and the <strong>phygital</strong> (the hybrid offspring from the improbable union of the physical and digital worlds) is the latest hype word. Since the dawn of humanity, our species has always believed in the possible existence of alternative worlds and realities that lie beyond those we can apprehend with our senses. The world wide web, the cloud and the online virtual space is yet another narrative in the long line of those <strong>alternative realities</strong> humans imagined and created for themselves. This time, unlike some other alternative and fictional realities that shaped the Western cultures’ mindsets, it is a scientific reality, the access is granted and we can exist ubiquitously and make use of it as <strong>an extension of ourselves</strong> (that is, until we pull the plug, but that’s another story).</p><h4><strong>Augmented space — the phygital bridge</strong></h4><p>Augmented space acts as a bridge between the purely virtual and physical areas of existence, allowing to overlay additional signifiers provided you have a smart device. This example uses a <strong>graphic component</strong> we will call a marker (QR code with a central barcode) to trigger a physical device, i.e. your smartphone camera into showing a <strong>digital and interactive 3D entity</strong> on top of it in your browser.</p><p>Follow the steps below to create your own augmented reality logo.</p><h4>1. Making the logo in Blender</h4><p>If you are familiar with Blender, create your logo and then go to the next paragraph. For those that don’t know it yet, <a href="https://www.blender.org/">Blender</a> is a great free software allowing you to create fully-operational 3D assets and animation. Blender also has a scripting interface where you can unleash your inner creative python if you are into coding. For tutorials to get you started, check this youtube list — I tested them all and can say they are fun to do and they work!</p><p><a href="https://www.youtube.com/playlist?list=PLgDpoah5DagE5AVBvygqCWow-wuE7bJ6_">(12) Blender tutorials — YouTube</a></p><p>In my case, my logo is text and I added my ‘heritage’ doughnut in the middle just for fun (for those wondering why the doughnut — it’s the first object everyone makes in Blender to familiarise themselves with various interfaces and functionalities). To create 3D text, you press “SHIFT+A &gt; Text”, then go into Edit mode to your pick your font (you have to have it installed on your machine) and write your text, and then simply use the “Extrude geometry” (“E” shortcut key) to make it as thick as you want it. You can also import an svg file and extrude it to your desired thickness.</p><p><strong>In any case, upon extrusion you will probably need to clean up your geometry</strong> by adding or deleting vertices and edges and/or converting the triangles into quads. You can find the <a href="https://www.makeuseof.com/blender-3-keyboard-shortcuts/">Blender cheat sheet here</a> for all the useful shortcuts. To import an object from another Blender file, just use “File &gt; Import” and the relevant file extension. I applied the same material to the letters and the doughnut icing. Add shaders, texture, etc. and then you’re ready for export!</p><h4>2. Exporting the logo</h4><p>To be able to use it with AR.js, I opted to export it in .gltf format: <strong>File &gt; Export &gt; glTF 2.0</strong>.</p><figure><img alt="Screenshot of Blender’s export options menu" src="https://cdn-images-1.medium.com/max/976/1*VO9B57vkfSLAYZ2VShb1UQ.png" /><figcaption>Screenshot of Blender’s export options</figcaption></figure><p>Then, <strong>use the “separate” option</strong>, especially if you have textures and shading that you painted on your logo (<a href="https://youtu.be/Y7M-B6xnaEM">click here to familiarise yourself with UV mapping and unwrapping</a>):</p><figure><img alt="Screenshot of Blender export menu" src="https://cdn-images-1.medium.com/max/653/1*BGiX9IfMDSNpwJVFw-KCnw.png" /><figcaption>Screenshot of Blender export menu. Opt for glTF Separate for our project.</figcaption></figure><p>Select the appropriate elements to include in the sub-menus “Include”, “Transform” and “Geometry” based on your needs.</p><p><strong>If you have several separate elements that are part of your logo, you have to join them first</strong> so they are exported together in proportion. If you have various objects in your project file and only want to export one, select it and under “Include” in the export menu, click “Selected objects”.</p><p><strong>Important note: </strong>Make sure the object you want to export is positioned the way you want it showing above the QR code— if you want it centred, then you have to position it sitting on the origin point (where the x and y axes intersect) and align it so the origin point is right in the middle. <strong>Just think of the origin point as the centre of the barcode marker above which your logo will be hovering. </strong>Having experimented with it, centred is the way to go, as different screen sizes may yield different results and show your logo only partially due if you choose to offset it. If you’re planning to have your text <strong>hover flat</strong> above the QR code, i.e. you plan to use your QR code vertically, then <strong>leave the text laying down flat</strong>. I went for my logo to <strong>hover ‘standing up’</strong> above the QR code, so I had to <strong>rotate it 90° along the global x axis</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*CgYbCoc_f0UayO08jsRd-w.png" /><figcaption>Make sure your object is centred or positioned the way you want it in relation to the origin point shown in red and white circle. As you can also see (in letters r and a in particular), I didn’t clean up the whole geometry, just the bare minimum. (Screenshot of author’s Blender project).</figcaption></figure><p>Save the export (3 files: gltf, bin and texture png) in the folder that will hold also the AR.js html file.</p><h4>3. Generating the marker</h4><p>According to <a href="https://ar-js-org.github.io/AR.js-Docs/marker-based/">AR.js documentation</a>, there are 3 different marker types: Hiro, barcode and pattern. We will be using the barcode. I used this <strong>free </strong><a href="https://au.gmented.com/app/marker/marker.php"><strong>Marker generator (gmented.com)</strong></a> as it allows screen (72 dpi) and print (300 dpi) resolutions. I went for the option of generating only one marker image with code — I went with “1”, although you can pick any numbers between 0 and 63. This marker will be triggering your logo, so don’t forget which number you picked as we’ll have to input it in the html code. For consistency, save the marker image in the same folder as your Blender exports.</p><h4>4. Coding AR.js html file to link the logo with the marker</h4><p>The AR code is quite straightforward.</p><ul><li>Open your preferred text editor (I use <a href="https://code.visualstudio.com/">Visual Studio Code</a>)</li><li>Create an html file</li><li>copy-paste these scripts in the &lt;head&gt;&lt;/head&gt; part:</li></ul><pre>&lt;script src=&quot;https://aframe.io/releases/1.3.0/aframe.min.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://raw.githack.com/AR-js-org/AR.js/master/three.js/build/ar.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://raw.githack.com/fcor/arjs-gestures/master/dist/gestures.js&quot;&gt;&lt;/script&gt;</pre><p><strong>The gestures.js script is to make the logo interactive so the viewer can scale it up and rotate it by touching it on the smartphone screen.</strong></p><p>For the &lt;body&gt;&lt;/body&gt; part of the html file, add this code:</p><pre><strong>&lt;body</strong> style=&#39;margin : 0px; overflow: hidden;&#39;<strong>&gt;</strong></pre><pre><strong>&lt;div class=&quot;arjs-loader&quot;&gt;</strong></pre><pre>&lt;div style=&quot;font-family: &#39;Franklin Gothic Medium&#39;, &#39;Arial Narrow&#39;, Arial, sans-serif;&quot;&gt;Loading, please wait...&lt;/div&gt;</pre><pre><strong>&lt;/div&gt;</strong></pre><pre>&lt;!-- we add detectionMode and matrixCodeType to tell AR.js to recognize barcode markers --&gt;</pre><pre><strong>&lt;a-scene</strong> embedded arjs=&#39;sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3;&#39;</pre><pre>gesture-detector<strong>&gt;</strong></pre><pre><strong>&lt;a-assets&gt;</strong></pre><pre><strong>&lt;a-asset-item</strong> id=&quot;<strong>[YOUR LOGO ID HERE]</strong>&quot; src=&quot;<strong>[YOUR 3D LOGO BLENDER EXPORT FILE NAME HERE]</strong>.gltf&quot;<strong>&gt;&lt;/a-asset-item&gt;</strong></pre><pre><strong>&lt;/a-assets&gt;<br></strong></pre><pre><strong>&lt;a-marker</strong> id=&quot;animated-marker&quot; type=&#39;barcode&#39; value=&#39;<strong>[YOUR BARCODE MARKER NUMBER HERE]</strong>&#39;  raycaster=&quot;objects: .clickable&quot;</pre><pre>emitevents=&quot;true&quot;</pre><pre>cursor=&quot;fuse: false; rayOrigin: mouse;&quot;</pre><pre>smooth=&quot;true&quot;<strong>&gt;</strong></pre><pre><strong>&lt;a-entity</strong></pre><pre>gltf-model=&quot;#<strong>[YOUR LOGO ID HERE]</strong>&quot;</pre><pre>scale=&quot;35 35 35&quot; <strong>&lt;!--x y z parameters - play with scale depending on the size of your Blender export--&gt;</strong></pre><pre>position=&quot;0 0 0&quot; <strong>&lt;!--x y z parameters - amend if needed depending on the position of your Blender export--&gt;</strong></pre><pre>class=&quot;clickable&quot;</pre><pre>gesture-handler=&quot;minScale: 0.25; maxScale: 10&quot; <strong>&lt;!--change these min and max to limit interaction in terms of size--&gt;</strong></pre><pre>rotation=&quot;0 0 0&quot;<strong>&gt;</strong></pre><pre><strong>&lt;/a-entity&gt;</strong></pre><pre><strong>&lt;/a-marker&gt;</strong></pre><pre><strong>&lt;a-entity</strong> camera<strong>&gt;&lt;/a-entity&gt;</strong></pre><pre><strong>&lt;/a-scene&gt;</strong></pre><pre><strong>&lt;/body&gt;</strong></pre><p>It will create a scene for barcode markers recognition, take an asset (your Blender export), turn it into an entity (with a configurable scale and interactivity) within the marker parameters so that it triggers your smartphone camera and shows the 3D object when the camera is pointed to the marker. <strong>Save the html file in the same folder as your Blender export and your marker image.</strong></p><h4><strong>5. Tying it all together with a QR code to display it in your browser</strong></h4><p>I will not explain here how to publish it all on a website, I assume you know that. Once you have your URL for the AR.js html file you’ve just created, go to <strong>a QR code generator that allows ‘logo’ embeds in the middle</strong>. I opted for <a href="https://www.qrcode-monkey.com/">QRCode Monkey</a> as it allows not only png but also svg, eps and pdf exports, although others exist as well. Generate the QR code by pasting your AR.js URL and then adding the image marker as the ‘logo’ in the middle. Download and you’re good to put it wherever you wish for people to scan it at their heart’s content!</p><p>Here is my final result:</p><figure><img alt="QR code with image tracker in the middle" src="https://cdn-images-1.medium.com/max/600/1*ujAR87z_ljE7yvsvW3XCBg.png" /><figcaption>QR code with the tracker image (barcode) in the middle. Scan it with your smartphone to see the logo (image by <a href="https://jelena-ristic.medium.com/">Author</a>)</figcaption></figure><p>I hope you enjoyed it and will try it out!</p><p><em>Also, don’t hesitate to contact me if you’d like one with your logo / bespoke 3D object but haven’t got time to do it yourself. The important thing is to have fun doing it!</em></p><h4>Would you like to support me and other writers on Medium?</h4><p><em>To get access to unlimited stories, you can also consider </em><a href="https://jelena-ristic.medium.com/membership"><em>signing up to become a Medium member</em></a><em> for just 5$. If you sign up using </em><a href="https://jelena-ristic.medium.com/membership"><em>my link</em></a><em>, I’ll receive a small commission at no extra cost to you. Thank you!</em></p><p><a href="https://jelena-ristic.medium.com/membership">Join Medium with my referral link - Jelena Ristic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d7097456eb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free audio, video and illustration tools for quick and sleek content creation]]></title>
            <link>https://medium.com/design-bootcamp/free-audio-video-and-illustration-tools-for-quick-and-sleek-content-creation-aca8490a7e3e?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/aca8490a7e3e</guid>
            <category><![CDATA[visual-design]]></category>
            <category><![CDATA[audio-production]]></category>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[free-software]]></category>
            <category><![CDATA[video-production]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 15:54:05 GMT</pubDate>
            <atom:updated>2022-04-19T04:29:00.245Z</atom:updated>
            <content:encoded><![CDATA[<h4>I wish I knew about these when I first started!</h4><figure><img alt="Neon lights reading “Do something great”" src="https://cdn-images-1.medium.com/max/1024/0*iMeSn71rwVG_wvTp" /><figcaption>Photo by <a href="https://unsplash.com/@clarktibbs?utm_source=medium&amp;utm_medium=referral">Clark Tibbs</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Over the years, my main tasks involved <strong>creating short educational content popularising science, be it explainers, timelines, exhibition texts and labels that together supported a more complex narrative or theme</strong> (picture all the various types of content you find in an exhibition). Trying to keep the content production<strong> sustainable and low-cost</strong>, I discovered a few very useful platforms, interfaces and software that enabled me to create professional-looking content for free.</p><blockquote><strong>I am not sponsored by nor affiliated to these products and this article only aims to share the free tools that make my life easier and are kind to my wallet when it comes to creating cool, fun and engaging content, in the hope that it can also benefit to other content creators on a budget…</strong></blockquote><h3>Video production</h3><h4><a href="https://fxhome.com/product/hitfilm-express">HitFilm Express</a></h4><blockquote>This is one of the most complete video compositing, editing and production software there is for all the creatives on a budget (or without one!).</blockquote><p>It comes with a generous bunch of VFX plug-ins and tools that you can always upgrade on the go by buying additional bundles. The free version (“Express”) is also watermark-free! So far I haven’t had to use any paying plug-ins and the Express version was more than enough power and functionality for all the videos I created so far. It is available for Mac and Windows and is regularly updated.</p><figure><img alt="HitFilm Express user interface" src="https://cdn-images-1.medium.com/max/1024/1*GAWZFwIId8LmaGqOcRZeoQ.png" /><figcaption>HitFilm Express interface (screenshot by <a href="https://jelena-ristic.medium.com/">Author</a>)</figcaption></figure><blockquote>One of the great sides to this free software is the amazingly open and helpful community of over 6.5 million professional and amateur users that feeds YouTube and various forums with numerous tutorials and help threads, allowing you to gain and improve your skills quickly and make the most out of this program.</blockquote><p>The only downside I experienced so far is the incompatibility with .mov files, which can be a problem for some Apple users.</p><h4><a href="https://photomosh.com/">PhotoMosh</a></h4><blockquote>If you need to alter your videos or images with futuristic, techy-looking and glitching filters, this is the place to go to!</blockquote><p>It allows you to upload your video or use your webcam and then apply filters and export as a .jpg, .gif, and .webm. All filters can be combined and customised for a bespoke result. The downside of the free version is the output resolution — enough for web publishing but not if you want to blow it up for high-res display.</p><figure><img alt="Ringed giant gas planet procedurally rendered in Blender" src="https://cdn-images-1.medium.com/max/1024/1*4ZydI2Yueqfr48urRCrmoA.png" /><figcaption>Ringed gas giant procedurally generated in Blender (image by <a href="https://jelena-ristic.medium.com/">Author</a>). For more info about Blender, scroll down.</figcaption></figure><figure><img alt="PhotoMosh Sliced filter applied to the planet image and rendered as a gif" src="https://cdn-images-1.medium.com/max/640/1*oo2YztYi5bxUxG7JjFMSRA.gif" /><figcaption>Slices filter applied to above image (image by <a href="https://jelena-ristic.medium.com/">Author</a>)</figcaption></figure><figure><img alt="Dot matrix and BadTV filters applied to the same planet picture as previously" src="https://cdn-images-1.medium.com/max/640/1*Ph-ul515e1l6tJNcinb5bg.gif" /><figcaption>Dot matrix and Bad TV filters applied to the above image (image by <a href="https://jelena-ristic.medium.com/">Author</a>)</figcaption></figure><h4><a href="https://obsproject.com/">OBS Studio</a></h4><blockquote>If you need screen recording and streaming, this open-source software is versatile and intuitive to use.</blockquote><p>It allows real-time audio and video capturing and mixing and an unlimited number of scenes. It works on Windows, Mac and Linux and is compatible with all main streaming platforms.</p><h3>Audio production</h3><figure><img alt="DAW setup with a screen and laptop on a desk with cables" src="https://cdn-images-1.medium.com/max/1024/0*lCMsbYybdd_1RMBo" /><figcaption>Photo by <a href="https://unsplash.com/@techivation?utm_source=medium&amp;utm_medium=referral">Techivation</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><a href="https://www.bandlab.com/products/cakewalk">Cakewalk by Bandlab</a></h4><p>A lot of content creators like using Audacity, but I was always put off by its very low-res interface. Also, given my background in audio composition and recording with my former band, I was used to DAW interfaces such as Logic Pro.</p><blockquote>To me, Cakewalk was a <strong>perfect free alternative to Logic Pro</strong> I no longer had access to. It comes with a limited number of plugins that are fairly basic, but you can customise them or import your own.</blockquote><p>I mainly used Cakewalk for recording analogue audio (voice, ambient noise, etc.), mixing and mastering (single-track recordings and multi-track editing). You can also use it for midi-based audio composition, although I prefer Ableton Live that has to be purchased.</p><h3>Code (html, css, js, python, etc.)</h3><figure><img alt="Close-up on a computer screen with coloured lines of code" src="https://cdn-images-1.medium.com/max/1024/0*E1S6iN0MQNixPVry" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><a href="https://codepen.io/">Codepen</a></h4><p>Whether you’re a neophyte or a seasoned coder, Codepen’s thriving community full of great projects will inspire you — in the true spirit of open-source and shared knowledge, you can fork other people’s work and adapt it to your needs as long as you credit accordingly.</p><h4><a href="https://vscode.dev/">Visual Studio Online</a></h4><blockquote>If you need to code, but don’t have access to your own computer, you can use Visual Studio text editor <strong>directly in a browser</strong>.</blockquote><p>I have tried a few editors so far (Atom, Notepad++, Sublime) and Visual Studio Code is the one I prefer as I can use it remotely from other workstations that are sometimes shared, without having to install it.</p><h4><a href="https://processing.org/">Processing.org</a></h4><blockquote>For visual arts creatives that like to mess about with code, Processing.org is a great place to start coding interactive visual and artistic interfaces.</blockquote><p>You need to be familiar with java, JavaScript, or python to get started. You can read more about it in my previous article:</p><p><a href="https://jelena-ristic.medium.com/my-own-nebula-project-generative-art-with-processing-py-and-p5-js-fa3033971bf2">“My-own-nebula” project: generative art with processing.py and p5.js</a></p><h3>Visual arts (drawing, animation, photo editing, etc.)</h3><figure><img alt="A hand using a stylus to draw on a touch screen that is tilted on a table and next to a blue cup." src="https://cdn-images-1.medium.com/max/1024/0*fHekTblc0xJ_PKQJ" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=medium&amp;utm_medium=referral">Kelly Sikkema</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><a href="https://krita.org/en/">Krita</a></h4><p>Open-source and community driven, this is a great alternative to Adobe Sketchbook that offers more than just a drawing interface.</p><blockquote>You can customise the user interface so it best suits your needs and various workspaces allow for <strong>illustration, vector and text, 2D animation and more</strong>.</blockquote><p>If you are familiar with python, you can use your scripting talents to automate some tasks as Krita comes with a nifty API. I recommend using a drawing tablet for a more comfortable user experience, however Krita does not support all brands of tablets, so make sure to <a href="https://docs.krita.org/en/reference_manual/list_supported_tablets.html">check their compatibility list on their website</a>.</p><h4><a href="https://www.blender.org/">Blender</a></h4><figure><img alt="3D icon of a hamburger created in Blender on white background" src="https://cdn-images-1.medium.com/max/855/1*h3pZoFpW-ONk-tenC8fPTQ.png" /><figcaption>3D glass-finish extrusion of a hamburger SVG icon created in Blender (image by <a href="https://jelena-ristic.medium.org/">Author</a>)</figcaption></figure><p>If you want to dig into <strong>3D animation and procedural art</strong>, or just need a cool-looking 3D icon, Blender is the way to go.</p><blockquote>I tried Houdini first and rapidly switched to Blender, as I found it easier to get acquainted with and to understand its different interfaces and the way they interact. There are <strong>tonnes of tutorials to help you get started</strong> and improve your skills rapidly, even though <strong>the learning curve can be quite steep for some people</strong>.</blockquote><p>I personally began with the doughnut tutorial offered by <a href="https://www.youtube.com/c/blenderguruofficial">Blender Guru</a>, but <a href="https://bootcamp.uxdesign.cc/how-to-learn-blender-basics-in-5-minutes-78fb492865b5">there are many many others just as good</a>. <a href="https://youtube.com/playlist?list=PLgDpoah5DagE5AVBvygqCWow-wuE7bJ6_">I compiled a YouTube playlist of tutorials I actually tried out and that worked well.</a> Blender is a very powerful tool, therefore you will need a powerful machine with good GPU to reduce rendering time. You don’t need a drawing tablet as for most tasks, a keyboard and a mouse are enough. However, when it comes to sculpting, a stylus and tablet can enhance accuracy, user experience and make it more satisfying. Also, learn keyboard shortcuts, as they will make your life easier and speed up the whole creation process. If you are a programming wiz, you can also <a href="https://www.youtube.com/watch?v=QnvN1dieIAU">unleash the power of python</a>, and script crazy animation effects with a few lines of code.</p><h4><a href="https://www.gimp.org/">Gimp</a></h4><p>Finally, if you’re looking into editing your pictures and photos, Gimp can get the job done up to a certain point.</p><blockquote>Although it’s not the most comprehensive tool,<strong> it has all the essentials and uses the layer system</strong>, just like Photoshop. I mainly use Gimp for <strong>scaling and optimising images for web publishing</strong>.</blockquote><p>For other advanced image and photo manipulation, I still prefer Adobe Lightroom and Photoshop.</p><blockquote>I hope you found this article helpful! As mentioned above, I am not sponsored nor affiliated to the aforementioned products and this article only aims to share the free tools that make my life easier and are kind to my wallet when it comes to creating engaging content.</blockquote><p>Thank you for reading and keep creating amazing content!</p><p>Jelena</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aca8490a7e3e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/free-audio-video-and-illustration-tools-for-quick-and-sleek-content-creation-aca8490a7e3e">Free audio, video and illustration tools for quick and sleek content creation</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create wordcloud portraits with python]]></title>
            <link>https://jelena-ristic.medium.com/create-wordcloud-portraits-with-python-bb5ce794bc91?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb5ce794bc91</guid>
            <category><![CDATA[word-cloud]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[graphic-design]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Sat, 09 Apr 2022 20:15:16 GMT</pubDate>
            <atom:updated>2022-07-10T12:07:58.573Z</atom:updated>
            <content:encoded><![CDATA[<h4>This is <em>not</em> a data viz article but an article about creating graphically-interesting art using the wordcloud library in python.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1E34P6lJR9BhL7ivjfTZ7g.png" /><figcaption>Wordcloud generated from Darth Vader’s lines in Star Wars scripts (Jelena Ristic, 2022)</figcaption></figure><p>Data visualisations are a type of storytelling leading to insight and for the best of them to enlightenment that can drive decision making. Wordclouds are not one of them. They are actually quite the opposite as they are <strong>graphically tied to a font and font size cannot be accurately translated to a value</strong>. Also, longer words with a smaller size take more space than a slightly bigger but shorter word, leading our human eye to misinterpret what it sees.</p><p>However, even if I find them useless for actual data visualisation that should drive decision-making, I find them quite interesting when it comes to graphical art and design. <strong>I had the idea of creating portraits of well-known characters or people and using their own words to draw their portraits. </strong>To do so, I used python and the <a href="https://pypi.org/project/wordcloud/">wordcloud library</a>.</p><h4>The example of Virginia Woolf and <em>The Room of One’s Own</em></h4><p>First of all, you have to install the wordcloud library via pip:</p><pre>pip install wordcloud</pre><p>I used a Jupyter Notebook to generate it in stages.</p><p>Once your Jupyter Notebook is up and running, import the necessary libraries:</p><pre>from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator</pre><pre>import matplotlib</pre><pre>import matplotlib.pyplot as plt</pre><pre>plt.rcParams[&quot;figure.dpi&quot;] = 2000</pre><pre>import pandas as pd</pre><pre>import numpy as np</pre><pre>from PIL import Image</pre><p>The next step is to read the data, i.e. feed python the words it’ll use to generate the cloud (you’ll use <strong>pandas</strong> to read your data source, whatever it is: an html online file, a .txt file, etc.):</p><pre>#if you want to use an url as the source: <br>#data = pd.read_html(input(&quot;paste your URL here: &quot;))</pre><pre>#in my case, I had the Room of One&#39;s Own in a txt format, scraped<br>#from project Gutenberg website.<br>data = open(&quot;woolf_room.txt&quot;).read()</pre><pre>#you want to make sure it&#39;s all string<br>data = str(data)</pre><pre>#then you can generate the first wordcloud to check it&#39;s all ok</pre><pre>wordcloud = WordCloud().generate(data)</pre><pre>#and use matplotlib to display generated image</pre><pre>plt.imshow(wordcloud)</pre><pre>plt.axis(&quot;off&quot;)</pre><pre>plt.show()</pre><p>At this stage, you will get the <strong>generic wordcloud output</strong> in staple python colours and font.</p><p>You can now <strong>start customising it</strong>: chose the relevant <strong>mask</strong> you will apply <strong>to model the final wordcloud</strong>. It is best to chose one that has a good amount of <strong>contrast</strong> to get the best out of your wordcloud, also the <strong>mask picture size is crucial</strong> if you want to get an output that you can blow up significantly without too much pixelation. The bigger the picture, the better the cloud.</p><p>For the Virginia Woolf wordcloud, I used her famous portrait photographed by George Charles Beresford in 1902:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*MKTBzHQCSST6d1bx9bkOmA.png" /><figcaption>George Charles Beresford, Virginia Woolf, 1902 (<a href="https://upload.wikimedia.org/wikipedia/commons/e/eb/George_Charles_Beresford_-_Virginia_Woolf_in_1902_-_Restoration.png">Wikimedia Commons</a>)</figcaption></figure><p>To set up the picture as the cloud mask, use <strong>numpy</strong> and the following code:</p><pre>cloud_mask = np.array(Image.open(&quot;FILE NAME/PATH OF YOUR IMAGE HERE.JPG/PNG&quot;))</pre><pre>plt.imshow(cloud_mask)</pre><pre>plt.axis(&quot;off&quot;)</pre><pre>#I like to make sure each stage works before proceeding further</pre><pre>plt.show()</pre><p>Opt for the <strong>font </strong>of your liking (make sure it’s in the same folder as your project or that you refer to it with the correct path) — <strong>I like using fonts that graphically add meaning to the final output</strong>. Here I used a classical serif font given the literary nature of the text.</p><pre>wordcloud = WordCloud(font_path=&quot;Sitka.ttc&quot;, #add your font here<br>                      width = 2380, # use the same width and height<br>                                    #as your mask size for best<br>                                    #results<br>                      height = 2879,<br>                      stopwords=STOPWORDS, #if the staple stopwords<br>                                           #the module provides is<br>                                           #not good enough, you can<br>                                           #list your own<br>                      background_color = &quot;white&quot;,<br>                      mask = cloud_mask,<br>                      contour_width = 0,<br>                      repeat=True,<br>                      min_font_size = 2, #if you want a tight fit,<br>                                         #go for a small figure here<br>                      max_words = 1000, #set max words count<br>                      ).generate(data)</pre><pre>image_colors = ImageColorGenerator(cloud_mask) #use the mask colours</pre><pre>wordcloud.generate(data)</pre><pre>wordcloud.recolor(color_func=image_colors)</pre><pre>plt.imshow(wordcloud)<br>plt.axis(&quot;off&quot;)<br>fig1=plt.gcf()<br>plt.show()<br>plt.draw()<br>fig1.savefig(&quot;Woolf.svg&quot;, format=&quot;svg&quot;, bbox_inches=&quot;tight&quot;)</pre><p>I like saving the output in SVG format, as I then use it in Adobe InDesign to compose the final product.</p><p>Here is the output of the code above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*djbE19fhhz-Utup3gtd1YQ.png" /><figcaption>“Woolfcloud” generated by combining her photographic portrait and the most recurring words in her text “The Room of One’s Own” (Jelena Ristic, 2022)</figcaption></figure><p>You can download the A3 poster pdf of my “Woolfcloud” <a href="https://jelenaristic.info/infographics/woolf_wordcloud.pdf">here</a>.</p><p><em>I hope you enjoyed this article — feel free to leave a comment if you made one of your own!</em></p><p><em>Many thanks for reading!</em></p><h4>Would you like to support me and other writers on Medium?</h4><p><em>To get access to unlimited stories, you can also consider </em><a href="https://jelena-ristic.medium.com/membership"><em>signing up to become a Medium member</em></a><em> for just 5$. If you sign up using </em><a href="https://jelena-ristic.medium.com/membership"><em>my link</em></a><em>, I’ll receive a small commission at no extra cost to you. Thank you!</em></p><p><em>Jelena</em></p><p><a href="https://jelena-ristic.medium.com/membership">Join Medium with my referral link - Jelena Ristic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb5ce794bc91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“My-own-nebula” project: generative art with processing.py and p5.js]]></title>
            <link>https://jelena-ristic.medium.com/my-own-nebula-project-generative-art-with-processing-py-and-p5-js-fa3033971bf2?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa3033971bf2</guid>
            <category><![CDATA[generative-art]]></category>
            <category><![CDATA[processing-foundation]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[p5js]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Sun, 03 Apr 2022 12:59:16 GMT</pubDate>
            <atom:updated>2022-07-10T12:08:34.538Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KkOub9-infI0o98vHiyxwg.png" /><figcaption>Example of output of my-own-nebula generative art project (Jelena Ristic, 2022)</figcaption></figure><p>Nebulas are beautiful space objects — gas and dust clouds with distinctive colours, acting as star nurseries. Watching a <a href="https://youtu.be/u3d-n41Tobw">PyCon 2018 conference by Emily Xie</a> gave me a great basis to build upon and use <a href="https://py.processing.org/">processing.py</a> and then <a href="https://p5js.org/">p5.js</a> to build <a href="https://jelenaristic.info/my-own-nebula">an interactive interface that draws a human-machine generated output that resembles nebulas</a>. It was important to me that the interface allows user input to alter the generated output and make their own version, and also that it can be outputted in a browser, therefore I translated the python code to p5.js and ran it in the processing app to check for bugs, typos, etc.</p><p>If you wish to try it yourself, go to <a href="https://processing.org/"><strong>processing.org</strong></a> to download the app. It is a great sketchbook with an impressive array of functions allowing you to play and code form, data, images, colour, typography, and more. To start with the basics, it requires 2 functions: <a href="https://processing.org/reference/setup_.html">setup()</a> to setup your playground boundaries (such as canvas size, etc.) and <a href="https://processing.org/reference/draw_.html">draw()</a> that will execute your creative lines of code. In the “Tools” menu, you can access libraries, modes, etc. Make sure you have python and p5.js modes on. The documentation is great and clear, so it was easy to dive into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gR4n8eL2kArC98dEJS2Baw.png" /><figcaption><a href="https://jelenaristic.info/my-own-nebula/">my-own-nebula web interface</a> (Jelena Ristic, 2022)</figcaption></figure><p><a href="https://jelenaristic.info/my-own-nebula/"><strong><em>My-own-nebula</em></strong></a> is basically a live update on screen of endlessly repeated circles (or sections of) that are drawn and overlaid. The <strong>mouse cursor</strong> operates as a centre and guide to the automatically generated circle arc, the <strong>amplitude slider</strong> determines the max deployment angle for the circle arc (min 10 degrees and max 360 for the full circle). <strong>Press any key</strong> and the output is saved as a tif file. The shape randomness is achieved thanks to the <a href="https://processing.org/reference/noise_.html"><strong>Perlin noise function</strong></a>. At each iteration the drawn arc either diminishes or grows depending whether its radius has a positive or negative value.</p><p>Here is my final p5.js code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3418de0d584953d683844220fe98af5/href">https://medium.com/media/e3418de0d584953d683844220fe98af5/href</a></iframe><p>For the whole project, please visit : <a href="https://github.com/jelrist/my-own-nebula">jelrist/my-own-nebula: Generative art project originally written in processing.py and converted to p5.js for web display (github.com)</a></p><p>If you create your own, I’d be happy to see your versions, so don’t hesitate to let me know!</p><p>Many thanks for reading!</p><h4>Would you like to support me and other writers on Medium?</h4><p><em>To get access to unlimited stories, you can also consider </em><a href="https://jelena-ristic.medium.com/membership"><em>signing up to become a Medium member</em></a><em> for just 5$. If you sign up using </em><a href="https://jelena-ristic.medium.com/membership"><em>my link</em></a><em>, I’ll receive a small commission at no extra cost to you. Thank you!</em></p><p><a href="https://jelena-ristic.medium.com/membership">Join Medium with my referral link - Jelena Ristic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa3033971bf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sankey generator webapp with python, pandas, plotly and Streamlit]]></title>
            <link>https://jelena-ristic.medium.com/sankey-generator-webapp-with-python-pandas-plotly-and-streamlit-4cfc7b0a02e3?source=rss-d5c869f322fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cfc7b0a02e3</guid>
            <category><![CDATA[sankey-diagram]]></category>
            <category><![CDATA[streamlit]]></category>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jelena Ristic]]></dc:creator>
            <pubDate>Sat, 26 Mar 2022 18:12:19 GMT</pubDate>
            <atom:updated>2022-07-16T11:13:33.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Abstract flows in gradient colour on black background" src="https://cdn-images-1.medium.com/max/1024/1*bU5A5GEQMwSmqEAfUKUm7g.jpeg" /><figcaption>lilzidesigns, Unsplash</figcaption></figure><p>Since I discovered python and the <a href="https://plotly.com/">plotly library</a>, I fell in love with sankey diagrams. If you are not familiar with this type of data representation, it is a diagram that represents <strong>flows</strong> within a given system. The flows look like ribbons and their width is determined by their value.</p><p>This type of data visualisation was named after <strong>Irish Captain </strong><a href="https://en.wikipedia.org/wiki/Matthew_Henry_Phineas_Riall_Sankey"><strong>Matthew Henry Phineas Riall Sankey</strong></a>, who used it in 1898 to show the <a href="https://en.wikipedia.org/wiki/Energy_conversion_efficiency">energy efficiency</a> of a <a href="https://en.wikipedia.org/wiki/Steam_engine">steam engine</a> (source: <a href="https://en.wikipedia.org/wiki/Sankey_diagram">Wikipedia</a>). One of the earlier uses of this type of flow representation is credited to the <strong>French civil engineer and infographics pioneer </strong><a href="https://en.wikipedia.org/wiki/Charles_Joseph_Minard"><strong>Charles Minard</strong></a> who, in 1869, represented <strong>Napoleon’s invasion of Russia</strong> in a beautiful flow map combining topography, weather data, time span, and movements and number of French soldiers. This diagram is often quoted as an example of <strong>beauty, functionality, truthfulness and insight</strong>.</p><figure><img alt="Charles Minard’s flow map drawn in 1869 representing Napoleon’s invasion of Russia" src="https://cdn-images-1.medium.com/max/1024/1*V9sq--wHI1wm1zA3Gng1sg.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Sankey_diagram#/media/File:Minard.png">Charles Minard‘s diagram of Napoleon’s invasion of Russia, 1869</a> / Wikipedia, public domain</figcaption></figure><p>The plotly library offers an interactive way to plot a sankey with your data, allowing you to rearrange the flows and aggregate elements (or nodes) before downloading it as a png. Here is an example of <a href="https://jelenaristic.info/tarantino/actors-seconds">the output using data from a thread of tweets and representing actors and their respective screen times in Quentin Tarantino’s films</a>:</p><figure><img alt="Sankey diagram of actors and their respective screentimes in Quentin Tarantino’s films" src="https://cdn-images-1.medium.com/max/1024/1*Im0HkO4w1FD6GMT2NK8ZMA.png" /><figcaption><a href="https://jelenaristic.info/tarantino/actors-seconds">Actors and their screentimes in Quentin Tarantino’s films by Jelena Ristic, 2022</a></figcaption></figure><p>The actors that feature in more than one film have coloured flows and the selection tool allows you to aggregate the nodes and display the new visualisation, for instance per actor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5N0JPrXm29ctkCNvhvYMw.png" /></figure><p>In my opinion one sankey is worth a thousand bar charts, so after having played a while with python, <a href="https://pandas.pydata.org/">pandas</a> and plotly in a Jupyter notebook, I decided to use <a href="https://streamlit.io/">Streamlit</a> to create and publish my own webapp so I could generate sankey diagrams when needed even if I didn’t have access to my own private computer, for example at work.</p><p>It is quite straightforward and the success ultimately lies in <em>how you format your data</em>.</p><h3>Basic sankey diagram</h3><p>According to <a href="https://plotly.com/python/sankey-diagram/">plotly documentation</a> (code shown below), a basic sankey diagram requires 2 sources for data: <strong>nodes</strong> and <strong>links</strong>.</p><pre>import plotly.graph_objects as go<br><br>fig = go.Figure(data=[go.Sankey(<br>    <strong>node</strong> = dict(<br>      pad = 15,<br>      thickness = 20,<br>      line = dict(color = &quot;black&quot;, width = 0.5),<br>      label = [&quot;A1&quot;, &quot;A2&quot;, &quot;B1&quot;, &quot;B2&quot;, &quot;C1&quot;, &quot;C2&quot;],<br>      color = &quot;blue&quot;<br>    ),<br>    <strong>link</strong> = dict(<br>      source = [0, 1, 0, 2, 3, 3], <em># indices correspond to labels, eg A1, A2, A1, B1, ...</em><br>      target = [2, 3, 3, 4, 4, 5],<br>      value = [8, 4, 2, 8, 4, 2]<br>  ))])<br><br>fig.update_layout(title_text=&quot;Basic Sankey Diagram&quot;, font_size=10)<br>fig.show()</pre><p>The output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*hlBd1m_voE0Qx8yTe1MYjw.png" /><figcaption>Basic sankey diagram generated by the code above. Source: <a href="https://plotly.com/python/sankey-diagram/">plotly</a></figcaption></figure><h3>Setting up your data files</h3><p>You will need 2 CSV files: one for nodes and one for links.</p><p>The <strong>NODES file</strong> will contain 3 columns with the following header: <strong>“ID”, “label” and “color”</strong>. It will feature all the elements (nodes) that you intend to link.</p><figure><img alt="Screenshot of the node csv file with headers used for the Tarantino sankey diagram" src="https://cdn-images-1.medium.com/max/500/1*PZYZozhKlAnXtUJ2ocjSLQ.png" /><figcaption>Example of my node csv file for the Tarantino sankey above</figcaption></figure><p>The LINKS file will contain all the links between the elements listed in your NODES file. The <strong>LINKS file</strong> will contain 4 columns with the following header: <strong>“source”, “target”, “value”, “link color”</strong>. In the “source” column you put the IDs of nodes that will be shown on the left, and in the “target” column the IDs of the ones that will show on the right, and their link will be displayed thanks to the “value” and “link color” columns. In the example below, the “source” column lists the actors and the “target” column the films. The “value” is the number of seconds spent on screen, and the “link color” will colour the flow ribbon between the source and target nodes.</p><figure><img alt="Screenshot of the links csv file for the Tarantino sankey diagram shown earlier" src="https://cdn-images-1.medium.com/max/375/1*JdrK6OhZ50YYI35xmSQQYQ.png" /><figcaption>Example of my links csv file for the Tarantino sankey above</figcaption></figure><h3>A few tips to organise your data</h3><ol><li>The LINKS “<strong>value</strong>” only takes <strong>integers and floats</strong>.</li><li><strong>Dismiss weak or minor connections </strong>between nodes as a sankey diagram can quickly become crowded. Too many links may make it difficult to read.</li><li><strong>Choose your colours wisely!</strong> If you still need to represent complex relationships and expect a lot of intertwining, opt for <strong>rgba colours</strong> for the “link color” column and <strong>play with the alpha value</strong> to add transparency. The overlapping and crossing flows will be much easier to read.</li></ol><h3>Streamlit-powered python sankey webapp</h3><p>I opted for <a href="https://streamlit.io/">Streamlit</a> as it offers a quick way to publish a python-based webapp and I didn’t want to spend more time on the front-end development. Streamlit offers it all on a plate for you to pick and choose. The <a href="https://docs.streamlit.io/library/get-started">documentation</a> is straightforward and I built easily an interface that allows me to upload my nodes and links files (<a href="https://pandas.pydata.org/">pandas</a> for reading csv files), display the data, and customise the sankey (orientation, background colour, font colour and size, width and height of diagram, etc.). When it comes to publishing, it’s also easy. I linked Streamlit to my github profile and published the app from its github repository. So any changes I make on github will be reflected directly in the app, and that is quite neat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1kOOThhpPpVOZ41ayXCCg.png" /><figcaption>Streamlit sankey diagram generator interface / Jelena Ristic, 2022</figcaption></figure><p>Click <a href="https://share.streamlit.io/jelrist/sankey_generator/main/sankey_generator.py">here</a> to go to the webapp. Click <a href="https://github.com/jelrist/sankey_generator">here</a> for the source code, and here is another article on the topic:</p><p><a href="https://jelena-ristic.medium.com/may-the-flow-be-with-you-my-love-for-sankeys-and-star-wars-ef8389d38cb6">May the Flow Be With You: My Love for Sankeys and Star Wars</a></p><blockquote>Thanks for reading and happy sankey-ing!!</blockquote><h4>Would you like to support me and other writers on Medium?</h4><p><em>To get access to unlimited stories, you can also consider </em><a href="https://jelena-ristic.medium.com/membership"><em>signing up to become a Medium member</em></a><em> for just 5$. If you sign up using </em><a href="https://jelena-ristic.medium.com/membership"><em>my link</em></a><em>, I’ll receive a small commission at no extra cost to you. Thank you!</em></p><p><a href="https://jelena-ristic.medium.com/membership">Join Medium with my referral link - Jelena Ristic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cfc7b0a02e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>