Share your repls and programming experiences

← Back to all posts
⚡Interactive Tesla Coil Simulator⚡
ChaseLean

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

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
EmmanuelMonroy
MARIANA-BERNARD
NischalComstock
YairDayan
3quarterscolon
cosc
Mr-ZZ
19rennisons
YoshitaAligina
OscarWhiter
Comments
hotnewtop
JakeHu2020

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

JakeHu2020

hey why are you upvoting this

CodingElf66

The graphics are absolutely awesome, nice job!

drevilspawn

This was really fun to play around with!

SAbhinav

Yeah really coool. This absolutely deserves 10 CRORE forks

PixiGem

@SAbhinav what do you mean by 10 crore?

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

SAbhinav
SAbhinav

@PixiGem sorry for telling 10 crore instead of 100 million

PixiGem

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

SAbhinav

@PixiGem bro I know both indian and international system.

PixiGem

nice @SAbhinav

JOELSHAJI1

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

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.

DellWithGaming
AProgrammerDude

my hair is standing on end now nice simulaton

WOAH242

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

RyannVipin

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

JSDRAGONCODER

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

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.

JSDRAGONCODER

@ChaseLean Thanks!

RayhanADev

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

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.

RayhanADev

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

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.

ChaseLean

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

Xshoury

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

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

ChaseLean

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

FajarianFajar

Vvv

tussiez

Wow!

RishiMohanty

coooooooooooooooooolllll

justaperson22

This is really good!

FlaminHotValdez

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

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.

sojs

Really cool!

ruiwenge2

cool

JBloves27

Really nice job creating the graphics!

STCollier

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

MrVoo

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

and nobody asked but f i r s t

ChaseLean

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

Robin8485

Thank you for helping people get the information they need. Great stuff as usual. https://www.indigocard.org/

DellWithGaming

Taking a lot of time to load

AidenSweeney

cool

iProxyi

Very very nice man keep up the work!

Triph

This is good

teasdcam000

very well done

Nipunn

COOL

zaydi

its a bit off with the lighting

LijaAnil

good one

RunningBeast364

Its very nice bro