• Adam Barth's avatar
    Estimate the brightness of the primary color (#10071) · 49b183c5
    Adam Barth authored
    If the caller doesn't explicitly give the brightness of the primary
    color, we now estimate it using an algorithm from the Web Content
    Accessibility Guidelines.
    
    Also, this patch contains a function that converts RGB colors to
    HSVColors. I was originally going to use that, but the WCAG algorithm
    ended up seeming like a better choice. The patch still includes this
    function because it's generally useful.
    
    Fixes #5718
    49b183c5
Name
Last commit
Last update
.idea Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.analysis_options Loading commit data...
.analysis_options_repo Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...