Gloom is a rejected character from Inside Out, and was going to have been the main antagonist of the film and was going to have been grown bigger as he becomes more important.
Early concepts of him can be seen in The Art of Inside Out book.
Early Gloom concept with an early version of Riley
Another piece of concpet of Gloom
How Gloom would grow throughout the film