| 155 | } |
| 156 | |
| 157 | void 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 | |
| 171 | void AtlasNode::setOpacity(uint8_t opacity) |
| 172 | { |
no test coverage detected