Uploaded July 2025 | Updated September 2026, 2 weeks ago
Explore the fascinating world of optical illusions with this JavaScript tutorial on the Hering illusion! In this beginner-friendly tutorial we learn how to create interactive illusions using math and JavaScript. Through step-by-step coding, you'll discover the secrets behind this perplexing phenomenon and gain insights into how our brains interpret visual information. By leveraging JavaScript's drawing capabilities and slider controls, we'll manipulate different properties of the illusion and uncover the underlying principles at play. Are you ready to challenge your perception and unravel the mysteries of optical trickery?
⭐Learn to code more Optical Illusions⭐
youtube.com/playlist?list=PLB0Tybl0UNfZwvZptBKrwMxZ4RvoJCTA2
Explore the fascinating world of optical illusions with this JavaScript tutorial on the Hering illusion! In this beginner-friendly tutorial we learn how to create interactive illusions using math and JavaScript. Through step-by-step coding, you'll discover the secrets behind this perplexing phenomenon and gain insights into how our brains interpret visual information. By leveraging JavaScript's drawing capabilities and slider controls, we'll manipulate different properties of the illusion and uncover the underlying principles at play. Are you ready to challenge your perception and unravel the mysteries of optical trickery?
⭐Learn to code more Optical Illusions⭐
youtube.com/playlist?list=PLB0Tybl0UNfZwvZptBKrwMxZ4RvoJCTA2
![Using Dijkstras Shortest Path With AI [Understanding AI - Lesson 7 / 15]
PLAYLIST: https://www.youtube.com/playlist?list=PLB0Tybl0UNfYbL1vDNrfHoYOKf1Sn0A81
In this seventh lesson of the Understanding AI course, we delve into the practical application of Dijkstras algorithm in teaching AI cars to follow the shortest path. Just determining the shortest route is not sufficient; the car needs to navigate it effectively.
We do that by generating a corridor around the shortest path, compelling the AI car to adhere to it while following the right-hand rule. This innovative approach ensures precise navigation without the need for explicit target points. Join me on this journey of understanding AI, where theory meets practical implementation in the fascinating world of autonomous vehicle algorithms. Dont forget to like, share, and subscribe for more insightful lessons!
🚗FINAL CHALLENGE: DESIGN AND TEST YOUR RACING CAR HERE🚗
https://radufromfinland.com/projects/aiCarPlayground/?s=race_1
https://radufromfinland.com/projects/aiCarPlayground/?s=race_2
https://radufromfinland.com/projects/aiCarPlayground/?s=race_3
https://radufromfinland.com/projects/aiCarPlayground/?s=race_4
OR THESE WITH THE DECISION BOUNDARY SLOW (IT CAN BE SLOW...):
https://radufromfinland.com/projects/aiCarPlayground/?s=race_1_d
https://radufromfinland.com/projects/aiCarPlayground/?s=race_2_d
https://radufromfinland.com/projects/aiCarPlayground/?s=race_3_d
https://radufromfinland.com/projects/aiCarPlayground/?s=race_4_d
💻CODE💻
https://github.com/gniziemazity/understanding_ai
Follow Along: 2. Dijkstra Part 1
Code After This Lesson: 3. Dijkstra Part 2
💬DISCORD💬
discord.gg/gJFcF5XVn9
⭐LINKS⭐
Self-driving Car Course: https://www.youtube.com/playlist?list=PLB0Tybl0UNfYoJE7ZwsBQoDIG4YN9ptyY
#DijkstrasAlgorithm #UnderstandingAI #Pathfinding #JavaScriptCoding #AIPlayground #InteractiveLearning #LocationBasedApplications
⭐TIMESTAMPS⭐
00:00 Introduction
01:09 Generating the Corridor
06:05 Temporary Graph Manipulation
19:35 The Final Challenge Using Dijkstras Shortest Path With AI [Understanding AI - Lesson 7 / 15]](https://i.ytimg.com/vi/TKIKFrcvnv4/mqdefault.jpg)








![A Virtual World - JavaScript Course: Lesson 1 / 11 [Spatial Graphs]
Welcome to Phase 2 of my Self-Driving Car Course!
You dont need to have watched Phase 1 to start this course. A Virtual World is a standalone course where well construct a virtual environment entirely from the ground up. Get ready to use basic HTML, CSS, and JavaScript to craft this world where self-driving cars (or anything you desire, like Pokémon :-D) can roam freely. Our primary focus will be on generating this dynamic world, with the integration of self-driving car code coming at the end.
This course serves as preparation for Phase 3, Understanding AI, where well delve into neural networks and other advanced AI techniques. By the end of Phase 3, youll comprehend the inner workings of neural networks, the importance of hidden layers, and more. But to get there, we need this sophisticated world to create complex scenarios, as our previous one was too simplistic. So, if youre eagerly anticipating neural networks, please be patient and enjoy Phase 2 in the meantime.
In this phase, youll acquire valuable skills, including mathematics, algorithms, programming, and design—skills that greatly benefited me during my PhD and my time at Microsoft. Im confident theyll boost your career as well.
Heres what youll learn:
* Building a spatial graph from scratch and creating an editor with a dynamic viewport.
* Understanding the mathematics and logic behind user-friendly interfaces in modern software.
* Generating road borders, buildings, and trees using geometry and creating a 3D illusion.
* Implementing road markings to prepare for advanced self-driving challenges.
* Enhancing the world editor for user convenience and maximizing auto-generated content.
* Loading real-world data from openstreetmap for city-based simulations.
* Creating a minimap for navigation in expansive worlds.
Have Fun! :-)
⭐PLAYLISTS ⭐
Phase 1: https://www.youtube.com/playlist?list=PLB0Tybl0UNfYoJE7ZwsBQoDIG4YN9ptyY
Phase 2: https://www.youtube.com/playlist?list=PLB0Tybl0UNfZtY5IQl1aNwcoOPJNtnPEO
💻CODE💻
https://github.com/gniziemazity/virtual-world
⭐FINAL APP⭐
https://radufromfinland.com/projects/virtualworld
⭐ALL PREREQUISITES⭐
https://www.youtube.com/playlist?list=PLB0Tybl0UNfZ3nnHVg8SJ4uK3R4QD6R0H
⭐Pythagorean Theorem Video⭐
https://youtu.be/iqSlzYXdFzw
⭐Euclidean Distance Video⭐
https://youtu.be/3rPwfmrCwVw
⭐App from Phase 1⭐
https://radufromfinland.com/projects/selfdrivingcar
☕Buy me a Coffee?☕
https://www.buymeacoffee.com/radum
⚡️Join this Channel⚡️
https://youtube.com/@radu/join
⭐Timestamps⭐
00:00 Introduction
05:57 HTML Canvas Project Setup
10:52 What are Spatial Graphs?
12:27 Implementing a Spatial Graph in JavaScript
20:41 Implementing the Graph Functionality
48:28 Outro and Special Thanks to prof. Căiniceanu A Virtual World - JavaScript Course: Lesson 1 / 11 [Spatial Graphs]](https://i.ytimg.com/vi/V_C7L7zelz8/mqdefault.jpg)
