{"id":24590416,"url":"https://github.com/JoshDSommer/nativescript-image-colors","last_synced_at":"2025-10-05T15:31:56.624Z","repository":{"id":57308575,"uuid":"68069360","full_name":"JoshDSommer/nativescript-image-colors","owner":"JoshDSommer","description":"NativeScript plugin to extract colors from images ","archived":false,"fork":false,"pushed_at":"2019-11-25T17:58:32.000Z","size":3371,"stargazers_count":7,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T01:11:16.564Z","etag":null,"topics":["material-design","nativescript","nativescript-plugin","npm-package","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoshDSommer.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":"2016-09-13T03:06:37.000Z","updated_at":"2024-05-30T16:20:36.000Z","dependencies_parsed_at":"2022-08-28T23:12:37.255Z","dependency_job_id":null,"html_url":"https://github.com/JoshDSommer/nativescript-image-colors","commit_stats":null,"previous_names":["theoriginaljosh/nativescript-image-colors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshDSommer%2Fnativescript-image-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshDSommer%2Fnativescript-image-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshDSommer%2Fnativescript-image-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshDSommer%2Fnativescript-image-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoshDSommer","download_url":"https://codeload.github.com/JoshDSommer/nativescript-image-colors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235412236,"owners_count":18986078,"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":["material-design","nativescript","nativescript-plugin","npm-package","typescript"],"created_at":"2025-01-24T09:13:05.471Z","updated_at":"2025-10-05T15:31:51.190Z","avatar_url":"https://github.com/JoshDSommer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### NativeScript Image Colors\n[![npm](https://img.shields.io/npm/v/nativescript-image-colors.svg)](https://www.npmjs.com/package/nativescript-image-colors)\n[![npm](https://img.shields.io/npm/dt/nativescript-image-colors.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-image-colors)\n\n\n![NativeScript image colors](https://raw.githubusercontent.com/TheOriginalJosh/nativescript-image-colors/master/screenshot.png)\n\n\n## Example\n\n```typescript\nimport { ImageColors  } from 'nativescript-image-colors';\n\n\n\nlet image = page.getViewById\u003cImage\u003e(`image`);\ncolors = ImageColors.getColorPalette(image);\n\ncolors.color1;\ncolors.color2;\ncolors.color3;\n\n```\n\n## Usage\nreturns a `ColorPalette` that has 3 color properties `color1`, `color2`, and `color3`. the Color Palette also contains a `AndroidPalette` and `IosPalette` object properties. The `AndroidPalette` has properties that correspond with https://developer.android.com/reference/android/support/v7/graphics/Palette.html. The `IosPalette` object corresponds with the `SLColorArt` object from the https://cocoapods.org/?q=ColorArt object. `ColorPalette` is a composite of these two so you don't have to do null and platform checks. please note the colors will not be consistent between platforms since the algorithms used are different.\n\n### Libraries used:\n\nAndroid: https://developer.android.com/reference/android/support/v7/graphics/Palette.html\niOS: https://github.com/panicinc/ColorArt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoshDSommer%2Fnativescript-image-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJoshDSommer%2Fnativescript-image-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJoshDSommer%2Fnativescript-image-colors/lists"}