Optical Illusion with HTML, CSS and JavaScript @Radu
Optical Illusion with HTML, CSS and JavaScript  @Radu
Uploaded April 2023 | Updated September 2026, 2 weeks ago
In this video we'll practice basic HTML, CSS and JavaScript by implementing an optical illusion: The Simultaneous Brightness Contrast Illusion. I got the idea to make this from #vsauce: youtube.com/shorts/QEKQVV371EU

By coding along you'll learn about color gradients, about drawing and animating shapes and their colors using JavaScript. We'll also negate the illusion by modifying the brightness programmatically so the circle appears to stay the same color (even though it doesn't).

HTML Canvas Course:
youtube.com/playlist?list=PLB0Tybl0UNfb6BvBPePaiCNOFpzxeE86R

Interpolation Video:
youtu.be/J_puRs40GhM

Version with the slider:
radufromfinland.com/projects/simbricon
Optical Illusion with HTML, CSS and JavaScriptCreative Coding Competition ⭐Status Report⭐Machine Learning Course - Lesson 6: K Nearest Neighbors Classifier (JavaScript - No Libraries)🚙Self-driving Car⛵BOAT⛵ Easter Egg 🐰🎅Machine Learning Course - Lesson 16: Optimizing Neural NetworksAdvanced Drawing App | LIVE JavaScript Coding | Part 1: Paths, Rectangles, Fills and StrokesJavaScript Infinite Zoom Effect (Part 2)AI Racing Game in JavaScript [Understanding AI - Lesson 8 / 15]JavaScript ❄️ Christmas Calendar 📅 Day 11 🎄🚙Self-driving Car‎‍💻🏢MY OFFICE🏢‎‍💻 Easter Egg 🐰🎅A Virtual World - JavaScript Course: Lesson 3 / 11 [Pan & Zoom with JavaScript]Ill Guess Your Number!
Radu Mariescu-Istodor |

Optical Illusion with HTML, CSS and JavaScript

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER