Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
265
uint8_t Color::alpha() const {
266
return uint8_t(m_data[3] * 255);
267
}
268
269
void Color::setRedF(float r) {
270
m_data[0] = clamp(r, 0.0f, 1.0f);
Callers
3
skyRectColors
Method · 0.45
from
Method · 0.45
jsonFromColor
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected