# p5.js - toasters rocks

## p5.js

## ecco the dolphin

Let's recreate this weird effect from Ecco the Dolphin.

November 29, 2019
#Experiments #p5.js
~6 minutes

// Ecco effect v2 by juju2143 // based on original code by foone // https://github.com/foone/ecco-distortion-effect // Licenced under GPL3 var shifts = "gDkZcB510pQ:3pSf]4oLh\41pS;nWd_@lYcB5oT;nJ82pSfCkH7nVmWe^aA5110pO9nKh\bAlYdCkG7oL8nVe^a`@5oL82pSf\lXd^?lX=3oM9nV4oL9nVe^a`@"; function preload() { img = loadImage('/images/2019/11/background.png'); } function setup() { var c = createCanvas(320, 224); c.parent('sketch-holder'); } function draw() { for (var i = 0; i Welcome to the second installment of my code experiments! This time we’re gonna look into the weird effect used in the background of messages in Ecco the Dolphin for the Sega Genesis (or MegaDrive, if you’re asking someone outside the Americas).

Read More...

## trippy perlin noise

Warning: contains some intensive JavaScript that might break your computer

November 25, 2019
#Experiments #p5.js
~2 minutes

function setup() { var c = createCanvas(256, 256); c.parent('sketch-holder'); background(0); } function draw() { var n = 0; var z = 1; var speed = 0.005; noiseDetail(8, 0.65); loadPixels(); for(a=0; a 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.

Read More...