{"id":22562185,"url":"https://github.com/max1220/lua-bitmap","last_synced_at":"2025-04-10T10:32:56.663Z","repository":{"id":51675582,"uuid":"83936511","full_name":"max1220/lua-bitmap","owner":"max1220","description":"Read Bitmap graphics in pure Lua.","archived":false,"fork":false,"pushed_at":"2024-11-27T20:02:40.000Z","size":29,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:21:17.728Z","etag":null,"topics":["bitmap","bitmap-graphics","lua","lua-library"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/max1220.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-03-05T01:29:54.000Z","updated_at":"2024-11-27T19:59:38.000Z","dependencies_parsed_at":"2024-12-07T22:12:09.312Z","dependency_job_id":"75feefb5-5e25-406f-9c03-7e5ecdc686ee","html_url":"https://github.com/max1220/lua-bitmap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1220%2Flua-bitmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1220%2Flua-bitmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1220%2Flua-bitmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max1220%2Flua-bitmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max1220","download_url":"https://codeload.github.com/max1220/lua-bitmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"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":["bitmap","bitmap-graphics","lua","lua-library"],"created_at":"2024-12-07T22:11:59.746Z","updated_at":"2025-04-10T10:32:56.646Z","avatar_url":"https://github.com/max1220.png","language":"Lua","readme":"# lua-bitmap\n\nThis single-file Lua-only library implements basic read/write support\nfor a subset of the `Windows Bitmap`/`device-independent bitmap`\nfile format, version 3.0.\n\nCompatible with Lua5.1, LuaJIT, Lua5.2, Lua5.3, Lua5.4.\n\n\n\n## Supported file format\n\n`Windows Bitmap`/`device-independent bitmap`, version 3.0,\n\n * 24bpp/32bpp bitmaps only(no 1/2/4/8/16bpp)\n * no bitfields\n * no compression\n\nSee [doc/FILE_FORMAT.md](doc/FILE_FORMAT.md)\n\n\n## Library usage\n\nLibrary usage is documented in `doc/USAGE.md`.\n\nExample:\n\n```\nlocal Bitmap = require(\"lua-bitmap\") -- load module\nlocal bmp = Bitmap.empty_bitmap(width, height, alpha)\n--local bmp = Bitmap.from_string(data)\n--local bmp = Bitmap.from_file(path)\n--local bmp = Bitmap._new_bitmap()\nr,g,b,a = bmp:get_pixel(x,y) -- get color value at x,y\nbmp:set_pixel(x,y,r,g,b,a) -- set pixel at x,y to r,g,b,a[0-255]\n```\n\nSee [doc/USAGE.md](doc/USAGE.md)\n\n\n\n## Installation\n\nThe LuaRocks module is not published on a rocks server yet.\n\nSee [doc/INSTALLATION.md](doc/INSTALLATION.md)\n\n\n\n## Examples\n\nThere are currently two runnable examples, `bmp2ansi.lua` coverts a\nbitmap to primitive ASCII art, and `gen_test_image.lua` generates a\nsimple bitmap with a test pattern.\n\nbmp2ansi.lua: [doc/examples/bmp2ansi.lua](doc/examples/bmp2ansi.lua)\ngen_test_image.lua: [doc/examples/gen_test_image.lua](doc/examples/gen_test_image.lua)\n\nSee [doc/EXAMPLES.md](doc/EXAMPLES.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax1220%2Flua-bitmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax1220%2Flua-bitmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax1220%2Flua-bitmap/lists"}