Draw Thumbnail

Hello. I’m trying to draw a thumbnail in the player with volume changes by segments, approximately as in the picture, but I can’t figure out how to do it. Any ideas? I’ll be glad to hear any versions.