Hex was one of the geometric deities created by the Axolotl twins, he was actually a being known as a Star Demon, there were times where alien goats had to be “sacrificed” (aka thrown out of their home planet) so their souls are eaten by him, a long time ago he noticed the Glitch Dragon (Yuanjian) which caused one of the 4 shapes named Reddy to fuse out of the dragon, Hex chuckled at them until Reddy, being stupid, decided to try and fight him only for him to start chasing Hex (which caused Reddy to get sent to Hell because Orbit was annoyed by this), and then later on, many years after Lux and Sparky departed from the world of nothing, Turk was the only one left in there, so Hex decided to throw Turk into Earth out of empathy, and then Hex became lonely afterwards (since the others except Leafy ignored him), so he went to the Star realm, he and the other demons then saw a Dark Star (a corrupted star parasite thing), he approached it only to become corrupted afterwards, a few days later he somehow woke up in a jail (in space.. for some reason) and escaped along with the other prisoners, he managed to get to Earth only to find the 4 shapes, he decided that he should corrupt the Earth which also lead to Lux almost becoming a Dark Star Demon, Hex then decided that it was a useless idea and changed, his original personality came back afterwards even though the corruption also made him kind of a jerk.
(Wait.. I did say SOME lore didn’t I?)