o
odin.langpkg.dev
packages / library / electric_fields

electric_fields

13a6c2elibrary

Electric Field Simulation and Visualization

No license · updated 6 months ago

Electric Fields

Screenshot of the program

This is a very simple electric field visualization that I wrote using Odin and raylib.

I wrote this program my first week taking Physics 2 in college, because I was very confused by the material and wanted to help myself understand it better. Naturally, what better way to understand something than to code a program to simulate it?

There's also some simple UI stuff in here that I spent some time working on, because I haven't ever written my own custom UI system before and wanted to learn how that worked as well.

To run the visualizer, perform the following command:

odin run electric-fields.odin -file