What are the differences between 'ofPixels' and 'ofBasePixels'?

What are the differences between ‘ofPixels’ and ‘ofBasePixels’??

Hi,
actually there’s no ofBasePixels, it is ofBaseHasPixels
ofPixels is a class which holds pixel data along with a bunch of useful functions.
ofBaseHasPixels is a pure virtual class, which is used for extending other classes that will contain an ofPixels object.
This is used mostly for polymorphism and it is quite strange that you’ll ever have to use it.

cheers

1 Like

ahaha thank u! I’ll try to figure it out ;D