Skip to content

Simple animation using Canvas API for random points generated with Javascript

Notifications You must be signed in to change notification settings

medjabri1/random-points-canvas-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Random points canvas

Simple example of animating points objects in Javascript using the canvas API.

The points are generated with different movement speed and different size using the Math.Random() method.

This code will make the points bounce back after exceeding the edges of the canvas with certain amount of space.

And we have also control over showing either the points moving or only the lines connecting them or both of them.

Live Preview

About

Simple animation using Canvas API for random points generated with Javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published