Skip to content
← Back to Community
⚡Interactive Tesla Coil Simulator⚡
Profile icon
ChaseLean

Watch the coil generate realistic lightning bolts in real time. Click near the coil to make lightning arc towards the cursor!

cover

Features

Adjust the characteristics of the lightning with the menu on the side.

  • Intensity: Controls the strength of each bolt.
  • Frequency: Controls how many bolts are generated every second.
  • Linearity: Controls how straight the bolts are.
  • Conductivity: Controls how far each bolt travels.
  • Branching tendency: Controls how likely each bolt is to branch off.

Arc to cursor

Click on the screen close to the tesla coil to make sparks jump to your cursor. The greater the intensity, the further the arc jumps, and the thicker it is.

Note: Maximize the GUI window for the best experience.

Troubleshooting

  • Some of you have reported that the app isn't loading. This issue happens occasionally. Try refreshing and waiting a while, or come back later and it should be fine.
  • The lightning usually runs smoothly at medium intensity. At certain times, it might be laggy. It might have to do with traffic or the server.
  • If you experience any issues with the code, feel free to tell me about it!

Have fun!

Let me know what you think, and share some cool pictures of your custom tesla coil in the comments below!

Edit: Thanks for the support everyone. You guys are awesome 🔥😍

Voters
Profile icon
AndrewGowan
Profile icon
16c9rs
Profile icon
noahgoad2000
Profile icon
hexicy
Profile icon
tcsirvogalindo
Profile icon
COLBYKONERT
Profile icon
GabrielLamour
Profile icon
h7777
Profile icon
RishiMohanty
Profile icon
SipsyWipsy
Comments
hotnewtop
Profile icon
JakeHu2020

I was the 26th upvote. You're very welcome for getting on trending :)

Profile icon
JakeHu2020

hey why are you upvoting this

Profile icon
winnerwannabe2

@JakeHu2020 BECAUSE WE CAN

Profile icon
JakeHu2020
Profile icon
CrawzyLedonen

