And back again with another question. ..
I think I have a problem with the Colourbase objects. Because I get back some messed up values again.
I initialize my ColourBase objects like this:
for (int i=0;i<6; i++)
{ cArray[i] = ColourBase();
}
Is that good or is the memory space then not allocated? I've read that the "new" is not supported. I looked in this forum post:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1216134904
and try to include the code, but I get a multiple definition error (so I suppose its already somewhere, but where?).
I try to refer to the ColourBase objects in a function like this:
calculateShadeTint(cArray[i]); // call to function and passing the object
void ColourPalette::calculateShadeTint(ColourBase c)
{
c.tintHSBColor[0] = c.wheelHSBColor[0];
c.tintHSBColor[1] = 255;
c.tintHSBColor[2] = 255;
}
What do I do wrong?