Coder Social home page Coder Social logo

arbolitoloco / color-blind-simulator Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 7.0 3.96 MB

Need a quick way to make sure your design/diagram/figure is color blind-friendly? Use this simulator to check out if your colors will retain the same effect for different kinds of vision. Conveniently download transformed gallery for future reference.

Home Page: https://laura.rochaprado.com/color-blind-simulator/

License: GNU General Public License v3.0

CSS 17.55% HTML 75.61% JavaScript 6.84%
color-simulation colorblindness-simulator colorblindness gallery hacktoberfest

color-blind-simulator's Introduction

Color Blindness Simulator


Color Blindness Simulator app

A quick way to visualize an image using different color blindness simulation filters. Upload your file and check the updated gallery. Download the resulting gallery at once for analysis.

Go to App

Background

I created this app, because I was designing a complex diagram for a scientific publication that used several symbols and different colors that had meaning associated with them.

My goal was to make a diagram that would be as accessible as possible, and that included testing for different types of color blindness, so that my designs could be adjusted to enable users with color deficiency to perceive color nuance and infer their context.

However, finding an easy tool to automatically test images for different kinds of color blindness at the same time was nearly impossible. Hence the creation of this tool: the Color Blindness Simulator.

How to use

Web app

If you'd like to try it out, head over to the working app at https://laura.rochaprado.com/color-blind-simulator/. The app is responsive, so it works on mobile too (and you could even take a photo with it).

There are only 2-3 steps:

  1. Upload the desired image for testing (accepts any file with an image/\* MIME type; tested with png, jpg, gif, svg, ico)
  2. Wait shortly until main gallery is updated with resulting simulations
  3. Download resulting gallery if you are so inclined

Install to use locally

If you'd like to have the app to use it offline, head over to the releases page and download the latest bundle. Simply extract the contents of the package into a folder, and double click the index.html file to open it in any browser.

Examples

Color Blindness Simulator example 1 Color Blindness Simulator example 2

Privacy and data

All image manipulations (and upload) happen on the client-side only, meaning no data is collected at all. There is a Google Analytics snippet to track visitors and usage, so browsing isn't entirely anonymous.

Contributing

Thanks for your interest in contributing to improve this app! For more detail, please check our Contributing doc.

Acknowledgements

This app modifies functions for canvas redrawing found in cyan33's image-screenshot, as well as html2canvas 1.0.0-rc.5 to facilitate image downloads.

color-blind-simulator's People

Contributors

arbolitoloco avatar clmoreno avatar darkshredder avatar laluardian avatar lorenzoverardo avatar marinoffdev avatar mrvalraven avatar pexeixv avatar raulpascual avatar rcarvalhodan avatar slartibartfass avatar thewhackfactory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

color-blind-simulator's Issues

Create dynamic contributors section

Dynamically pull list of this repo's contributors through Github's API and display their information (avatar, profile url, username) in a gallery to be included in the index.html and in the README.md.

Redesign header to maybe include logo and links

The header in index.html is quite simple. I have created a tentative logo (file here), that ideally would be incorporated in the header somehow.

Ideally I'd also like to have links in the header for:

  • More Information page
  • Repository on Github

Switch to a more accurate color vision deficiency simulation model

Hi! Recently I've been reviewing the CVD simulation models used in opensource software, and it turns out that the ColorMatrix values from colorjack.com are very inaccurate (I saw that these are the values used in color-blind-simulator).

I wrote a detailed article about that, but in short this is what the author later said about these matrices (links from MaPePeR, the code used by Coblis):

You're right, the ColorMatrix version is very simplified, and not accurate. I created that color matrix one night (http://www.colorjack.com/labs/colormatrix/) and since then it's shown up many places... I should probably take that page down before it spreads more! Anyways, it gives you an idea of what it might look like, but for the real thing...

So I've started a kind of crusade to help stop the spread :)

The good news is that there are pretty good alternatives that also just use a single 3x3 matrix and thus can be implemented with SVG filters. I've actually created a PR in another project that uses SVG filters Colorblindly that does just that. It updates the matrices to use the proven model of Viénot, Brettel & Mollon Digital video colourmaps for checking the legibility of displays by dichromats. And also importantly it adds a color-interpolation-filters="linearRGB" attribute to the filter so that the matrices get applied in the linearRGB space and not sRGB.

Hope this can help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.