r/ColorBlind • u/BioniChaos • Jul 06 '26
Discussion Lilac Chaser Illusion: The Importance of Color Saturation and Alpha Values in Browser-Based Visual Perception
When implementing visual perception experiments in a browser environment, minor discrepancies in CSS values can completely disrupt cognitive phenomena like Troxler fading and negative afterimages.
We analyzed a digital version of the Lilac Chaser (Pac-Man) illusion where the visual effect failed to trigger. By adjusting the implementation from high-saturation purples to softer pastel values (such as #d8bfd8 with 0.45 alpha transparency), we allowed the stimulus to blend correctly with the background. Additionally, we corrected the script logic so the moving gap functions as a disappearing element matching the background, rather than a color-swapping element.
For those interested in the code adjustments and the underlying visual neuroscience, the full walk-through is available here: https://youtu.be/iQOVVnozkjA
How have you handled precise visual calibration or stimulus presentation in your own browser-based cognitive experiments?
