{"id":19107925,"url":"https://github.com/haschka/sdl_simple_paint","last_synced_at":"2026-02-22T09:41:13.142Z","repository":{"id":90645103,"uuid":"208088399","full_name":"haschka/sdl_simple_paint","owner":"haschka","description":"A simple paint program","archived":false,"fork":false,"pushed_at":"2022-08-29T13:37:53.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T04:47:45.180Z","etag":null,"topics":["graphical-tools","image-processing","paint","painting","sdl2","unix-tool"],"latest_commit_sha":null,"homepage":"","language":"C","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/haschka.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-12T15:51:31.000Z","updated_at":"2024-08-12T15:04:09.000Z","dependencies_parsed_at":"2023-07-02T07:04:39.136Z","dependency_job_id":null,"html_url":"https://github.com/haschka/sdl_simple_paint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haschka/sdl_simple_paint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haschka%2Fsdl_simple_paint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haschka%2Fsdl_simple_paint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haschka%2Fsdl_simple_paint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haschka%2Fsdl_simple_paint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haschka","download_url":"https://codeload.github.com/haschka/sdl_simple_paint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haschka%2Fsdl_simple_paint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29708363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T05:59:28.568Z","status":"ssl_error","status_checked_at":"2026-02-22T05:58:46.208Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["graphical-tools","image-processing","paint","painting","sdl2","unix-tool"],"created_at":"2024-11-09T04:14:26.398Z","updated_at":"2026-02-22T09:41:13.094Z","avatar_url":"https://github.com/haschka.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdl_simple_paint\n\nThis is a simple paint program written in SDL: \n\n* license\n\nCopyright (c) Thomas Haschka 2019\nThis software is provided 'as-is', without any express or implied\nwarranty. In no event will the authors be held liable for any damages\narising from the use of this software. \n\nPermission is granted to anyone to use this software for any purpose,\nincluding commercial applications, and to alter it and redistribute it\nfreely, subject to the following restrictions: \n\n    The origin of this software must not be misrepresented; you must\n    not claim that you wrote the original software. If you use this\n    software in a product, an acknowledgment in the product\n    documentation would be appreciated but is not required. \n\t\n    Altered source versions must be plainly marked as such, and must\n\tnot be misrepresented as being the original software. \n    This notice may not be removed or altered from any source distribution.\n\n\n* compilation: \nYou need the sdl2 library and libpng, both in the dev versions installed \non your system.\n\nOn a typical linux / unix system with gcc you may compile this with:\n```\ngcc -O2 `sdl2-config --libs` `sdl2-config --cflags` sdldraw.c -o sdldraw -lpng\n```\nIn case the screen might stay black or you experiance other troubles you\nmight compile the program to use software based rendering of the canvas:\n```\ngcc -O2 -DSOFTWARE_RENDERING `sdl2-config --libs` `sdl2-config --cflags` sdldraw.c -o sdldraw -lpng\n```\n* usage: \nYou then may draw on a png image by calling:\n```\n./sdldraw your.png\n```\nhitting the save button might save your image overwriting the previous one.\n\nCalling just:\n`./sdldraw` will open a blank 640 by 480 canvas and save to `paintout.png`\nBe warned if a previous paintout.png exists it might be overwritten!\n\nFor a different canvas you have to specify:\n`./sdldraw filename.png sizex sizey`\nThis will open a canvas of sizex by sizey saving to filename.png if you hit \nthe safe button. \n\nYou may also change the collor palette, in order to do so you need create a \npalette file.\n\nA palette file must consist of 16 lines containing 3 seperated integers between\n0 and 255 to represent - red, green and blue - like:\n```\n  0   0   0\n255 255 255\n124 124 124\n...\n```\nnote that you have to specify 16 colors otherwise the default palette will be\nloaded.\n\nIn order to use the custom palette file you have to call `./sdldraw` with all \nits arguments:\n```\n./sdldraw filename.png sizex sizey palettefile\n```\n\n* screenshot:\n\n![](screenshot.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaschka%2Fsdl_simple_paint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaschka%2Fsdl_simple_paint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaschka%2Fsdl_simple_paint/lists"}