Alex performing Singing in the Rain as he attacks the writer and his wife was not scripted. Stanley Kubrick spent four days experimenting with this scene, finding it too conventional. Eventually he approached Malcolm McDowell and asked him if he could dance.
Stanley Kubrick was a film director, screenwriter, producer, cinematographer, editor, and photographer. Part of the New Hollywood film-making wave.