My programming knowledge is coming close to it's apogee.

My programming knowledge is coming close to it’s apogee. Trying to do stuff that is too hard for me.

I want to pass the led CRGB to my own class so that I can draw all the particles in to the leds — trying to do something like this:

void draw(struct CRGB *data, struct FastPart *obja);

or maybe

CRGB draw(struct CRGB *data, struct FastPart *obja);

FastPart is the class I am writing:

class FastParticle
{
public:
FastParticle();
void update();
void init();
void draw(struct CRGB *data, struct FastParticle *obja);
void setLife(unsigned long _life);
bool alive();
void kill();
unsigned long age();
int ledPos();
int pos;
int vel;
int acc;
int LEDmm;
CRGB colour;
unsigned long birth;
unsigned long life;
unsigned long death;
private:
unsigned long _lastUpdate;
};

Any help with my “hacking” much appreciated!

Is it not working? Or you’re looking for advice on how to write the functions? I’m not sure what you’re asking.

Sorry - yes, it’s not working. Passing an array of a class to itself via a function. I know it’s not strictly FastLED based :slight_smile: