Heartrate monitor UI

Godot Version

4.2.1 Mono

Question

I wanted to make a little heartrate monitor UI, but I’m unsure how to go about it. How would you make something like this with adjustable BPM?
image

1 Like

If it were me, I would start messing around with some sort of sin() or cos() function, and have the amplitude and period of the wave change at a fixed rate to kinda emulate a pulse line.
As to how to actually implement it in Godot, I’m still new so take this with a grain of salt, and use a Line2D node (or 3D I guess) and create and assign/update the points with the function I mentioned above

1 Like

Data with ECG curves can be found here: ECG dataset | Kaggle

1 Like

That could be a great tutorial to extend Custom drawing in 2D — Godot Engine (stable) documentation in English

1 Like