This project implements a pixel animation effect using HTML canvas and JavaScript. It features pixelated cells that animate across the canvas, responding to mouse movements and creating dynamic visual effects.
These instructions will help you get a copy of the project up and running on your local machine.
- A modern web browser
- A code editor (e.g., Visual Studio Code, Sublime Text)
-
Clone the repository to your local machine:
git clone git@github.com:itsmepvr/Pixel-Animation.git
-
Open the
index.html
file in your preferred web browser.
- Hover your mouse over the canvas to interact with the pixelated cells.
- Experience dynamic animations and visual effects as the cells respond to mouse movements.
- Mouse interaction parameters (
this.mouse.radius
). - Canvas dimensions (
canvas.width
andcanvas.height
). - Number of cells (
this.cellWidth
andthis.cellHeight
in the Effect class). - Friction (
this.friction
). - Ease (
this.ease
). - NUMBER_OF_PIECES.
- Initial Position of peices (
this.positionX
,this.positionY
). - Randomise motion (
this.randomize
)
- Venkata Ramana P Github