We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calculate high contrast text color for specific areas of a given background image.
Get average color of the requested image area. Calculate the high contrast text color based on that color.
class func getTextColors(onBackgroundImage image: Image, imageArea: ImageArea = .full) -> Color? {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: