MCPcopy Create free account
hub / github.com/axmolengine/axmol / setColor

Method setColor

core/2d/AtlasNode.cpp:157–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void AtlasNode::setColor(const Color3B& color3)
158{
159 Color3B tmp = color3;
160 _colorUnmodified = color3;
161
162 if (_isOpacityModifyRGB)
163 {
164 tmp.r = tmp.r * _displayedOpacity / 255;
165 tmp.g = tmp.g * _displayedOpacity / 255;
166 tmp.b = tmp.b * _displayedOpacity / 255;
167 }
168 Node::setColor(tmp);
169}
170
171void AtlasNode::setOpacity(uint8_t opacity)
172{

Callers 2

setOpacityMethod · 0.95
setOpacityModifyRGBMethod · 0.95

Calls 1

setColorFunction · 0.85

Tested by

no test coverage detected