Skip to content

hamzaSorani83/circular-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

circular-motion

(canvas js)

initial position in middle:

  • const mouse = { x: innerWidth / 2, y: innerHeight / 2, }

change position on mousemove:

  • addEventListener('mousemove', (event) => { mouse.x = event.clientX; mouse.y = event.clientY; })

About

canvas js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published