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

Method red

source/core/StarColor.cpp:253–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253uint8_t Color::red() const {
254 return uint8_t(round(m_data[0] * 255));
255}
256
257uint8_t Color::green() const {
258 return uint8_t(round(m_data[1] * 255));

Callers 3

fromMethod · 0.80
jsonFromColorFunction · 0.80
TESTFunction · 0.80

Calls 1

roundFunction · 0.85

Tested by 1

TESTFunction · 0.64