Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support caption color calculation for background images #45

Closed
chrs1885 opened this issue Sep 28, 2019 · 0 comments
Closed

Support caption color calculation for background images #45

chrs1885 opened this issue Sep 28, 2019 · 0 comments
Milestone

Comments

@chrs1885
Copy link
Owner

What kind of feature would you like to see?

Calculate high contrast text color for specific areas of a given background image.

How does it work in detail?

Get average color of the requested image area. Calculate the high contrast text color based on that color.

What does the API look like?

class func getTextColors(onBackgroundImage image: Image, imageArea: ImageArea = .full) -> Color? {

Any existing projects that do something similiar?

@chrs1885 chrs1885 added the in progress We are currently working on it. label Sep 28, 2019
@chrs1885 chrs1885 added this to the 1.1.0 milestone Sep 28, 2019
@chrs1885 chrs1885 removed the in progress We are currently working on it. label Oct 1, 2019
@chrs1885 chrs1885 closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant