Skip to content
IzoklinalPublic

About

Light simulation on C with raylib

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This project is my hardly inspired by Onigiri's simulation of light that I implemented with C and raylib

For example, I implemented Thomas Young's double slit experiment that proved that light is a wave:

I used two ways of counting 'neighbours':

  1. Counting four of cell's neighbours (left, right, up, down)
  2. Counting eight of cell's neighbours (just like the king in chess moves)

Both of them got their unique patterns, you could replace this line

DrawRectangleRounded(rect, el->style->border.radius, 1, el->style->background);

with this

DrawRectangleV(el->style->pos, el->style->size, el->style->background);

and than you'll get differnt picture

How to run

Disclaimer

I'm not a proffesional programmer, I just like doing some things that randomly pops up in my head, so fuck you if you want to critique me, because I do it just for fun.

If you want to run this project, then use .bat file (if you use Linux, then accept my regrets) and the program will compilate and start (also you need to have raylib on your PC)

About

Light simulation on C with raylib

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages