NaPoWriMo x NaPoGenMo 2024 Day12: Glitchy & Short Pt 2
Kofi / Illestpreacha
1 min read
Table of contents
GlitchyPoeticWhirl
For the 12th day of NaPoWriMo/NaPoGenMo 2024, I am reusing the prompt of Glitchy & Short. The Coding Languages used for this was playertdfgcvb & Hydra and then was slowed down and layered for effects.
Poem
Words That Move
Can Hit a Groove
That fills a room
Even when gloom
Video
Code
play.ertdfgcvb
/**
@author illestpreacha
@title Coordinates: x, y in poem
@desc Use of coord.x and coord.y
*/
const density = 'Words That Move \n Can Hit a Groove \n That fills a room \n Even when gloom'
export function main(coord, context, cursor, buffer) {
// Shortcuts for frame, cols and coord (x, y)
const {cols, frame } = context
const {x, y} = coord
const index = (cols + y + x * 1 + frame / Math.hypot(y/x)) % density.length
return density[index]
}
Hydra
s0.initScreen()
src(s0).scale([2.5,1,1.5,1,2.5]).out()
0
Subscribe to my newsletter
Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by