{"id":23092543,"url":"https://github.com/setghm/cmdpaint","last_synced_at":"2025-10-24T02:17:51.067Z","repository":{"id":242635999,"uuid":"810111468","full_name":"setghm/CMDPaint","owner":"setghm","description":"Tool for create images or sprites for windows console games.","archived":false,"fork":false,"pushed_at":"2025-02-22T20:00:14.000Z","size":202,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T21:17:57.844Z","etag":null,"topics":["cmd","console-games","cpp","paint-application","windows-cmd","windows-console-game"],"latest_commit_sha":null,"homepage":"https://setghm.itch.io/cmdpaint","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setghm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06-04T04:24:42.000Z","updated_at":"2025-02-22T20:22:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"40ccbce9-c572-47a5-8d3c-e07a69519933","html_url":"https://github.com/setghm/CMDPaint","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"34fede80341665cb7d4eba4d19399a452e1849e6"},"previous_names":["setghm/pixelpaint","setghm/cmdpaint"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setghm%2FCMDPaint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setghm%2FCMDPaint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setghm%2FCMDPaint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setghm%2FCMDPaint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setghm","download_url":"https://codeload.github.com/setghm/CMDPaint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247055456,"owners_count":20876194,"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":["cmd","console-games","cpp","paint-application","windows-cmd","windows-console-game"],"created_at":"2024-12-16T21:34:28.215Z","updated_at":"2025-10-24T02:17:50.983Z","avatar_url":"https://github.com/setghm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CMDPaint\n\n_by setghm_\n\nCMDPaint is a Windows console (CMD) application designed to facilitate the creation of color arrays for the creation of color video games that run on the command line.\n\nThe application is designed to be very simple, you can load files and open already created files.\n\nThe editor has 4 tools: The **pencil**, the **paint bucket**, the **color picker** and the **grid**.\n\n## Examples\n\n\u003cdiv style=\"display:flex; gap: 10px\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/89e0e7a2-5de3-4cb6-817b-92187921f875\" width=\"350\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/6ca0b232-44e2-42c7-a045-37c57465db63\" width=\"350\"\u003e\n\u003c/div\u003e\n\u003cdiv style=\"display:flex; gap: 10px\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/b54de81a-3cbd-4742-bde4-6dd02f8846bc\" width=\"350\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/3a082ac8-f4c4-4f14-83b7-fb6fbf5a592f\" width=\"350\"\u003e\n\u003c/div\u003e\n\nYou can test the application with these sample files located at `/examples` folder.\n\n## Output files\n\nThe output files have the extension `.bytecolor` which means that they are simple color arrays accepted by the Windows console.\n\nThe format is as follows:\n\n- The first 32 bits are used to store the width of the image (unsigned integer).\n- The next 32 bits are used to store the height of the image (unsigned integer).\n- All other bytes are Windows console colors.\n\n\u003e [!NOTE]\n\u003e The width and height refer to the **size in characters**, not in pixels.\n\n### Composition of colors\n\nEach byte of the color array is made up of 2 parts:\n- Background color: first 4 bits, the desired color.\n- Foreground color: next 4 bits, visible color (either black or white) over the background color.\n\nThis way of color coding is very useful to **simply print blank spaces** and be able to get the image in the Windows command prompt.\n\nThis way we also avoid having to configure the application in unicode or set the page code to print the unicode block character \"█\" (0x2588) on the command line.\n\n### File structure\n\nThe file structure is as follows:\n\n![ByteColor file format](https://github.com/user-attachments/assets/2b6b9c33-dc1b-4754-9b7f-a136b340b3c3)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetghm%2Fcmdpaint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetghm%2Fcmdpaint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetghm%2Fcmdpaint/lists"}