{"id":22700290,"url":"https://github.com/tairasu/pbm-to-jack","last_synced_at":"2026-01-07T08:35:16.342Z","repository":{"id":243346766,"uuid":"812182843","full_name":"tairasu/pbm-to-jack","owner":"tairasu","description":"A PBM to Jack function converter","archived":false,"fork":false,"pushed_at":"2024-06-08T09:47:56.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T19:46:26.524Z","etag":null,"topics":["converter","html","jack-language","nand2tetris","pbm","single-page-app"],"latest_commit_sha":null,"homepage":"https://pbm2jack.netlify.app","language":"HTML","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/tairasu.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":"2024-06-08T07:08:44.000Z","updated_at":"2024-06-08T09:47:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"6dd823aa-9721-4ea4-b955-a95deeea4d85","html_url":"https://github.com/tairasu/pbm-to-jack","commit_stats":null,"previous_names":["tairasu/pbm-to-jack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tairasu%2Fpbm-to-jack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tairasu%2Fpbm-to-jack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tairasu%2Fpbm-to-jack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tairasu%2Fpbm-to-jack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tairasu","download_url":"https://codeload.github.com/tairasu/pbm-to-jack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230542,"owners_count":20744349,"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":["converter","html","jack-language","nand2tetris","pbm","single-page-app"],"created_at":"2024-12-10T06:10:53.788Z","updated_at":"2026-01-07T08:35:16.284Z","avatar_url":"https://github.com/tairasu.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PBM to Jack Converter\n\n## Overview\n\nThis project provides a single HTML file to convert PBM (Portable Bitmap) files to Jack language functions, specifically designed for the [Nand2Tetris](https://www.nand2tetris.org/) project. The tool reads a PBM file and generates a Jack function to draw the image in memory.\n\n## Requirements\n\n- The PBM file must be of type P1 (plain PBM format).\n- The image width must be a multiple of 16 pixels.\n\n## Usage\n\n1. Open the `index.html` file in a web browser or use the netlify link (https://pbm2jack.netlify.app/).\n2. Select a PBM file.\n3. The converted Jack code will be displayed in the output textarea.\n\n## How It Works\n\n1. The user selects a PBM file.\n2. The file is read and processed:\n    - Comments and empty lines are filtered out.\n    - The file type is checked to ensure it's P1.\n    - The image dimensions are extracted and validated.\n    - The pixel data is concatenated into a single string.\n3. The pixel data is processed column by column, converting each 16-bit wide column into a signed decimal integer.\n4. A Jack function is generated to draw the image in memory.\n\n\n## Contributions\n\nContributions are welcome. Please fork the repository and submit a pull request with your improvements.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftairasu%2Fpbm-to-jack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftairasu%2Fpbm-to-jack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftairasu%2Fpbm-to-jack/lists"}