All Projects → 1ess → Mfextractcolor

1ess / Mfextractcolor

Licence: mit
🐨从图片中自动提取特征颜色

Projects that are alternatives of or similar to Mfextractcolor

Circlebar
A fun, easy-to-use tab bar navigation controller for iOS.
Stars: ✭ 513 (+256.25%)
Mutual labels:  dribbble, design
Flutter ui challenge filter menu
My first Flutter UI challenge.
Stars: ✭ 335 (+132.64%)
Mutual labels:  dribbble, design
Light dark toggle
An awesome flutter app which artistically animates light and dark mode 😍
Stars: ✭ 175 (+21.53%)
Mutual labels:  dribbble, design
Flutter ui challenge todo
A showcase flutter todo application.
Stars: ✭ 57 (-60.42%)
Mutual labels:  dribbble, design
D2 Daily
D2 日报
Stars: ✭ 138 (-4.17%)
Mutual labels:  design
Neumorphismui
NeumorphismUI is a library that can be used with SwiftUI. Compatible with Swift Package Manager.
Stars: ✭ 133 (-7.64%)
Mutual labels:  design
Arclayout
With Arc Layout explore new styles and approaches on material design
Stars: ✭ 1,662 (+1054.17%)
Mutual labels:  design
Bhban rpa
6개월 치 업무를 하루 만에 끝내는 업무 자동화(생능출판사, 2020)의 예제 코드입니다. 파이썬을 한 번도 배워본 적 없는 분들을 위한 예제이며, 엑셀부터 디자인, 매크로, 크롤링까지 업무 자동화와 관련된 다양한 분야 예제가 제공됩니다.
Stars: ✭ 124 (-13.89%)
Mutual labels:  design
Pcs
geeky pics for everyone
Stars: ✭ 142 (-1.39%)
Mutual labels:  design
404 Pagenotfound
💥 A curated list of "404 Page Not Found" pages
Stars: ✭ 140 (-2.78%)
Mutual labels:  design
Hyperion Android
App Debugging & Inspection Tool for Android
Stars: ✭ 1,778 (+1134.72%)
Mutual labels:  design
Storybook Addon Playroom
Design with Playroom inside Storybook, using each story source as a starting point
Stars: ✭ 133 (-7.64%)
Mutual labels:  design
Paco
personal website and blog
Stars: ✭ 136 (-5.56%)
Mutual labels:  design
Motion
A library used to create beautiful animations and transitions for iOS.
Stars: ✭ 1,726 (+1098.61%)
Mutual labels:  design
Moceen
Create beautiful screenshots with device mockups
Stars: ✭ 141 (-2.08%)
Mutual labels:  design
Involt
Inject hardware interactions directly into HTML layout.
Stars: ✭ 128 (-11.11%)
Mutual labels:  design
Zaobao
每日时报,以前端技术体系为主要分享课题。根据:文章、工具、新闻、视频几大板块作为主要分类。
Stars: ✭ 1,961 (+1261.81%)
Mutual labels:  design
Psd Templates Requirements
Требования, пожелания и рекомендации к PSD (и не только) макетам
Stars: ✭ 140 (-2.78%)
Mutual labels:  design
Gabriel Adorf Portfolio
Gabriel Adorf's personal website
Stars: ✭ 133 (-7.64%)
Mutual labels:  design
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 (+1056.25%)
Mutual labels:  design

MFExtractColor

Port of ColorArt code from OS X to iOS. Fetches the most dominant and prominent colors from an image.

自动从图片中提取主要颜色,参见ZEEEN (Dribbble client for iOS).

DUB Total-downloads Version Platform Language

集成方式

  • cocoapod
pod 'MFExtractColor'

效果

about

(From the Panic blog: http://www.panic.com/blog/2012/12/itunes-11-and-colors/)

iTunes 11 is a radical departure from previous versions and nothing illustrates this more than the new album display mode. The headlining feature of this display is the new view style that visually matches the track listing to the album’s cover art. The result is an attractive display of textual information that seamlessly integrates with the album’s artwork.

After using iTunes for a day I wondered just how hard it would be to mimic this functionality — use a source image to create a themed image/text display.

Once I started filtering black and white backgrounds my results started to get a bit closer to iTunes. After doing some more analysis I saw that iTunes also looks for borders around the artwork. So lets say you have a solid white border around the artwork picture, iTunes will remove the border and base its theming colors off the remaining interior content. I didn’t add this functionality as it was outside the scope of my simple demo application.

After the background color was determined, the next step is to find contrasting text colors. Again, the first thing I tried was simple color counting, this provides surprisingly good results but iTunes does better. If we relied only on color frequency you’d get variants of the same color for the different types of text (EG: primary, secondary, detail). So the next thing I did to improve the results were to make sure the text colors were distinct enough from each other to be considered a separate color. At this point things were really starting to look good. But what other aspects would need to be considered to ensure the text always looked good on the chosen background color? To ensure colorful text I also added a bit of code to make sure the color used for the text had a minimum saturation level. This prevents washed out colors or very light pastel colors from being used that might not give the best appearance. Now that the text had unique colors that looked good with the background, the only remaining problem was that the resulting text colors could end up lacking enough contrast with the background to be readable. So the last thing I added was a check to make sure any text color would provide enough contrast with the background to be readable. Unfortunately this requirement does cause a rare “miss” when finding text colors which then cause the default black/white colors to be used.

License

based on Panic's OS X ColorArt.

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].