--- title: "fig-gen: Making Generative art in Figma." date_published: 2021-11-06 preview: "Exploring the new Automator plugin for Figma. I thought exploring a minimal generative series using pixels and mapping equations would be a fun way to try it out." tags: ["figma", "art"] kind: "post" set: "fig-gen" --- ## Generative Art with Figma & Automator I spent the evening exploring the new Automator plugin for Figma from [Jordan Singer](https://twitter.com/jsngr). I thought a minimal generative series using pixels and mapping equations would be a fun way to try it out. ![Some select screens from my automation explorations](https://github.com/iamnbutler/data/blob/main/asset/automator/tiles.png?raw=true) ### Process I started by pushing on nesting shapes – How does it look when you nest and rotate shapes continuously? I got some cool outcomes like below, but I realized that most of the gens would end up looking pretty similar, relying so heavily on rotation. ![](https://github.com/iamnbutler/data/blob/main/asset/automator/first-gen-process.png?raw=true) Exploring a different direction, I remembered playing with graphing calculators back in high school – Using trig functions like sin, cos, and tan, I got some exciting results right off the bat. Once I found a few directions I liked, I realized that these gens would probably show best in some sort of frame, especially if I wanted to show a few together. I went with the simplest outline possible to keep everything monochrome and on theme. In the end, I didn't use any nesting to create each gen. Frames 1px tall and 1~6px wide (randomized) are charted in 2D along the x-axis using the repeat's {{index}}. The generative functions are mostly created using sin, cos, tan, a randomizer variable, and {{index}} combined in different ways. My favorite thing so far about Automator is how quickly I was able to explore a ton of variations. I was able to create over 60 gens with some really wide variation in under 2 hours. ![](https://github.com/iamnbutler/data/blob/main/asset/automator/tiles-2.png?raw=true) Here are some of my favorite gens: ![](https://github.com/iamnbutler/data/blob/main/asset/automator/gen-1.png?raw=true) ![](https://github.com/iamnbutler/data/blob/main/asset/automator/gen-2.png?raw=true) ![](https://github.com/iamnbutler/data/blob/main/asset/automator/gen-3.png?raw=true) ![](https://github.com/iamnbutler/data/blob/main/asset/automator/gen-4.png?raw=true) ![](https://github.com/iamnbutler/data/blob/main/asset/automator/gen-5.png?raw=true) ![](https://github.com/iamnbutler/data/blob/main/asset/automator/gen-6.png?raw=true) I'm looking forward to exploring another generative series soon, following everything I learned with this one! You can find some of the JSON import files I saved as I was exploring in the [fig-gen](https://github.com/iamnbutler/fig-gen) repo. --- [Jordan Singer](https://twitter.com/jsngr)'s [Automator](https://automator.design/) plugin is currently in closed beta. I can't wait to see what everyone is able to create once they get their hands on this!