{"id":13563316,"url":"https://github.com/maaslalani/draw","last_synced_at":"2025-04-04T13:13:46.474Z","repository":{"id":37763233,"uuid":"481431238","full_name":"maaslalani/draw","owner":"maaslalani","description":"Draw in your terminal","archived":false,"fork":false,"pushed_at":"2023-12-04T19:11:03.000Z","size":958,"stargazers_count":461,"open_issues_count":7,"forks_count":18,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-16T19:19:26.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/maaslalani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-14T01:48:18.000Z","updated_at":"2024-10-12T22:57:28.000Z","dependencies_parsed_at":"2022-09-01T13:22:24.899Z","dependency_job_id":"9c9f48b7-68a0-4fbd-b5c5-6a7ded207819","html_url":"https://github.com/maaslalani/draw","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Fdraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Fdraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Fdraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Fdraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maaslalani","download_url":"https://codeload.github.com/maaslalani/draw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182420,"owners_count":20897381,"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":[],"created_at":"2024-08-01T13:01:17.713Z","updated_at":"2025-04-04T13:13:46.455Z","avatar_url":"https://github.com/maaslalani.png","language":"Go","funding_links":[],"categories":["Command Line Utilities","Go","Table of Contents","\u003ca name=\"funny\"\u003e\u003c/a\u003eFunny tools"],"sub_categories":["Tools"],"readme":"# Draw\n\n`draw` is an simple drawing tool in the terminal.\nHold your mouse down and move it across the screen to draw anything you want!\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/draw.png?raw=true\" alt=\"Draw\" /\u003e\n\u003c/p\u003e\n\n### Installation\n\n```\ngo install github.com/maaslalani/draw@latest\n```\n\n### Usage\n```\ndraw\n```\n\n### Boxes\n\nDraw boxes by clicking and dragging the right mouse button, releasing the\nright mouse button will draw the box.\n\nVoila! You have a box drawn where you want it.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/boxes.png?raw=true\" alt=\"Draw Boxes\" /\u003e\n\u003c/p\u003e\n\n### Text Insertion\n\nTap the right mouse button to set an anchor for inserting text and type away!\nPress \u003ckbd\u003eESC\u003c/kbd\u003e to exit insert mode.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/text.png?raw=true\" alt=\"Insert Text\" /\u003e\n\u003c/p\u003e\n\n\n### Saving Drawings\n\n`draw` automatically saves your latest masterpiece to `/tmp/draw.txt` by\ndefault. You can change this location by setting the environment variable\n`$DRAW_FILE`.\n\n```\nexport DRAW_FILE=/path/to/draw.txt\n```\n\nTo view this drawing use `cat` or `mv` the drawing to somewhere more permanent.\nIf you already know you want to save the drawing, run `draw` with the file path\nwhere you want to save the drawing: `draw masterpiece.txt`.\n\n### Controls\n* \u003ckbd\u003ectrl+c\u003c/kbd\u003e to exit.\n* Press any key to draw with that character.\n* Press \u003ckbd\u003e1\u003c/kbd\u003e for red.\n* Press \u003ckbd\u003e2\u003c/kbd\u003e for green.\n* Press \u003ckbd\u003e3\u003c/kbd\u003e for yellow.\n* Press \u003ckbd\u003e4\u003c/kbd\u003e for blue.\n* Press \u003ckbd\u003e5\u003c/kbd\u003e for magenta.\n* Press \u003ckbd\u003e6\u003c/kbd\u003e for cyan.\n* Press \u003ckbd\u003e7\u003c/kbd\u003e for gray.\n* Press \u003ckbd\u003eAlt+0\u003c/kbd\u003e - \u003ckbd\u003eAlt+9\u003c/kbd\u003e to draw with digits.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaaslalani%2Fdraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaaslalani%2Fdraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaaslalani%2Fdraw/lists"}