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

Method setRed

source/core/StarColor.cpp:285–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void Color::setRed(uint8_t r) {
286 m_data[0] = r / 255.0f;
287}
288
289void Color::setGreen(uint8_t g) {
290 m_data[1] = g / 255.0f;

Callers 3

fromUint32Method · 0.80
toMethod · 0.80
jsonToColorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected