mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:27:36 +00:00
ThemeEditor: Implement a way to simulate color blindness in preview
Implement a mechanism that allows us to alter colors so that they mimic those a colorblind person would see. From the color we can then alter the colors for the whole preview so we can simulate everything in the theme including icons/decorations. This filter is also available as a Filter in LibGfx so it can be reused in multiple other places. The color simulation algorithm is based on this one https://github.com/MaPePeR/jsColorblindSimulator publicly available.
This commit is contained in:
parent
1c05d39abc
commit
ebaf211260
7 changed files with 289 additions and 0 deletions
|
@ -13,6 +13,7 @@ set(SOURCES
|
|||
DDSLoader.cpp
|
||||
DisjointRectSet.cpp
|
||||
Emoji.cpp
|
||||
Filters/ColorBlindnessFilter.cpp
|
||||
Filters/FastBoxBlurFilter.cpp
|
||||
FontDatabase.cpp
|
||||
GIFLoader.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue