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

Method create

Source/ColorAction.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "SpriteColor.h"
22
23ColorAction* ColorAction::create(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, float afrom ,
24 float ato, int copyColor, GDHSV* hsv)
25{
26 ColorAction* ret = new ColorAction();
27 if (ret->initWithDuration(duration, target, from, to, afrom, ato, copyColor, hsv))
28 {
29 ret->autorelease();
30 return ret;
31 }
32
33 delete ret;
34 return nullptr;
35}
36
37bool ColorAction::initWithDuration(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to,
38 float afrom, float ato, int copyColor, GDHSV* hsv)

Callers

nothing calls this directly

Calls 1

initWithDurationMethod · 0.45

Tested by

no test coverage detected