MinaCoding2026_Rainy2
L5 Making it Rain
Updated
•2 min read
RainyLines2
For MinaCoding2026 Day 12: Rainy, RainyLines2 is a L5 Coded Visual Poem sketch of a rainy day. It Remixes 10Print L5 Examples.
Poetry
Rainy Days, Rainy Lines
As sometimes
The Sun attempts to shine
But has to wait till it’s next rise
Video
Code
//Remix of https://l5lua.org/examples/10print/
require ("L5")
function setup()
size(750, 1000)
block = height / 40
describe("A Representation of the Rain")
end
function draw()
--Line Coloring & Background change
if second() % 12 < 3 then
if second() % 2 == 0 then
stroke('gold')
background('white')
else
stroke('green')
background('black')
end
elseif second() % 12 > 9 then
if second() % 2 == 0 then
stroke('blue')
background('gold')
else
stroke('black')
background('white')
end
else
stroke('white')
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))
-- Turn the code from the maze into a rainy season
for y = 1, height, block do
for x = 1, width, block do
if second() % 8 < 5 then
if random() < 0.5 then
line(x, y, x + block + noise(2), y + block + noise(3))
else
point(x + block + noise(2),y + block + noise(3)) -- changed from line to point
end
else
if random() < 0.5 then
line(x, y, x - block +random(), y - block + random())
else
point(x - block,y - block) -- changed from line to point
end
end
end
end
end



