{"id":21383721,"url":"https://github.com/stumpycr/stumpy_x11","last_synced_at":"2025-10-20T05:35:45.971Z","repository":{"id":141331003,"uuid":"90984356","full_name":"stumpycr/stumpy_x11","owner":"stumpycr","description":"Display a canvas as a X11 window [experimental]","archived":false,"fork":false,"pushed_at":"2017-05-11T14:23:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T23:28:04.633Z","etag":null,"topics":["crystal","framebuffer","x11"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/stumpycr.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":"2017-05-11T13:48:08.000Z","updated_at":"2017-05-22T20:23:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"a112697d-e0eb-46ed-a568-3ee09122a61e","html_url":"https://github.com/stumpycr/stumpy_x11","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stumpycr%2Fstumpy_x11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stumpycr%2Fstumpy_x11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stumpycr%2Fstumpy_x11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stumpycr%2Fstumpy_x11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stumpycr","download_url":"https://codeload.github.com/stumpycr/stumpy_x11/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243860101,"owners_count":20359663,"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":["crystal","framebuffer","x11"],"created_at":"2024-11-22T11:32:09.753Z","updated_at":"2025-10-20T05:35:40.929Z","avatar_url":"https://github.com/stumpycr.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stumpy_x11\n\nDisplay a canvas as a X11 window\n\n## Example\n\n``` crystal\nrequire \"stumpy_x11\"\n\ninclude StumpyCore\n\nwidth, height = 400, 400\nwindow = StumpyX11.new(width, height)\ncanvas = Canvas.new(width, height)\n\nsteps = 100\nsteps.times do |t|\n  (0...width).each do |x|\n    (0...height).each do |y|\n      canvas[x, y] = RGBA.from_relative(\n        x / width.to_f,\n        y / height.to_f,\n        t / steps.to_f,\n        1.0\n      )\n    end\n  end\n\n  window.write(canvas)\n  sleep 0.02\nend\n\nwindow.destroy\n\n```\n\n## TODO\n\n* Handle window close event\n* Documentation (writing raw slices)\n\n## Credits\n\n* [Daniel Collin (emoon)](https://github.com/emoon), most of the x11 stuff\n  was ported over from [emoon/minifb](https://github.com/emoon/minifb)\n\n## Troubleshooting\n\nIf you run into errors like `unknown type wchar_t`,\nrun `ln -s /usr/include/linux/stddef.h /usr/include/stddef.h`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstumpycr%2Fstumpy_x11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstumpycr%2Fstumpy_x11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstumpycr%2Fstumpy_x11/lists"}