So for my midterm, I want to create some form of art and use Machine Learning. I want to have a visualisation of biology. I want to show a flower and have it keep being zoomed in to the atomic level. I want to use the ML model to detect the pinching motion, and this would trigger the page change.
index.html -> leaf.html -> cell.html -> atom.html
Firstly, I wanted to focus on the ML model and have the motion be detected. I used the ‘Hand Pose Detection with ml5.js’ video from the coding train as a foundation. I changed the parameters just to detect the right hand index finger and thumb.
Currently, I have incredibly basic images for the 4 pages and I will work on making them more aesthetic. The last page has OOP principles from the several atoms and the spinning electrons.
I also want to add some sort of noise to the first 3 images to represent what environment you could find them in. I am also thinking of making the transition between them represent some sort of medium between the 2 images.
class Atom {
constructor(x, y, rotationSpeed = 0.02, innerOrbitRadius = 40, outerOrbitRadius = 60) {
this.x = x;
this.y = y;
this.rotationSpeed = rotationSpeed;
this.innerOrbitRadius = innerOrbitRadius;
this.outerOrbitRadius = outerOrbitRadius;
this.rotation = 0;
this.nucleusSize = 20;
this.electronSize = 8;
this.outerElectronSize = 6;
}




