SPQuad *quad = [SPQuad quadWithWidth:100 height:100 red:255 green:255 blue:255]; [self addChild:quad]; quad.redValue = 0; quad.greenValue = 0; quad.blueValue = 0; [quad setRedValue:255 ofVertex:0]; [quad setGreenValue:255 ofVertex:1]; [quad setBlueValue:255 ofVertex:2]; [quad setRed:255 green:255 blue:255 ofVertex:3]; NSLog(@"red:%i green:%i blue:%i", quad.redValue, quad.greenValue, quad.blueValue); for (int i=0; i<4; i++) NSLog(@"vertex %i red:%i green:%i blue:%i", i, [quad redValueOfVertex:i], [quad greenValueOfVertex:i], [quad blueValueOfVertex:i]);
No comments so far. Feel free to edit this part of the page.