P5.js Coding Challenges

This repository contains some coding challenges where the visual part was done using P5.js. Inspired by https://www.youtube.com/user/shiffman/videos.

 

Bubblesort's visualization

Page: Visual bubblesort

bubble.mp4

On each page load and after the execution is finished, the site will choose random data from some distribution, maybe shuffle it, then it will choose some basis color to color the bars, the smaller ones are colored differently.

One parameter can be set via query params:

 

Genetic Algorithm on the Traveling Salesman Problem

Page: Genetic Algorithm on the Traveling Salesman Problem

image-20200608192542640

genetic2.mp4

Some parameters can be set via query params.

You can also click anywhere on the page to pause or resume the execution.