MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / ColorAction

Class ColorAction

Source/ColorAction.h:27–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25class SpriteColor;
26
27class ColorAction : public ax::ActionInterval
28{
29 private:
30 ax::Color3B _from, _to;
31 float _afrom, _ato;
32 SpriteColor* _target;
33 GDHSV* _hsv;
34
35 int _copyColorId;
36
37 float _deltar, _deltag, _deltab, _deltaa;
38
39 public:
40 static ColorAction* create(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, float afrom = -1, float ato = -1, int copyColor = -1, GDHSV* hsv = nullptr);
41
42 void startWithTarget(ax::Node* target) override;
43 void update(float dt) override;
44
45 bool initWithDuration(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, float afrom = -1, float ato = -1, int copyColor = -1, GDHSV* hsv = nullptr);
46};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected