Welcome to Playing with Polygons! An idea that has its roots in 2014 with a bug in a university project.
Between University and now I have become a Web Developer. Then in 2020 - during the Covid-19 lockdown - I finally created a little app that takes that bug to its logical extreme.
If you want to lear about the sotry, check out my blog post: Playing With Polygons - The Iceberg Story
This project in essence terms is an app that lets you create polygon art. As well as allowing you to generate gif's once you make it.
Here are some examples of what I have made with it so far:
The app is hosted on this repos Git hub pages page. just visit the link and away you go.
So the core of the project is React written in typescript. With jest & react-testing-library being used for the testing.
Context and Reducers are used heavily to deal with the state of the app.
And p5 is the canvas library that is used to draw the polygons.
If you want to fork, or clone this project here is some basic things you need to do to get things up and running.
If you have ever used create react app, its just that.
Once cloned, you can use yarn
or npm install
to install the packages.
The development environment has hot reloading. To start it use yarn start
or npm run start
which will start up the create react app development environment.
To test the project use yarn test
or npm run test
which will start the jest test suite.
Check out the Playing with Polygons twitter to see and share polygon gifs!