Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 516 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 516 Bytes

grid-lines

Interactive canvas animation of lines moving on a grid next to the user cursor.

Config

const config = {
	backgroundColor: "white",
	gridColor: "grey",
	linesColor: ["blue", "#FF5733", "#581845"],
	speed: 10,
	lineLength: 110,
};

const canvas = document.querySelector("canvas");
new GridLines(canvas, config);



Original idea from Robert Coopercode - Animated Grid Line