{"id":15396060,"url":"https://github.com/costava/sdl2-draw-demo","last_synced_at":"2026-05-02T09:32:19.779Z","repository":{"id":91581804,"uuid":"120705605","full_name":"Costava/sdl2-draw-demo","owner":"Costava","description":"Drawing application made with SDL2","archived":false,"fork":false,"pushed_at":"2020-09-04T02:52:07.000Z","size":1536,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T02:11:18.283Z","etag":null,"topics":["batch","batch-script","c","draw","drawing","sdl2","windows"],"latest_commit_sha":null,"homepage":"","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/Costava.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-08T03:28:22.000Z","updated_at":"2023-06-15T19:03:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"83cabc1a-43bb-4ad3-abb8-db79c5304546","html_url":"https://github.com/Costava/sdl2-draw-demo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Costava%2Fsdl2-draw-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Costava%2Fsdl2-draw-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Costava%2Fsdl2-draw-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Costava%2Fsdl2-draw-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Costava","download_url":"https://codeload.github.com/Costava/sdl2-draw-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944062,"owners_count":20697948,"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":["batch","batch-script","c","draw","drawing","sdl2","windows"],"created_at":"2024-10-01T15:30:44.233Z","updated_at":"2026-05-02T09:32:19.741Z","avatar_url":"https://github.com/Costava.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdl2-draw-demo\r\n\r\nA simple drawing application made with SDL2.\r\n\r\nUse the mouse to draw.\r\nThe color drifts randomly.\r\nThe drawing drifts in random directions in a pattern\r\nwhen you hold the mouse button without moving the mouse.\r\n\r\nThe window defaults to 512x512 pixels and is resizable.\r\nResizing the window clears the drawing.\r\n\r\nFeel free to ask a question by opening an issue.\r\n\r\n![infinity](https://i.imgur.com/9FfAisq.gif)\r\n\r\n![wander](https://i.imgur.com/LZj88uu.gif)\r\n\r\n![DRAW](https://i.imgur.com/1Nfje0J.png)\r\n\r\n## License\r\n\r\nGNU GPL v3.\r\nSee file `LICENSE`.\r\n\r\n## How to build and run\r\n\r\n### Linux\r\n\r\nTested with SDL v2.0.12\r\n\r\n1. Clone repo\r\n2. `make run`\r\n\r\n### Windows\r\n\r\nTested with SDL v2.0.9\r\n\r\n- Download and install [Build Tools for Visual Studio 2017](https://www.visualstudio.com/downloads) to get the `CL` C/C++ compiler and `x64 Native Tools Command Prompt`. Use `x86 Native Tools Command Prompt` for 32-bit Windows. More information on these command prompts  [here](https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line).\r\n- Download the Visual C++ [SDL2 development libraries](https://www.libsdl.org/download-2.0.php).\r\n- Create a symbolic link named `SDL2-2.0.9` targeting the location of the downloaded `SDL2-2.0.9` folder. Likely use `mklink /D SDL2-2.0.9 C:\\path\\to\\SDL2-2.0.9`. The `/D` argument is for directory symbolic link as opposed to the default file symbolic link.\r\n- Switch `x64` to `x86` for `libpathsdl` in `build.bat` for 32-bit.\r\n- Run `build.bat` in the command prompt from above to build. Run `build.bat dev` to get a console when the program runs.\r\n\r\n## Contributing\r\n\r\nNot currently accepting contributions.\r\nFeel free to create an issue.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcostava%2Fsdl2-draw-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcostava%2Fsdl2-draw-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcostava%2Fsdl2-draw-demo/lists"}