GithubHelp home page GithubHelp logo

chicolucio / terminal-christmas-tree Goto Github PK

View Code? Open in Web Editor NEW
71.0 4.0 23.0 34 KB

A simple terminal Christmas tree made with Python

License: MIT License

Python 100.00%
christmas christmas-lights christmas-tree cli cli-app terminal terminal-app

terminal-christmas-tree's Introduction

Python Christmas Tree

tree gif

A simple CLI Christmas tree made with Python

Installation

Just clone the repository and run

$ python terminal_tree.py

More options below.

Usage

The script name is terminal_tree.py and it accepts the following syntax according to its --help:

$ python terminal_tree.py -h

usage: Python Christmas Tree by Chico Lucio from Ciencia Programada
       [-h] [-s SIZE] [-w WIDTH] [-t]

optional arguments:
  -h, --help            show this help message and exit
  -s SIZE, --size SIZE  Tree height. If even it will be subtracted 1. If less
                        than 7, considered 5. Default: 13
  -w WIDTH, --width WIDTH
                        Screen width. Used to center the tree. Default: 80
  -t, --terminal        Uses the terminal size to center the tree. -s and -w
                        will be ignored

Ctrl-C interrupts the Christmas :-(

Contributing

All contributions are welcome.

Issues

Feel free to submit issues regarding:

  • recommendations
  • more examples for the README
  • enhancement requests and new useful features
  • code bugs

Pull requests

  • before starting to work on your pull request, please submit an issue first
  • fork the repo
  • clone the project to your own machine
  • commit changes to your own branch
  • push your work back up to your fork
  • submit a pull request so that your changes can be reviewed

License

MIT, see LICENSE

Citing

If you use terminal-christmas-tree, please consider citing as

F. L. S. Bustamante, terminal-christmas-tree, 2020 - Available at: https://github.com/chicolucio/terminal-christmas-tree

terminal-christmas-tree's People

Contributors

chicolucio 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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terminal-christmas-tree's Issues

Some ideas

  • From functional to OOP
    • create a class Tree initialized with height and screen_size with the current default values
    • boolean parameters balls, color and lights all True by default when instantiated

That way the user could create Tree's with or without balls, colors and random lights instantiating the parameters with True (default) or False. The functions from the current version of the project would be methods of Tree changing the default tree according to the __init__ parameters.

The CLI would have arguments related to balls (-b), color (-c) and lights (-l) so that these could be changed.

  • user custom symbols to balls and stars
  • user can change the time interval
  • the main star can be changed to ๐Ÿ with -p / --pythonsnake command line argument
  • Make it snow! โ„ โ… โ† โ‰ โŠ

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.