{"id":26154738,"url":"https://github.com/brettchalupa/pdqrcodegen","last_synced_at":"2025-10-15T05:54:37.155Z","repository":{"id":279436473,"uuid":"938809381","full_name":"brettchalupa/pdqrcodegen","owner":"brettchalupa","description":"Easily generate pre-rendered QR codes for your Playdate game from the Simulator","archived":false,"fork":false,"pushed_at":"2025-02-25T14:52:44.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T15:37:57.487Z","etag":null,"topics":["playdate","playdate-sdk"],"latest_commit_sha":null,"homepage":"https://devforum.play.date/t/pd-qr-code-gen-a-simple-tool-generate-pre-rendered-qr-codes-for-your-games/21570","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brettchalupa.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":"2025-02-25T14:38:01.000Z","updated_at":"2025-02-25T14:53:09.000Z","dependencies_parsed_at":"2025-02-25T15:38:00.824Z","dependency_job_id":"989d83e4-0f98-460f-9783-f688b3a32969","html_url":"https://github.com/brettchalupa/pdqrcodegen","commit_stats":null,"previous_names":["brettchalupa/pdqrcodegen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettchalupa%2Fpdqrcodegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettchalupa%2Fpdqrcodegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettchalupa%2Fpdqrcodegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettchalupa%2Fpdqrcodegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brettchalupa","download_url":"https://codeload.github.com/brettchalupa/pdqrcodegen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243002074,"owners_count":20220021,"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":["playdate","playdate-sdk"],"created_at":"2025-03-11T08:34:28.668Z","updated_at":"2025-10-15T05:54:32.124Z","avatar_url":"https://github.com/brettchalupa.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PD QR Code Gen\n\nEasily generate pre-rendered QR codes for your Playdate game from the Simulator\nwith this little application.\n\n## How to Use\n\n0. [Download the latest release](https://github.com/brettchalupa/pdqrcodegen/releases/latest) _or_\n1. Clone the repo or download the source\n2. Compile the program with `pdc source pdqrcodegen.pdx`\n3. Launch the Playdate Simulator\n4. Open it in the Simulator, ex: `PlaydateSimulator pdqrcodegen.pdx`\n5. Open the Lua console in the Simulator (Alt + Y on Linux)\n6. Type in `!msg HTTPS://EXAMPLE.COM` (using all caps generates a smaller QR code!)\n\nThe QR code will be generated for that string. When it's done, it gets saved on\nyour computer at `~/qrcode.png` and displayed in the Simulator for testing.\n\nBe sure to move `~/qrcode.png` before generating another one!\n\nYou can then show load and draw that QR code PNG file in your game. Fast and\neasy.\n\n## Show the QR code in your game\n\nPut `qrcode.png` somewhere in your `source` directory. Create a new image and draw it:\n\n```lua\nlocal qrCode = playdate.graphics.image.new(\"qrcode.png\")\nassert(qrCode, \"Failed to load QR code image\")\nqrCode:draw(20, 60)\n```\n\n## QR Code Size\n\nThe QR code size is set to `nil` to balance smaller size and readbility. If you need a custom size, modify the `gfx.generateQRCode` second parameter. For example, this would make it 200px wide:\n\n```lua\ngenTimer = gfx.generateQRCode(str, 200, setQRCode)\n```\n\n## View Demo\n\n![Demo GIF](./demo.gif)\n\nAnd here's an example of a generated QR code:\n\n![Example QR code for play.date](./qrcode.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettchalupa%2Fpdqrcodegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrettchalupa%2Fpdqrcodegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettchalupa%2Fpdqrcodegen/lists"}