one of my first js projects. a port of a college graphics project to canvas