Coder Social home page Coder Social logo

fallingcode's Introduction

FallingCode

Introduction

Simulation of the scene of falling code on the terminal. It is generated by pure character, instead of drawing.

alt text

Dependent library

ncurses
You need to install it by yourself. If you want to use another library, just edit SysTool.cpp and makefile.

Installation

Download and execute make.

Execution

Go to the directory bin and execute one of the commands as below:

  • ./matrix.out [colorValue]. E.g. ./matrix.out 23.
  • ./matrix.out <string> [colorValue]. E.g. ./matrix.out "hello world!" 122.
    Besides, the colorValue is optional and its range is [0, 255].

Attention

Some pts-tpye remote terminal may not work as expected, the reason is that the coordinate of terminal is transformed by the pts-type remote terminal. Use local terminal in this case.

Additional...

I'd like to execute ./matrix.out because the color by default is green.

There is an issue left: I want to set a tail (with a different color) for each column, whose length is 0.3 * lengthOfColumn, but it would be a very heavy calculation (read the comment in the file Column.h) as it's about double - multiplication.
My PC is a Mac Pro with 4GB RAM and its performance is not good enough so I commented the tail part. If you have another way to add the tail without any heavy calculation, it would be appreciated if you let me know.

##hope u enjoy this ##

fallingcode's People

Contributors

gokupika avatar yveszhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.