create account

I made a tool that lets designers/programmers get top colors from a screenshot or design by blixt2

View this thread on: hive.blogpeakd.comecency.com
· @blixt2 ·
$0.82
I made a tool that lets designers/programmers get top colors from a screenshot or design
I wanted to share this tool I built because it's been very useful to me when working with designers. You drag and drop an image into it and it will tell you the top colors with Android, Swift, and CSS code for using the color.

Check it out: https://codepen.io/blixt/pen/VvYPOm

![Screen Shot 2017-08-27 at 2.38.20 PM.png](https://steemitimages.com/DQmdmpWmXSfENRt4UtaNqFduUqCgrkhyRvcxC6tYmK7738B/Screen%20Shot%202017-08-27%20at%202.38.20%20PM.png)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorblixt2
permlinki-made-a-tool-that-lets-designers-programmers-get-top-colors-from-a-screenshot-or-design
categoryprogramming
json_metadata{"tags":["programming","design","android","ios","css"],"image":["https://steemitimages.com/DQmdmpWmXSfENRt4UtaNqFduUqCgrkhyRvcxC6tYmK7738B/Screen%20Shot%202017-08-27%20at%202.38.20%20PM.png"],"links":["https://codepen.io/blixt/pen/VvYPOm"],"app":"steemit/0.1","format":"markdown"}
created2017-08-27 18:40:30
last_update2017-08-27 18:40:30
depth0
children11
last_payout2017-09-03 18:40:30
cashout_time1969-12-31 23:59:59
total_payout_value0.640 HBD
curator_payout_value0.176 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length448
author_reputation3,757,878,226
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,050,023
net_rshares201,592,765,276
author_curate_reward""
vote details (60)
@pilcrow ·
Nice! Can you explain a little bit how you did this? I'm curious to learn how it works.
properties (22)
authorpilcrow
permlinkre-blixt2-i-made-a-tool-that-lets-designers-programmers-get-top-colors-from-a-screenshot-or-design-20170828t085057720z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2017-08-28 08:51:06
last_update2017-08-28 08:51:06
depth1
children1
last_payout2017-09-04 08:51:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length87
author_reputation2,531,070,549,481
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,103,096
net_rshares0
@blixt2 ·
Sure! The principle is very simple, it just scans the entire image and counts up the number of equal colored pixels. Then it sorts the resulting map by number of instances (descending, so most common color is at the top) and trims the list at 100 before displaying it in the UI.

The rest is a bunch of JavaScript specific stuff, like getting the blob from drag & drop result, reading bytes from the canvas buffer, using promises to split up asynchronous parts, and so on. For gleaning into that it's probably best to skim through the code, it's written in ES6 flavor and should be fairly readable!
properties (22)
authorblixt2
permlinkre-pilcrow-re-blixt2-i-made-a-tool-that-lets-designers-programmers-get-top-colors-from-a-screenshot-or-design-20170828t144731209z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2017-08-28 14:47:30
last_update2017-08-28 14:47:30
depth2
children0
last_payout2017-09-04 14:47:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length598
author_reputation3,757,878,226
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,130,628
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20170830t222526000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-08-30 22:25:27
last_update2017-08-30 22:25:27
depth1
children0
last_payout2017-09-06 22:25:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length682
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,386,465
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20170902t012130000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-09-02 01:21:30
last_update2017-09-02 01:21:30
depth1
children0
last_payout2017-09-09 01:21:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length682
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,603,742
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20170903t075538000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-09-03 07:55:36
last_update2017-09-03 07:55:36
depth1
children0
last_payout2017-09-10 07:55:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length691
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,720,591
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20170904t040523000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-09-04 04:05:21
last_update2017-09-04 04:05:21
depth1
children0
last_payout2017-09-11 04:05:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length682
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id13,807,344
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20170916t104038000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-09-16 10:40:36
last_update2017-09-16 10:40:36
depth1
children0
last_payout2017-09-23 10:40:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length682
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,044,562
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20170929t181518000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-09-29 18:15:18
last_update2017-09-29 18:15:18
depth1
children0
last_payout2017-10-06 18:15:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length682
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id16,304,384
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@blixt2) Award for the number of upvotes

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
[SteemitBoard and the Veterans on Steemit - The First Community Badge.](https://steemit.com/veterans/@steemitboard/steemitboard-and-the-veterans-on-steemit-the-first-community-badge)

> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20180824t015842000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-08-24 01:58:42
last_update2018-08-24 01:58:42
depth1
children0
last_payout2018-08-31 01:58:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length900
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id69,179,455
net_rshares0
@steemitboard ·
Congratulations @blixt2! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@blixt2/votes.png?201812200224</td><td>You made more than 5000 upvotes. Your next target is to reach 6000 upvotes.</td></tr>
</table>

<sub>_[Click here to view your Board of Honor](https://steemitboard.com/@blixt2)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20181220t031631000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-12-20 03:16:30
last_update2018-12-20 03:16:30
depth1
children0
last_payout2018-12-27 03:16:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length750
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id77,101,209
net_rshares0
@steemitboard ·
Congratulations @blixt2! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@blixt2/birthday2.png</td><td>Happy Birthday! - You are on the Steem blockchain for 2 years!</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@blixt2) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=blixt2)_</sub>


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-blixt2-20190818t184109000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-08-18 18:41:09
last_update2019-08-18 18:41:09
depth1
children0
last_payout2019-08-25 18:41:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length612
author_reputation38,975,615,169,260
root_title"I made a tool that lets designers/programmers get top colors from a screenshot or design"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,674,738
net_rshares0