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

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 p5.play.js. 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 :)

Answers

Sign In or Register to comment.