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

Method alpha

source/core/StarColor.cpp:265–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265uint8_t Color::alpha() const {
266 return uint8_t(m_data[3] * 255);
267}
268
269void Color::setRedF(float r) {
270 m_data[0] = clamp(r, 0.0f, 1.0f);

Callers 3

skyRectColorsMethod · 0.45
fromMethod · 0.45
jsonFromColorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected