Now that I can easily embed JavaScript on this blog, I should put here some of my experiments and weird code that does nothing, cause why not. This one is some colored Perlin noise made using p5.js, it would be pretty cool as a background for something, isn’t it?
It is quite simple using the noise
function, one the simplest things you can do with it is color = noise(x, y, time)
for each pixel on the canvas, usually you make it grayscale but this time I’m generating 3 of them for each color component (red, green, blue) with a different seed. It looks pretty cool, if you ask me.
|
|
p5.js code for the above canvas.
On that, I recommend p5.js, or its big sister Processing, if you want to learn code and do some cool artsy stuff with it, I’ve been recommending to a bunch of people lately :) If you want to learn and you’re a complete beginner, there’s a series about that on The Coding Train on YouTube.
(P.S.: Sorry if I break your computer by executing some intensive JavaScript on this post! The above image isn’t an image but the actual code running in your browser, and the whole calculation is a bit intensive, so I kept the canvas size rather small so it’s bearable on older computers like mine :))
Edit (26/11): Updated the post with code and some explanations.