January 7th, 2025

Walking Ripples

Sophia Wood explores drawing and shading circles in p5.js using random numbers for radii. She invites readers to modify her code and announces her participation in the Mathober event.

Read original articleLink Icon
Walking Ripples

Sophia Wood's recent post details her exploration of drawing and shading circles using random numbers in p5.js. She began by creating 25 random circles along a horizontal line, assigning each a random radius. The initial setup involved defining the canvas and generating the circles' positions and sizes. Wood then focused on shading the regions formed by these circles, aiming to ensure that adjacent regions did not share the same color. She experimented with counting how many circles a random point fell within, using this count to determine the shading color based on whether the count was even or odd. The post encourages readers to engage with the code and modify it to solve the shading problem. Additionally, Wood mentions her recent migration from WordPress to Ghost and shares her excitement for the upcoming Mathober event, inviting others to participate in creative mathematical projects.

- Sophia Wood is experimenting with drawing and shading circles in p5.js.

- She uses random numbers to determine the radii of the circles.

- The shading technique involves counting how many circles a point is inside to assign colors.

- Wood encourages readers to modify the code for problem-solving.

- She announces her participation in Mathober, inviting others to join in creative projects.

Link Icon 0 comments