p5js

06
Jan
Code for Two-Button Calculator

Code for Two-Button Calculator

A two-button calculator can only perform two operations (like multiply by two and add five). The Global Math Project is a wonderful resource for math learning and play and has a great resource for two-button problems in this Global Math Project PDF. Another variation of this sort of problem is done
1 min read
29
Dec
Blue Flames

Blue Flames

This code was generated by playing around with one of the p5.js examples. It translates and rotates using parametric equations each frame. Codepen is below (it may not run well on some machines). See the Pen blueFlame by Sophia (@fractalkitty) on CodePen.
1 min read
20
Dec
Transformed Magic Squares

Transformed Magic Squares

I got a request from a twitter friend (Sara Resvi) to create a visual for transforming magic squares. A learner can see how one solution is many (or vice versa). Here is what I put together in an afternoon. Click the numbers to change them. Try to find solutions where the rows, columns and diagonals
1 min read
16
Dec
Parametric Waves Morphed into Unstable Charcoal

Parametric Waves Morphed into Unstable Charcoal

Have you ever wished that you had charcoal that is made of particles that randomly leave and come back? Wish the reference frame would rotate so down is up, but not always? Well now you have what you have always wanted – Unstable Charcoal! I created this after playing with a parametric wave visualiz
1 min read
10
Dec
Laced Reflections

Laced Reflections

My mind was on snowflakes tonight, which brought me down a rabbit hole of reflections, lace, and play. The code here is simple but fun. Enjoy making snowflakes, lace, stars, or whatever comes to mind. If you wish to fork the code or play it is here. My CodePen is below. Press the spacebar (or […]
1 min read
24
Nov
Code of the Rings

Code of the Rings

While tinkering with my tree ring code, I created a simpler yet mesmerizing adaptation. Essentially I added a loop, some random multipliers, and changed to radian mode. Sine and cosine are so incredibly beautiful and full of infinite play and wonder. Please play with the code below by clicking to ch
1 min read
22
Nov
Goodbye Red Oak

Goodbye Red Oak

I often run for mental downtime and stress-relief. On a recent run, I found one of my favorite trees blown over. This tree grew in a cemetery with broad branches and roots consuming the neighboring headstones. This red oak had brought me so much joy. Before I could get to the stump, the park had […]
1 min read
17
Nov
Foggy Orbits

Foggy Orbits

After covering the unit circle today, I created Foggy Orbits as a quick sketch. Below is the CodePen and above is a GIF. I hope to add this to pre-calc activities with parametric equations eventually. See the Pen jOrJezv by Sophia (@fractalkitty) on CodePen.
1 min read
13
Nov
Swirled Series Challenge

Swirled Series Challenge

I decided to join Craig S. Kaplan’s Swirled Series Challenge. I played the last two nights and have some draft GIFs below. I don’t have a ton of time, but it’s stuff like this that relaxes me at night. I look forward to seeing what people come up with. I still need to export a […]
1 min read
31
Oct
Mod Fibonacci

Mod Fibonacci

Finite Melodies for an Infinite Sequence A few years ago I asked myself how I could play the Fibonacci sequence on the piano. I found that if I divided the Fibonacci sequence by the number of keys I wished to play, I got a set of numbers that would infinitely repeat. I tested this observation […]
1 min read

Want to become a better programmer? Join the Recurse Center!

Sophia

Mathematics educator and creative coder exploring the beauty of mathematical concepts through interactive visualizations and playful learning.

Mathematics

Education

Creative Coding