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

Method setAlpha

source/core/StarColor.cpp:297–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void Color::setAlpha(uint8_t a) {
298 m_data[3] = a / 255.0f;
299}
300
301uint32_t Color::toUint32() const {
302 uint32_t val;

Callers 6

skyRectColorsMethod · 0.80
renderImplMethod · 0.80
fromUint32Method · 0.80
temperatureMethod · 0.80
toMethod · 0.80
jsonToColorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected