Giter Club home page Giter Club logo

c_ube's Introduction

c_ube

a spinning cube implementation written in C

Demo

demo

installation / compilation

ensure you have make installed - fairly certain this project is compatible with windows but no promises ;)

run make and you can run, rename or move bin-c_ube.out into /usr/bin/

alternatively, binaries are included in releases here (HIGHLY RECCOMENDED TO USE THE RELEASES VERSION INSTEAD) or in the repo itself here

command line flags

* CLI ARGUMENTS
*   --colour        / -c colour (0-256)                                 default: 232 (black)
*   --size          / -S dictates the size (length side) of the cube    default: shortest terminal dimension / 2
*   --terminal_x    / -X dictates the size of the terminal (x)          default: autodetected
*   --terminal_y    / -Y dictates the size of the terminal (y)          default: autodetected
*   --terminal_z    / -Z dictates the size of the terminal (z)          default: autodetected
*   --speed         / -s terminal refresh rate (frames/sec)             default: 60
*   -x              / -x x rotation angle amount                        default: 0.1
*   -y              / -y y rotation angle amount                        default: 0.2
*   -z              / -z z rotation angle amount                        default: 0.3

todos

Currently working on:

  • create file structure
  • readin user input and put into function
  • start parsing and assigning arguments
  • create auto assignment for uninputted args
  • update auto assignment to include terminal sizes for both win/linux
  • create cube vertices
  • convert cube_vertices to triangles
  • Render triangles
  • Rotate triangles
  • frame rate sleep things
  • shorthand flags
  • have triangles display different characters based off cube face
  • support depth shading (not that feasible anymore...) nvm i did it lol

c_ube's People

Contributors

suwuako avatar chocorho avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

chocorho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.