Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

jehna/AsciiCube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

ASCII Cube

A simple ASCII-rendered rotating cube

This demo generates a simple rotationg 3d-cube that is rendered with ASCII characters inside a <pre> tag.

Example

You can find an example at a local tilde.club server:

http://palvelin.club/~jehna/

Here's an example output of the script: example image

Additional info

Here are a few details:

  • This scipt is 100% independent, does not require any graphic libraries to run
  • Lines are drawn with an improved Bresenham's line algorithm
  • The "canvas" scales with the browser's widow, always centering the cube on refresh
  • The script is mobile-friendly and runs well with iPhone
  • There's an additional function for creating the attribution link at the end

Contributions

Contributions are warmly welcome via pull requests.

Please open an issue beforehand and use feature branches.

License

The work is licensed under MIT license

About

A simple rotating ASCII Cube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published