# coding

## Laser Pointer Googly Eyes

I am glad I can amuse myself. This is a simple script that I may integrate into an Algebra class for looking at points on a line. If you want a webpage version for students, click here. If you want code, see below. Click to make more eyes, and you might get freaked out if …

## Fractal Ink to Code

After drawing the fractal prompt today for Mathober, I played around to make it in p5js. Below is the Codepen to play with. I almost feel like it should have a surprise when they align…maybe for another day. See the Pen fractal_Mathober by Sophia (@fractalkitty) on CodePen.

## Lune of Hippocrates Clock

After drawing the Lune of Hippocrates yesterday for Mathober, I played around to make a Lune clock today. Below is codepen (p5 is here). I use a lot of these small projects for students to play with in an hour of code group. This one may not be as popular as projecting memes and cats …

## Fantasy Maps to Planets

For those that have created fantasy maps using previous posts here, in classes, or elsewhere in Worldbuilding, D&D, or art, I created a small script to see your maps as spherical planets. You can click to rotate and move the mouse off the canvas to have rotation. You may want to draw a map that …

## Random Math Poetry

I think the challenge here is to find the math that can fit the poetry… If you want a browser tab version, click here. You can also edit it and change the words as well. Below is the codepen: See the Pen OJNKQmE by Sophia (@fractalkitty) on CodePen.

## Parametric Play!

Here are some simple animations with parametric equations. What you see below is a function and its inverse. If you click, you will get another semi-random equation. See the Pen qBZgZvW by Sophia (@fractalkitty) on CodePen.

## Parallel to a Parabola

I received a question today about what curve is parallel to a parabola. I sat for a minute and realized that it wasn’t another parabola. It required parametric equations (at least if you wanted to keep it simple). That of course lead to code: See the Pen jOqzMJb by Sophia (@fractalkitty) on CodePen. The parametric …

## Moiré Play!

Moiré is an interference pattern that can occur in physics, photography, art, math, and more. As a photographer and mathematician, I have always enjoyed seeing these artifacts emerge. Today I played with some Moiré animation for fun in p5.js. See the Pen Moire_Play by Sophia (@fractalkitty) on CodePen. After playing, I of course googled Numberphile …

## Week 49: Pendulum Labs

Pendulums are wonderful physics toys that are great for exploring periodic functions. For week 49, I encourage learners to get out some string, weights, and stop watches. Here are some ideas for playing with math and pendulums: Start with a string and a weight to observe basic pendulum motion. Nuts, bolts, tennis balls, and other …

## Rotating Hexagons

This is a p5.js script I started played with as I get ready to post about stop animation in my 52 weeks of hands-on-math. Here is a link to edit code. You may want to play with the angles, number of sides in the polygon, rotation rate, etc. If the javascript isn’t loading, then here …