A fun rust terminal program so you can make Christmas trees!

Overview

Xmastree 2021

A fun christmas tree where you can add ornaments! Then, you can export the file into either:

  • a rust file
  • a txt file

About

Taking a break from coding big projects

Screenshots

Tree Repl: https://replit.com/@Coder100/XMASTREE2021-Generate-cool-christmas-trees

Github: https://github.com/cursorweb/xmastree-2021

Youtube: https://youtu.be/EtKOtUh3Oz4

Usage

xmastree.exe -t "tree.txt" -b 5 -o "tree.rs" -ot rs
  • -t/tree The tree file to use

  • -b/base How many lines from the last line is the base of the tree

    For example the default tree has a base length of 5.

    Defaults to 0

  • -o/output The file to output to, e.g. main.rs xmas.txt

    Without this, it will be tree.out

  • -f/type The output type, can be the following:

    • rs/rust - An rs file that literally prints the tree (does use the colorful module)
    • txt/text - A plaintext file of the resulting tree, all colors will be lost.
    • o/none - It will only be printed to the terminal! (optional)

    The tree will always print into the terminal!

Movement

The X marker indicates your cursor.

Use the arrow keys to move the cursor! It is colored based on the selected color.

Use e to go the previous color and use r to go to the next color.

Press enter to place the ornament down.

Press esc to remove an ornament the marker is on.

Press ` to reset the entire tree.

When you are done, press q to generate the tree!

Credits

@KumaPaul for getting this to work on replit!

You might also like...
A simple program for C program IO testing. Written in Rust

A simple program for C program IO testing. Written in Rust, using concurrency to speed up valgrind testing. Make sure to update settings at your first run of the program!

The application that can be used for personal usage to manage jira from terminal.

Jira Terminal This application can be used for personal usage to manage jira from terminal. Installation This application can be used in multiple plat

A little program written in Rust that prints random PNG images to the terminal in text grabbed from an image repo.

Cermic A little program written in Rust that prints random PNG images to the terminal in text grabbed from an image repo. NOTE: As of right now, Cermi

Store your transfer.sh links, so you can remember them later and know when they will expire, but now written in Rust.

Transfer.sh helper Rusted The idea of the script is to store your transfer.sh links and simplify its usage, so you can remember them later and know wh

F-Fetch targets low systems. Written in Rust. It's very simple, designed so you can pick it up and replace it.

F-Fetch F-Fetch targets low systems. Written in Rust. It's very simple, designed so you can pick it up and replace it. First Look ~/.config/ffetch/con

A simple program to show a histogram on the terminal.

A simple program to show a histogram on the terminal.

Cross-platform terminal program to download IEEE journals
Cross-platform terminal program to download IEEE journals

IEEE Journal Downloader A cross-platform terminal program which tries to download every article in a specified journal and merge the documents into on

A terminal-based companion program for ComfyUI.

Yara Yara is a companion tool for ComfyUI, based in the terminal. It can: Pause queue generations by saving/loading them to files Cancel queued genera

A CLI tool which can help you automatically kill process of your choice. Useful for freeing up memory and CPU usage!
A CLI tool which can help you automatically kill process of your choice. Useful for freeing up memory and CPU usage!

Quickiller There are always programs such as chrome that keep eating up your resources even when closed! The only way to prevent this is to kill all o

Owner
Junhao "Jerry" Zhang
Creator of @CursorwebGames, and @europalang.
Junhao
My own image file format created for fun! Install the "hif_opener.exe" to open hif files. clone the repo and compile to make your own hif file

Why am i creating this? I wanted to create my own image format since I was 12 years old using Windows 7, tryna modify GTA San Andreas. That day, when

hiftie 3 Dec 17, 2023
a simple program that you can scrap, is shit and really simple but is cool.

if you want to run it you need to have installed curl by default scrap youtube, but you can change it, also change the number of threads and run: carg

pai 7 Oct 15, 2021
That program use on platform windows. And if you write any text on uncorrect keyboard layout, that program for that.

?? This program is designed to translate text into the correct layout when typing is incorrect. ?? Example ghbdtn -> привет Just (by default) pressing

Gest Se 5 Jan 26, 2023
ask.sh: AI terminal assistant that can read and write your terminal directly!

ask.sh: AI terminal assistant that read from & write to your terminal ask.sh is an AI terminal assistant based on OpenAI APIs such as GPT-3.5/4! What'

hmirin 5 Jun 20, 2023
Build Abstract Syntax Trees and tree-walking models quickly in Rust.

astmaker Build Abstract Syntax Trees and tree-walking models quickly in Rust. Example This example creates an AST for simple math expressions, and an

David Delassus 100 Jun 5, 2023
Traversal of tree-sitter Trees and any arbitrary tree with a TreeCursor-like interface

tree-sitter-traversal Traversal of tree-sitter Trees and any arbitrary tree with a TreeCursor-like interface. Using cursors, iteration over the tree c

Sebastian Mendez 12 Jan 8, 2023
Memory usage monitor for process trees

gotta-watch-em-all Executes a process with given arguments and monitors, logs when memory usage grows to a new peak. Example: cargo run -- cargo -- bu

Aaron Friel 8 Dec 8, 2022
A simple CLI I made while practicing rust to easily make QR codes with just one command, all in your terminal.

Welcome to rust-qrcode-cli ?? A CLI I made while practicing rust to easily make QR codes with just one command, all in your terminal. Install git clon

Dhravya Shah 2 Mar 2, 2022
Workflows make it easy to browse, search, execute and share commands (or a series of commands)--without needing to leave your terminal.

Workflows The repo for all public Workflows that appear within Warp and within commands.dev. To learn how to create local or repository workflows, see

Warp 369 Jan 2, 2023
Workflows make it easy to browse, search, execute and share commands (or a series of commands)--without needing to leave your terminal.

Workflows The repo for all public Workflows that appear within Warp and within commands.dev. To learn how to create local or repository workflows, see

Warp 227 Jun 1, 2022