cubeascii
is a api written in Node.js with Express.js.
cubeascii
is based off of cube.c by @servetgulnaroglu
Each time you make a HTTP request, the cubeascii
api will display a frame from a 3D animation of a cube spinning in ASCII art.
In order to make an animation out of this you would need to make a HTTP GET request with cURL to https://cubeascii.netlify.app
every 0.02 seconds which is why it's recommended to automate the requests.
To run cubeascii
locally, you need to follow these instructions:
- Clone the repo
git clone https://github.com/linuxfandudeguy/cubeascii.git
- Enter the directory
cd cubeascii
- Running
node api/non_deployment_index.js
You have now successfully ran cubeascii
locally.
In order to make an animation out of this, you can simply run this command in your terminal:
while true; do
curl https://cubeascii.netlify.app/
sleep 0.02 # Adjust the sleep time as needed
done
while true; do
curl http://localhost:3000
sleep 0.02 # Adjust the sleep time as needed
done