basic basic question regarding color/colour

As a way to get to know oF better I thought I’d try migrating a Processing sketch.

I’ve chosen one where I create objects on demand that have their colour randomly generated and then retained for the life of that object.

In Processing it was easy just to instantiate a variable of type ‘color’ and use that.

I don’t know if I’ve been looking hard enough but I can’t figure out if I can do the same thing within oF or if I have to work around that e.g. by saving the R, the G and the B values separately or is there a cleaner way to do it.

I’d be grateful for any advice given.

Ta!

ofColor :slight_smile:

it’s defined in utils/ofTypes.h and it’s just a class with rgba vars

Splendid stuff, I’ll give it a try.

Much appreciated!