@JakeHu2020 because this is a good repl and you worked very hard you deserved to get botted upvotes (I AM KIDDING I FOLLOW TOS PLS DON'T BE MEAN TO MEE)

Profile icon
JakeHu2020

@CrawzyLedonen I guess so

Profile icon
CodingElf66

The graphics are absolutely awesome, nice job!

Profile icon
drevilspawn

This was really fun to play around with!

Profile icon
SAbhinav

Yeah really coool. This absolutely deserves 10 CRORE forks

Profile icon
PixiGem

@SAbhinav what do you mean by 10 crore?

Profile icon
PixiGem

@SAbhinav i googled it and it says it is an indian number system.
BTW you shud say 100 million forks instead of 10 crore forks
bcoz many ppl wont understand as they are not Indians like you

Profile icon
SAbhinav
Profile icon
SAbhinav

@PixiGem sorry for telling 10 crore instead of 100 million

Profile icon
PixiGem

@SAbhinav nvm lol!
BTW it is hard for me to learn indian system and it maybe hard for u learn international system

Profile icon
SAbhinav

@PixiGem bro I know both indian and international system.

Profile icon
PixiGem
Profile icon
JOELSHAJI1

@PixiGem we usually learn international system first then we go to indian system because they are more similar

Profile icon
CaydenFisher-Ac

@PixiGem they can put what ever they please, they should not have to do what you suggest just because most people would not understand it.

Profile icon
DellWithGaming
Profile icon
Xshoury

Awesome. I found a bug, when you pull the lighting to the middle (the light):

main.py:129: RuntimeWarning: invalid value encountered in true_divide theta = acos(dot(arr1, arr2) / (linalg.norm(arr1) * linalg.norm(arr2))) * 180 / pi

I assume it's a divide by zero mathematical error.

Profile icon
ChaseLean

@Xshoury Yup, that's right. I tried to divide the distance from the cursor to the coil. Thanks for notifying, I fixed it.

Profile icon
AProgrammerDude

my hair is standing on end now nice simulaton

Profile icon
WOAH242

That is really cool I wish I had more experience with python so I could help.

Profile icon
RyannVipin

its not cool its very very very very awesome i cant tall about its keep it up

Profile icon
JSDRAGONCODER

what difference between intensity and conductivity? You did explain it but It seems the same to me. Otherwise, really fun to experiment with!

Profile icon
ChaseLean

@JSDRAGONCODER Thanks! Intensity controls the thickness of each bolt, which also allows more branches to form from each individual bolt. Conductivity increases the length of each bolt while decreasing branching interval but maintains the thickness. This makes the lightning seem to travel further.

Profile icon
JSDRAGONCODER

@ChaseLean Thanks!

Profile icon
RayhanADev

Really kewl! Where'd you learn the math for this?, it's so complex!

Profile icon
ChaseLean

@RayhanADev Thanks! I'm just started a math uni course, so it's fun to apply the concepts. Most of them involve finding angles to make the lightning go where I want.

Profile icon
RayhanADev

@ChaseLean that's amazing, I hope you enjoy it! And again this is awesome :D.

Profile icon
CodingElf66

If you pull the cursor to right in the middle of the coil (where the lightning starts simulating from), I get a zero division error.

Profile icon
ChaseLean

@CodingElf66 You're right. Thanks for notifying, I fixed it.

Profile icon
FajarianFajar

Vvv

Profile icon
tussiez

Wow!

Profile icon
RishiMohanty

coooooooooooooooooolllll

Profile icon
FlaminHotValdez

Awesome! If you maxout intensity, frequency, conductivity, and branching tendency than decrease linearity you get a lag machine

Profile icon
ChaseLean

@FlaminHotValdez Hahaha nice observation. At first it was even worse, and I had to restrict the maximum of each feature to a reasonable amount.

Profile icon
sojs

Really cool!

Profile icon
ruiwenge2

cool

Profile icon
JBloves27

Really nice job creating the graphics!

Profile icon
STCollier

This is quite impressive, especially with python!! Great job!

Profile icon
MrVoo

Wow, finally something made with tkinter that doesn't look ugly!

and nobody asked but f i r s t

Profile icon
ChaseLean

@MrVoo Thanks! Yeah, it's surprisingly hard to design beautiful GUIs with Tkinter. Takes some time to make it work.

Profile icon
JohnNewman4

you guys are so helpful thanks
https://rozmusic.com/

Profile icon
mahdeg

Can someone gift me hacker it would really make my day

Profile icon
zaknorriszaknor

Call of Duty is the best shooting game ever with the feature of multi-player gaming.

click here.. https://subapks.com/call-of-duty-mod-apk/

Profile icon
zaknorriszaknor

Evertale Mod Apk is a game in which you will be transported to a mysterious world in which

check ot for more information.. https://apksdot.com/evertale-mod-apk/

Profile icon
zaknorriszaknor

Growing crops and raising livestock is one of the most profitable and widely practiced industries in the world.

click here for more details.. https://apksspace.com/farming-simulator-18-mod-apk/

Profile icon
zaknorriszaknor

The game FarmVille 2 Mod Apk will make sure that you get the best of the best and you will be able to get the best features with some of the most unique and some of the most extraordinary features.

check it now.. https://apksspot.com/farmville-2-mod-apk/

Profile icon
zaknorriszaknor

In Noizz Mod Apk you can edit your videos and photos without watermarks shown on your pictures and videos. Free to download and no advertisement will be displayed.

Download it from here.. https://apkshut.com/noizz-mod-apk/

Profile icon
zaknorriszaknor

Marvel Contest of Champions Mod Apk is a thrilling game; the game has vast, enormous battle and fighting series. Contest of champions is part of one of the series of marvel production.

click here.. https://apksdesk.com/marvel-contest-of-champions-mod-apk/

Profile icon
TinyMooshmallow

very laggy but very satisfying

Profile icon
Shayaank77

Amazing!!

Profile icon
justaperson22

This is really good!