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!
