picture-to-color
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

picture-to-color

picture to color ratio

$ npm install -g picture-to-color

$ p2c <file path>
# ex: p2c ~/Documents/sample.jpg
[
  { id: 3, color: { r: 255, g: 0, b: 255 }, count: 8, ratio: 0.4 },
  { id: 0, color: { r: 255, g: 0, b: 0 }, count: 6, ratio: 0.3 },
  { id: 1, color: { r: 0, g: 255, b: 0 }, count: 4, ratio: 0.2 },
  { id: 2, color: { r: 0, g: 0, b: 255 }, count: 2, ratio: 0.1 }
]

Readme

Keywords

none

Package Sidebar

Install

npm i picture-to-color

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

14.4 kB

Total Files

18

Last publish

Collaborators

  • yuki-takara