WATCH a behind-the-scenes video about the making of Aladdin
They actually wrote the Genie character with Robin Williams in mind, doing test animations to one of his comedy albums before he signed-on to do the project. R.I.P. Robin Williams
(Source: https://www.youtube.com/)