PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Pixel color

PringlesOriginal · 08 Aug 2004, 23:50 UTC
Due to the lack of documentation, i'm finding it difficult to figure things out by myself.

I wan to draw a line using the DrawLine function, but i'm not shure how to create a color...can anybody enlighten on the "Pixel color" topic?
Color(r, g,b) will create a color. r,g, and b are 0-255, and are converted to a 16 bit color in 565 format.
PringlesOriginal · 09 Aug 2004, 01:42 UTC
thanks, it worked
PringlesOriginal · 09 Aug 2004, 01:48 UTC — need insight on how to DrawLine()
i tried this:
Code:

DrawLine(0,0,100,100,Color(255,0,0));


but it doesnt work...What am I doing wrong?
PringlesOriginal · 09 Aug 2004, 02:54 UTC
figured it out by myself, dont need help with DrawLine anymore