{"id":22669017,"url":"https://github.com/bloiseleo/leagueofascii","last_synced_at":"2025-07-05T20:02:13.143Z","repository":{"id":265488960,"uuid":"896024979","full_name":"bloiseleo/LeagueOfASCII","owner":"bloiseleo","description":"Render your favorite champion inside your terminal :D","archived":false,"fork":false,"pushed_at":"2024-12-04T00:44:55.000Z","size":7566,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T09:33:27.600Z","etag":null,"topics":["golang","image-processing","league-of-legends","leagueoflegends"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bloiseleo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-29T11:50:36.000Z","updated_at":"2024-12-09T21:55:48.000Z","dependencies_parsed_at":"2024-11-29T16:20:37.662Z","dependency_job_id":"1475c5cd-bd10-4ac0-9c4b-f69771791c50","html_url":"https://github.com/bloiseleo/LeagueOfASCII","commit_stats":null,"previous_names":["bloiseleo/leagueofascii"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloiseleo%2FLeagueOfASCII","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloiseleo%2FLeagueOfASCII/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloiseleo%2FLeagueOfASCII/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloiseleo%2FLeagueOfASCII/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloiseleo","download_url":"https://codeload.github.com/bloiseleo/LeagueOfASCII/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174468,"owners_count":20735409,"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":["golang","image-processing","league-of-legends","leagueoflegends"],"created_at":"2024-12-09T15:17:58.408Z","updated_at":"2025-03-29T10:44:05.704Z","avatar_url":"https://github.com/bloiseleo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/poro.png\" width=\"300\" height=\"300\"\u003e\n\u003c/p\u003e\n\u003cp\u003e\n    \u003ch3 align=\"center\"\u003eLeague of ASCII\u003c/h3\u003e\n    \u003cp align=\"center\"\u003eLeague of Legends CLI Artist\u003c/p\u003e\n\u003c/p\u003e\n\n## Getting Started\n\nAfter cloning the repository with `git clone`, you can build the project using `go build .` and the executable file will be created. \n\nOpening your terminal and executing it, you will get the following response:\n```\nLeagueOfASCII - Welcome to League Of Asc II\nCommands: \n- render: renderize a champion insde the terminal in format ASCII\n\nUsage: /path/to/your/folder/leagueofascii.exe \u003ccommand\u003e --flags\n```\n## Commands\n### Render\nThis command will render, by default, the champion's slpash art inside your terminal using ASCII characters. If you execute `leagueofascii[.exe] render`, you will get:\n```\nRender, by default, the SplashScreen of the champion\nUsage of render:\n  -champion string\n        Name of the champion to create the ART\n  -height int\n        New Height\n  -help\n        Help about render command\n  -resize\n        Resize the image before rendering\n  -square\n        Gets the Square Asset of the Champion\n  -width int\n        New Width\nExecution time: 518.7µs\n```\nFor example, the following command `leagueofascii render --champion Akali` renders Akali's Splash Screen. If the image is too big, it won't fit inside your terminal. But, if you want to resize it to be smaller, you can do the following `leagueofascii render --champion Akali --resize --width 90 --height 50`\n\nIf you want to get the square of the champion, you can also do `leagueofascii render --champion Akali --resize --width 90 --height 50 --square`. It will provide you with a smaller version of the champion.\n### Render Color\nIf you want to render the image with colors, you can use the `--color` flag. It'll render the entire image with all the colors.\n## Features \n### Negative Effect\nIf you want to create a negative image, you could do the following below:\n\n```go\npackage main\n\nimport (\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii\"\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii/helpers\"\n)\n\nfunc main() {\n\timg, err := helpers.ReadJpg(\"./assets/poro.jpg\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\terr = leagueofascii.GenerateNegativeImage(img, \"./results/poro_negated.jpg\", leagueofascii.Best_Quality)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n### Graysacle Effect\nIf you want some shades of gray, you could do the following below:\n```go\npackage main\n\nimport (\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii\"\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii/helpers\"\n)\n\nfunc main() {\n\timg, err := helpers.ReadJpg(\"./assets/poro.jpg\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\terr = leagueofascii.GrayScale(img, \"./results/poro_grayscale.jpg\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n\n```\n### Image to ASCII\nIf you want to transform your image to an ASCII art, you could do the following below:\n```go\npackage main\n\nimport (\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii\"\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii/helpers\"\n)\n\nfunc main() {\n\timg, err := helpers.ReadJpg(\"./assets/poro_videogame.jpeg\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tart := leagueofascii.CreateAscII(img)\n\tart.Render()\n}\n\n```\nBesides, you can also resize the image and create an ASCII art.\n```go\npackage main\n\nimport (\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii\"\n\t\"github.com/bloiseleo/leagueofascii/leagueofascii/helpers\"\n)\n\nfunc main() {\n\timg, err := helpers.ReadJpg(\"./assets/poro_videogame.jpeg\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tart := leagueofascii.CreateAscIIAndResize(img, 100, 100)\n\tart.Render()\n}\n```\n## Useful Links\n- [What are Premultiplied Alpha colors?](https://shawnhargreaves.com/blog/premultiplied-alpha.html)\n- [How to manipulate an image?](https://medium.com/@shubham0473/from-pixels-to-pictures-a-guide-to-image-manipulation-in-java-3647cac29ca3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloiseleo%2Fleagueofascii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloiseleo%2Fleagueofascii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloiseleo%2Fleagueofascii/lists"}