A single cube that transforms itself into a big cube, written in JavaScript using P5JS.
This is a continuation of my ShiftingCubes Project!
It uses the same codebase.
There are several settings giving you full control over the cube:
//Rotate the cubes when transforming
const rotateCubes = false;
//Size of the cubes
const cubeSize = 60;
//Distance between cubes
const cubeDist = 0.0001;
const delta = cubeSize + cubeDist;
//Length in cubes of one side (e.g. '5' will produce a 5 x 5 x 5 cube)
const cubeNum = 5;
The one coolest setting is this one:
//Rotate the cubes when transforming
const rotateCubes = false;
If you set it to 'false' you'll get this animation:
Set it to 'true' to get this:
Enjoy!