This is a little tool that simulates a lightning strike using a breadth-first-search algorithm. The project is directly inspired by a recent Numberphile video, as well as my own motivation to improve my abilities with Svelte and Tailwind CSS.
This is a Svelte project. A more detailed set of instructions for making your own can be found here.
Install the dependencies...
cd lightning-svelte
npm install
...then start Rollup:
npm run dev
Navigate to localhost:5000. You should see the app running. Edit a component file in src
, save it, and reload the page to see your changes.
Or for a marginally faster experience, run it in build mode, though it won't have live changes.
npm run build
npm start