colors-palette:使用 nodejs 和 ImageMagick 生成图像的调色板

时间:2021-06-27 07:14:01
【文件属性】:
文件名称:colors-palette:使用 nodejs 和 ImageMagick 生成图像的调色板
文件大小:186KB
文件格式:ZIP
更新时间:2021-06-27 07:14:01
CoffeeScript ImageMagick 脚本可以生成 JSON 格式的调色板。 安装 首先下载并安装 。 在 Mac OS X 中,您可以简单地使用并执行以下操作: brew install imagemagick 然后要么使用 npm: npm install colors-palette 或克隆回购: git clone git://github.com/cyrilis/colors-palette.git 用法 : var colorPalette = require ( "colors-palette" ) ; colorPalette ( "/path/to/img" , 8 , function ( err , colors ) { if ( err ) { console . error ( err ) ;
【文件预览】:
colors-palette-master
----test_demo.png(42KB)
----test.jpg(178KB)
----index.js(134B)
----test.js(395B)
----package.json(454B)
----Readme.MD(3KB)
----src()
--------index.js(2KB)
--------color-palette.sh(970B)
--------index.coffee(1017B)
----.gitignore(12B)
----test.coffee(200B)
----index.coffee(34B)

网友评论