by Robert S. Robbi...

Crystal Lattice With Movable Unit Cell

IPFS
Crystal Lattice With Movable Unit Cell

1 December 2022TEZOSIPFS

This is an improvement of my original crystal lattice sketch. You can move the unit cell within the lattice using the keys: W = up, D = right, S = down, A = left. You could almost consider this a little game with the objective being to find a way to move the unit cell outside of the lattice. This will eventually happen because my checks for the boundary positions uses a float. JavaScript does not support precise float comparisons. The unit cell can be blue, green, or red with a randomly selected color. This sketch is meant to be interactive. Make sure you click within the canvas so your key presses are detected.

Web developer and programmer. I do a lot of experimenting with creative coding using Processing and p5.js.

10 EDITIONS

0 RESERVES

minted

1 / 10

fixed price

2 TEZ

stay ahead with our newsletter

receive news on exclusive drops, releases, product updates, and more

feedback