{"id":16052212,"url":"https://github.com/gregnb/area-dominant-color","last_synced_at":"2025-06-16T07:09:07.693Z","repository":{"id":66150664,"uuid":"58403796","full_name":"gregnb/area-dominant-color","owner":"gregnb","description":"Javascript - Get the Dominant color of an area","archived":false,"fork":false,"pushed_at":"2016-05-10T00:37:01.000Z","size":2339,"stargazers_count":1,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T19:36:51.828Z","etag":null,"topics":["canvas","javascript"],"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/gregnb.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":"2016-05-09T19:53:27.000Z","updated_at":"2021-02-04T14:26:00.000Z","dependencies_parsed_at":"2023-03-10T23:40:36.868Z","dependency_job_id":null,"html_url":"https://github.com/gregnb/area-dominant-color","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"8973bb33e379617237051ca8bd4e64b8b9b44aa6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregnb/area-dominant-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregnb%2Farea-dominant-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregnb%2Farea-dominant-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregnb%2Farea-dominant-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregnb%2Farea-dominant-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregnb","download_url":"https://codeload.github.com/gregnb/area-dominant-color/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregnb%2Farea-dominant-color/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260116645,"owners_count":22961065,"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":["canvas","javascript"],"created_at":"2024-10-09T01:08:12.694Z","updated_at":"2025-06-16T07:09:07.666Z","avatar_url":"https://github.com/gregnb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript - Grab Dominant color of a supplied area\n\nSimple function that returns a sorted palette of colors by occurance in a supplied area.\n\n\tvar image = document.getElementById('image')\n\t\n\tvar palette = areaPalette(image, {\n\t\tw: 200,\n\t\th: 100,\n\t\tx: '50%',\n\t\ty: '70%',\n\t\tpalettesize: 5,\n\t\tdebug: false\n\t});\n\t\n\tvar dominantColor = palette[0].hex;\t\t\n\tvar constrastDom  = palette[0].constrast;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregnb%2Farea-dominant-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregnb%2Farea-dominant-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregnb%2Farea-dominant-color/lists"}