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

Method blue

source/core/StarColor.cpp:261–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261uint8_t Color::blue() const {
262 return uint8_t(round(m_data[2] * 255));
263}
264
265uint8_t Color::alpha() const {
266 return uint8_t(m_data[3] * 255);

Callers 3

fromMethod · 0.80
jsonFromColorFunction · 0.80
TESTFunction · 0.80

Calls 1

roundFunction · 0.85

Tested by 1

TESTFunction · 0.64