The dots are created by a simple algorithm that creates a random number of dots, utilising the random walk algorithm which I learned from The Coding Train

An interesting aspect of Dots is the randomness in which the canvas is filled. Sometimes, the whole canvas is touched and other times only half or three quarter of the canvas is touched

Dots gave me a chance to experiment with canvas bounds. If the random walk algorithm attempts to leave the canvas, the dot is not drawn and the algorithm instead moves in the opposite direction

<100 subscribers
No comments yet