MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setGreen

Method setGreen

source/core/StarColor.cpp:289–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void Color::setGreen(uint8_t g) {
290 m_data[1] = g / 255.0f;
291}
292
293void Color::setBlue(uint8_t b) {
294 m_data[2] = b / 255.0f;

Callers 3

fromUint32Method · 0.80
toMethod · 0.80
jsonToColorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected