struct command?
ohVaNiLLaGoRiLLa
Posts: 33
is there anything in the propeller language that is like struct in C?
for example if you wanted to put numbers for an rgb color you could do something like this
and then you could put values in for each r,g, and b
variable = (RGB){255, 0, 255};
for example if you wanted to put numbers for an rgb color you could do something like this
struct RGB { byte r; byte g; byte b;};
and then you could put values in for each r,g, and b
variable = (RGB){255, 0, 255};
Comments
-Phil