{"id":27402954,"url":"https://github.com/k1ngmar/fadey","last_synced_at":"2025-04-14T04:46:32.268Z","repository":{"id":45885927,"uuid":"427665110","full_name":"K1ngmar/Fadey","owner":"K1ngmar","description":"✨ Your best friend when it comes to making your output beautiful ✨","archived":false,"fork":false,"pushed_at":"2021-11-29T20:42:14.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T21:50:05.500Z","etag":null,"topics":["colors","fadey","output"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/K1ngmar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-13T12:57:43.000Z","updated_at":"2021-11-29T20:42:17.000Z","dependencies_parsed_at":"2022-09-10T22:23:10.694Z","dependency_job_id":null,"html_url":"https://github.com/K1ngmar/Fadey","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1ngmar%2FFadey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1ngmar%2FFadey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1ngmar%2FFadey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1ngmar%2FFadey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/K1ngmar","download_url":"https://codeload.github.com/K1ngmar/Fadey/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824667,"owners_count":21167343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colors","fadey","output"],"created_at":"2025-04-14T04:46:27.900Z","updated_at":"2025-04-14T04:46:32.262Z","avatar_url":"https://github.com/K1ngmar.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Really cool fadey banner\" src=\"./img/fadey.png\" /\u003e\n\u003c/p\u003e\n\n# 🌈 Fadey\n#### ✨ Your best friend when it comes to making your output beautiful ✨\n\n# 📦 Content:\n* [About](#-about)\n* [Requirements](#-requirements)\n* [Installation](#%EF%B8%8F-installation)\n* [Features](#-features)\n* [Performance](#%EF%B8%8F-performance)\n* [Shoutout](#-shoutout)\n\n# 📝 About:\n\nFadey will make your output into rainbows °˖✧◝(⁰▿⁰)◜✧˖°\n\n# 📋 Requirements:\nThis project uses **ANSI 256 colors module**\n```bash\n# install ansi 256 color module:\n$ npm install --save ansi-256-colors\n```\n\n# ⚙️ Installation:\n```bash\n# Clone:\n$ git clone https://github.com/K1ngmar/Fadey.git\n\n# Compile:\n$ make -C Fadey/\n```\n\u003eBy running **MAKE** in this repository it will create a *static* library called `libfadey.a`.  \n\u003eThe header is located at `{install_dir}/Fadey/includes/fadey.hpp`\n```text\n/Fadey/\n├── includes/\n│   └── fadey.hpp\n├── libfadey.a\n├── Makefile\n└── ...\n```\n\n# ✅ Features:\n\n\u003e Everything is in the namespace `km`  \n\u003e Be aware that Fadey calls `srand(time(NULL));` once before main gets called!\n\n* A global named `fadey` with `std::cout` as output stream\n\n* The fade will continue across calls if auto reset is set to `false`\n  ```c++\n  // example:\n  for (size_t i = 0; i \u003c 42; i++)\n    km::fadey \u003c\u003c \"The fade continues across calls :O\" \u003c\u003c std::endl;\n  ```\n  \u003e note that if you have a lot of difference in `line length` it will work best if you pass them as a *single* string\n  \u003cimg alt=\"Really cool fadey banner\" src=\"./img/fade across calls.png\" style=\"float:right;height:85px;\" /\u003e\n\n* A constructor with auto reset turned `off` by default and an output stream set to `std::cout` by default\n  ```c++\n  // prototype:\n  Fadey(bool auto_reset = false, std::ostream\u0026 stream = std::cout);\n  ```\n\n* Fade pattern starts at a random position by default\n\n* Fadify function, that will turn your string into a rainbow\n  ```c++\n  // prototype:\n  std::string fadify(std::string to_fade);\n\n  // used like:\n  std::string faded = km::fadey.fadify(\"I am about to get faded\");\n  ```\n\n* An output stream for strings that will fadify the string ánd write it to stream\n  ```c++\n  // prototype:\n  std::ostream\u0026 operator \u003c\u003c (Fadey\u0026, std::string);\n  \n  // used like:\n  km::fadey \u003c\u003c \"This is going to be faded :D\" \u003c\u003c std::endl;\n  ```\n\n* An `auto reset` feature which will reset the fade patern to its original state every time \n\n  * A function to turn auto reset `on` and/or `off`\n    ```c++\n    // prototype:\n    void\tset_auto_reset(bool auto_reset);\n\n    // used like:\n    km::fadey.set_auto_reset(true);  // turn auto reset on\n    km::fadey.set_auto_reset(false); // turn auto reset off\n    ````\n\n  * Toggle auto reset\n    ```c++\n    // prototype:\n    void  toggle_auto_reset(void);\n\n    // used like:\n    km::fadey.toggle_auto_reset();\n    ```\n    \u003e note that if you turn auto reset `on` the fade pattern will instantly be reset to its starting state\n  \n*  New seed\n    ```c++\n    // prototype:\n    void\tnew_seed();\n\n    // used like:\n    km::fadey.new_seed();\n    ```\n    \u003e note that this will not call `srand();`\n\n\n# ❗️ Performance:\n\u003e Currently Fadey is very slow, I would **NOT** recommend using it if speed is important\n\n# 💖 Shoutout:\nBig love to the boys:\n* [@juvan-de](https://github.com/juvan-de)\n* [@Tishj](https://github.com/Tishj)\n* [@Alpha1337k](https://github.com/Alpha1337k)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1ngmar%2Ffadey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1ngmar%2Ffadey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1ngmar%2Ffadey/lists"}