A *very* soothing animation and 1k cycle special details
h
RohilPatel (1181)

Hey there, I just started using p5.js.

I'm going to make a game, which I have decided will be my 1k special. I will then kick off with a third generation of ClearCode.tk, which I'm sure you are all going to like (repl will have a competitor lol).

Ok, this project basically takes a drag click, and you see some yummy colors. Thought this was satisfying

Anyways, see you with the game!

Upvote if u liked

YOU NEED TO DRAG CLICK ON COMPUTER, TAP CLICK DRAG ON MOBILE FOR THIS TO WORK

Oh yeah:

Works like sketchbook lol

You are viewing a single comment. View All
RahulChoubey1 (20)

A border surrounding the canvas element would help, along with some others.

RahulChoubey1 (20)

Not to sound like an expert

RohilPatel (1181)

Although there is no canvas element 🙄 lol @RahulChoubey1

RahulChoubey1 (20)

@RohilPatel there is a createCanvas in the JS

RohilPatel (1181)

No actual canvas element however. It might be there in the actual html, idk @RahulChoubey1

fuzzyastrocat (672)

@RohilPatel When you call createCanvas, p5js creates a canvas element and returns that. So you could say const canvas = createCanvas(windowWidth, windowHeight); canvas.elt.style.border = "blah"; etc.