Skip to content

iamscottcab/unity-wcag-contrast-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WCAG Contrast Checker

This project adds a custom Editor Window into Unity to support the Web Content Accessibility Guidelines for contrast between two colours. You can quickly and easily check if two colours used as foreground and background will pass their 'AA' or 'AAA' ratings.

Installation

Installation is simple as it only contains 1 file. You can either:

  • Clone this project and use it as a base for your next Unity Project.
  • Copy the contents of ColorAccessibilityChecker.cs and paste it into a file of the same name inside your Unity Project.
  • Download and import the Unity Package available on the releases page.

Usage

The Editor Window is available under a new Menu on your main toolbar. To open it click on Accessibility -> WCAG Contrast Checker. Use the colour pickers to edit the colours as per your requirements.

The window can be used as a floating window or docked depending on your preference. Examples of using the window to check colours can be seen below.

All Colours Passing AA Colours Passing No Colours Passing Random Colours

About

Implements WCAG for Colour Contrast in a custom Unity Editor Window

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages