Skip to main content

Command Palette

Search for a command to run...

MinaCoding2025_Cake

Colors as Cake Ingredients

Updated
1 min read
MinaCoding2025_Cake

Deconstructed Cake

For MinaCoding2025 Prompt 2: Cake, Deconstructed Cake is coded in LiveCodeLab and takes a deconstructed cake and uses colors that would also make up the ingredients of some cakes.

Poetry

Is It Cake?
Or is it not?
Is it sweet enough,
To be considered part of the plot?
Is it Cake,
Does it even Relate?

Video

Code

LiveCodeLab

if time % 15 < 5
    simpleGradient lavender,mintcream,lime
else if time % 15 > 10
    simpleGradient lemonchiffon,chocolate,mintcream
else
    simpleGradient orange,lime,honeydew

ambientLight
fill chocolate
noStroke()
move 0,0.15
peg
pushMatrix()
move 0,-0.54
stroke orange
peg -1.5
popMatrix()


pushMatrix()
15 times
    noStroke()
    if time % 10 > 5
        fill lemonchiffon
    else
        fill lavender
    rotate 0,0.25 * sin(time)
    move -0.2,.72,0
        peg 0.5
popMatrix()

pushMatrix()
25 times
    if time % 15 > 7
        fill orange
    else
        fill blanchedalmond
    rotate 0,0.25 * cos(time),
    move -0.2,-0.5,0
        peg 0.15, 0.9
popMatrix()

MinaCoding2025

Part 39 of 40

Submissions for MinaCoding 2025: https://minacoding.online/theme

Up next

MinaCoding2025_Circles

Starting off with Circles