Skip to content

About

A tool to simulate how images may appear to people with different types of color vision

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Color Vision Simulator

A web application that simulates how images may appear to people with different types of color vision, designed to help evaluate the accessibility of visual content.

Features

  • Color Vision Types: Protanopia, Deuteranopia and Tritanopia

  • Adjustable Simulation Level: Adjust the effect from 0 (original image) to 1 (full simulation)

  • Upload Methods:

    • Click to select a file from your computer
    • Drag and drop an image file
    • Paste an image from clipboard (Ctrl/Cmd+V)
    • Use Change image to replace your image with any of these methods
  • Side-by-side Comparison: View the original alongside a simulation, or choose Compare all to see all three. Use Focus to view a larger comparison.

  • Download Results: Save each simulation as a PNG at the original image dimensions

Deployment

Deploy locally

# Install dependencies
npm install

# Run development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Deploy to Vercel

  1. Install Vercel CLI: npm i -g vercel
  2. Run: vercel
  3. Follow the prompts

Or connect the GitHub repository to Vercel for automatic deployments.

Deploy to GitHub Pages

  1. Enable GitHub Pages in the repository settings:

    • Go to Settings > Pages
    • Set Source to "GitHub Actions"
  2. Push the code to the main branch

  3. The GitHub Actions workflow will automatically build and deploy the site

The deployment workflow is configured in .github/workflows/deploy.yml.

See third-party notices for licenses.

About

A tool to simulate how images may appear to people with different types of color vision

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages