Hello, everyone! In the previous video, we created a simulation of an electrical discharge using a line with multiple segments. This time, we’ll stick with a similar concept, although we’ll approach it a bit differently. We’ll create something like an ECG monitor that displays the characteristic heartbeat waveform.


For example, because Line2D runs on the CPU, while a shader runs on the GPU (much faster). But of course, many effects can be achieved in different ways. I just happen to prefer shaders.