Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ setRed
Method
setRed
source/core/StarColor.cpp:285–287 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
283
}
284
285
void Color::setRed(uint8_t r) {
286
m_data[0] = r / 255.0f;
287
}
288
289
void Color::setGreen(uint8_t g) {
290
m_data[1] = g / 255.0f;
Callers
3
fromUint32
Method · 0.80
to
Method · 0.80
jsonToColor
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected