MinaCoding2026_RandomCircles
Circles into Hexagons
Updated
•2 min read
TransformingCircles
For #MinaCoding2026 Day 29: Random & Day 1: Circles, TransformingCircles is a L5Lua Coded Visual Poem of Circles Transformation.
Poem
Circles Moving
Moving Circles
In their own journey
Through their own obstacles and hurdles
These circles are moving
Some are slow and some are in a Hurry
Video
L5 Code
require ("L5")
function setup()
size(750, 1000)
block = height / 40
describe("A Representation of Circles Roaming")
end
function draw()
--Line Coloring & Background change
if second() % 12 < 3 then
if second() % 2 == 0 then
stroke('gold')
fill('green')
background('white')
else
stroke('green')
fill('white')
background('black')
end
elseif second() % 12 > 9 then
if second() % 2 == 0 then
stroke('blue')
fill('orange')
background('gold')
else
stroke('black')
fill('lime')
background('white')
end
else
stroke('orange')
if second() % 2 == 0 then
background('black')
else
background('teal')
end
end
--Thickness and Speed Alteration through second instead of while loop
frameRate((second()%20 + 9)/3)
strokeWeight((second()%6+1)*2)
block = floor(random(10,140))
block2 = sin(floor(random(5,10)))
-- Turn the rainy Season to a Circle Rolling
for y = 1, height, block do
for x = 1, width, block do
if second() % 8 < 5 then
if random() < 0.5 then
circle(x,y*block2 + random(-1,2), block/4)
else
circle(x,y, (block/4)/random(-2,2))
point(x + block + noise(2),y + block + noise(3)) -- changed from line to point
end
else
if random() < 0.5 then
circle(x,y, (block/10)/random(-3,3))
else
circle(x*2,(y*2)-random(-3,3), (block/10)/random(-2,2)) -- changed from line to point
end
end
end
end
end



