{"id":16125729,"url":"https://github.com/dy/clip-pixels","last_synced_at":"2025-07-08T08:36:29.555Z","repository":{"id":57200412,"uuid":"154316485","full_name":"dy/clip-pixels","owner":"dy","description":"Slice rectangle from pixels array","archived":false,"fork":false,"pushed_at":"2018-10-23T11:43:56.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T06:18:43.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dy.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}},"created_at":"2018-10-23T11:30:33.000Z","updated_at":"2019-07-23T18:58:33.000Z","dependencies_parsed_at":"2022-09-16T15:00:59.615Z","dependency_job_id":null,"html_url":"https://github.com/dy/clip-pixels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/clip-pixels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fclip-pixels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fclip-pixels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fclip-pixels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fclip-pixels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/clip-pixels/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fclip-pixels/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260288550,"owners_count":22986688,"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-10-09T21:31:10.786Z","updated_at":"2025-07-08T08:36:29.449Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/dy/clip-pixels.svg?branch=master)](https://travis-ci.org/dy/clip-pixels)\n\nSlice rectangle from an array with pixels.\n\n### `clip(arr, shape=[w, h?, channels=4], rect=[x, y?, w?, h?])`\n\n```js\nvar clip = require('clip-pixels')\n\nvar pixels = [\n0, 1, 0,\n1, 1, 1,\n0, 1, 0\n]\npixels = clip(pixels, [3, 3, 1], [1, 0, 2, 3])\n\n/*\n1, 0,\n1, 1,\n1, 0\n*/\n```\n\nSee also [flip-pixels](https://ghub.io/flip-pixels).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fclip-pixels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fclip-pixels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fclip-pixels/lists"}