I loved the dance video! When I looked at the code you posted, my eyes glazed over and I felt immediately bored. But very quickly with the dance video I could tell what was happening! I think that if I were a student in a class learning that, I would be more interested in sitting down and studying the code after I saw what it could do.
I don’t think that many college students would be too embarrassed to do something like that in class. Maybe a few would be shy, but I think if the professor made a friendly environment in the class, everyone would be excited to participate! I think humans have an innate love of doing fun and even silly activities.