TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A simple palette application that is written in Tornado and Pillow

19 点作者 gokmen大约 12 年前

4 条评论

binarymax大约 12 年前
I wrote something similar in javascript a couple years ago and have some suggestions:<p>Have a look at the WCAG contrast ratio and luminance functions to gauge similarities/differences between colors. If you are looking to extract a theme those formulas are gold!<p>What sort of hashing/tolerance are you using for grouping? Using the above you can specify a tolerance level, and use sqrt((r1-r2)^2 + (g1-g2)^2 + (b1-b2)^2) to get a diff and then compare that with the tolerance.
dhotson大约 12 年前
I helped write a library called colorific to detect a colour palette given an image. You might find it interesting. <a href="https://github.com/99designs/colorific" rel="nofollow">https://github.com/99designs/colorific</a><p>We blogged a bit about how it works too: <a href="http://99designs.com/tech-blog/blog/2012/05/11/color-analysis/" rel="nofollow">http://99designs.com/tech-blog/blog/2012/05/11/color-analysi...</a>
评论 #5526898 未加载
eyko大约 12 年前
I would have understood the title if it had just said written in Python. Most of the time I don't really care what libraries are used.
评论 #5524324 未加载
minikomi大约 12 年前
What is it?
评论 #5523907 未加载