All Projects → LanceGin → Haishoku

LanceGin / Haishoku

Licence: mit
A development tool for grabbing the dominant color or representative color palette from an image

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Haishoku

Glidepalette
Android Lollipop Palette is now easy to use with Glide
Stars: ✭ 1,670 (+680.37%)
Mutual labels:  palette
Tachyons Tldr
quick lookup for tachyon classes, scales and colour palette
Stars: ✭ 170 (-20.56%)
Mutual labels:  palette
Webgradients
A curated collection of splendid gradients made in CSS3, .sketch and .PSD formats.
Stars: ✭ 2,197 (+926.64%)
Mutual labels:  palette
Opencv transforms torchvision
opencv reimplement for transforms in torchvision
Stars: ✭ 141 (-34.11%)
Mutual labels:  pillow
Sketchize
Sketchize is built for UI/UX Designers to help them design lovely apps for mobile, tablet, and desktop devices.
Stars: ✭ 162 (-24.3%)
Mutual labels:  design-tools
Move To Library Sketchplugin
You can now move symbol from your project to any library and re-attach all the symbol instances to this library. also it keep the overrides without any problems and it work with abstract that have libraries not in your local machine
Stars: ✭ 174 (-18.69%)
Mutual labels:  design-tools
Ui Dna
programmable and semantically UI design tool for Photoshop
Stars: ✭ 126 (-41.12%)
Mutual labels:  design-tools
Paddy Sketch Plugin
Automated padding, spacing and alignment for your Sketch layers
Stars: ✭ 2,219 (+936.92%)
Mutual labels:  design-tools
Coverify
🎧 Design fresh album cover for your Spotify playlists
Stars: ✭ 167 (-21.96%)
Mutual labels:  design-tools
Jscolor
JavaScript color picker with opacity (alpha channel) and customizable palette. Single file of plain JS with no dependencies.
Stars: ✭ 182 (-14.95%)
Mutual labels:  palette
Moceen
Create beautiful screenshots with device mockups
Stars: ✭ 141 (-34.11%)
Mutual labels:  design-tools
Rose Pine Theme
All natural pine, faux fur and a bit of soho vibes for the classy minimalist
Stars: ✭ 143 (-33.18%)
Mutual labels:  palette
Color Thief Java
Grabs the dominant color or a representative color palette from an image. A very fast Java port of Lokesh Dhakar's JavaScript version.
Stars: ✭ 178 (-16.82%)
Mutual labels:  palette
Data Populator
A plugin for Sketch and Adobe XD to populate your design mockups with meaningful data. Goodbye Lorem Ipsum. Hello JSON.
Stars: ✭ 1,665 (+678.04%)
Mutual labels:  design-tools
Styled Theme
Extensible theming system for styled-components 💅
Stars: ✭ 183 (-14.49%)
Mutual labels:  palette
Jquery.fbmessenger
Fake Facebook Messenger interactions on an iPhone with a simple jQuery plugin!
Stars: ✭ 130 (-39.25%)
Mutual labels:  design-tools
Vue Tiny Code
这里有一个仿 Chrome 调色盘,有一个拖动排版的页面,还有一些新奇的小点子。
Stars: ✭ 170 (-20.56%)
Mutual labels:  palette
Underexpress
A free, responsive, ready to use website ui kit, built with bootstrap 4.
Stars: ✭ 205 (-4.21%)
Mutual labels:  design-tools
Chartjs Plugin Colorschemes
Predefined color schemes for Chart.js
Stars: ✭ 189 (-11.68%)
Mutual labels:  palette
Pixel Editor
An online canvas based Pixel Art creation tool for Lospec.com
Stars: ✭ 180 (-15.89%)
Mutual labels:  palette

Haishoku

haishoku is a JP word, it means palette in English.

Haishoku is a development tool for grabbing the dominant color or representative color palette from an image, it depends on Python3 and Pillow.

Feature

  1. Grab the dominant color from a image.

  2. Grab the representative color palette from a image.

  3. From v1.1.4, Haishoku could load a image from remote url.

Demo

demo

( original image's source: dribbble )

Installation

pip3 install haishoku

or maybe you should use

python3 -m pip install haishoku

Api

• loadHaishoku( image )

from haishoku.haishoku import Haishoku
haishoku = Haishoku.loadHaishoku(image)

it will return a Haishoku instance, and you can use haishoku.dominant and haishoku.palette to get the image's dominant color and color palette

Also, you can use more immediately api to get them or show them temporarily, just like below:

• getDominant( image )

from haishoku.haishoku import Haishoku
dominant = Haishoku.getDominant(image)

returns: (R, G, B) tuple

• showDominant( image )

from haishoku.haishoku import Haishoku
Haishoku.showDominant( image )

it will open a temporary image to show the dominant color.

• getPalette( image )

from haishoku.haishoku import Haishoku
palette = Haishoku.getPalette( image )

returns: [(percentage, (R, G, B)), (percentage, (R, G, B)), ...] Array length <= 8

• showPalette( image )

from haishoku.haishoku import Haishoku
Haishoku.showPalette( image )

it will open a temporary image to show the palette.

中文文档

中文文档

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].