{"id":21190215,"url":"https://github.com/minecraftts/buffered-image","last_synced_at":"2025-03-14T20:44:31.733Z","repository":{"id":61276289,"uuid":"549936107","full_name":"minecraftts/buffered-image","owner":"minecraftts","description":"A simple wrapper on top of node-canvas to make handling images easier","archived":false,"fork":false,"pushed_at":"2022-11-08T08:31:26.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T14:49:49.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/minecraftts.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}},"created_at":"2022-10-12T00:51:59.000Z","updated_at":"2023-06-21T14:43:01.000Z","dependencies_parsed_at":"2022-10-14T04:05:54.792Z","dependency_job_id":null,"html_url":"https://github.com/minecraftts/buffered-image","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/minecraftts%2Fbuffered-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minecraftts%2Fbuffered-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minecraftts%2Fbuffered-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minecraftts%2Fbuffered-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minecraftts","download_url":"https://codeload.github.com/minecraftts/buffered-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646540,"owners_count":20324583,"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":[],"created_at":"2024-11-20T18:59:48.718Z","updated_at":"2025-03-14T20:44:31.709Z","avatar_url":"https://github.com/minecraftts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buffered-image\n\nNot to be confused with Java BufferedImages, I just couldn't think of a better name (lawl). This is just a thin wrapper on top of `node-canvas`\n\n### Usage\n\n```ts\nimport { BufferedImage } from \"@minecraftts/buffered-image\"\n\nconst bufferedImage = new BufferedImage(200, 200);\nconst graphics = bufferedImage.getGraphics();\n\ngraphics.fillStyle = \"red\";\ngraphics.fillRect(50, 50, 100, 100);\n\n// before querying pixels you have to do this\nbufferedImage.refresh();\n\nlet pixel = bufferedImage.getPixel(0, 0);\nconsole.log(pixel); // =\u003e { r: 0, g: 0, b: 0, a: 0 }\npixel = bufferedImage.getPixel(100, 100);\nconsole.log(pixel); // =\u003e { r: 255, g: 0, b: 0, a: 255 }\n```\n\n### Installation\n\nRun\n```\nnpm install @minecraftts/buffered-image\n```\n\n### License\n\nEverything here is licensed under the MIT license","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminecraftts%2Fbuffered-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminecraftts%2Fbuffered-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminecraftts%2Fbuffered-image/lists"}