Sounds like you need to learn some fundementals, especially if you want to play with graphics.
If your going to have fun with graphics with code then you really need to learn how those graphics are stored in memory.
Things you shoud probably look up are hex,binary,decimal and learn how they relate. Then learn different number types like integer, byte,word....what your trying to learn there is that numbers like integers are made of multiple amounts of bytes, this is important so you can understand that a pixel which represent Red, Green, Blue and alpha would need to be made of 4 bytes, which can also be seen as one integer. This will help you understand how graphics are stored in memory and why the color needs to be set the way it does.
A color of RGB is made of 3 bytes. A byte is a number that can have the range of 0 to 255. In hex 0 to 255 is 00 to FF.
So to make a color of r,g,b where red is 255, green is 0 and blue is 255 it would be FF00FF.
Im really sorry I cant be of more help but you really should google the things I mention above and try to learn them, one day youll get it and graphics are so much fun.