I already learnt the working mechanis of RGBA, so I realised that hexadecimal numbers that belongs to the different colours can be turned into simple integers. It means that I can store colours in integers, even though some of them are quite big.
My question is that how can I get the colour that belongs to an integer I give to the program?
EDIT: of course I forgot to mention that I use Allegro too but I'm new in it...are there any functions of whatever that can do it?