How to modify the color of created sprites without an image []

Hello all. I was wondering if there was a way I could change the color of a default sprite with no image defined for it in I imagine it would be something like:

var sprite = createSprite(width/2, height/2, 50, 50);
sprite.color = #fff;

Any help on how I would go about this would be appreciated :)


Sign In or Register to comment.