Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ red
Method
red
source/core/StarColor.cpp:253–255 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
251
}
252
253
uint8_t Color::red() const {
254
return uint8_t(round(m_data[0] * 255));
255
}
256
257
uint8_t Color::green() const {
258
return uint8_t(round(m_data[1] * 255));
Callers
3
from
Method · 0.80
jsonFromColor
Function · 0.80
TEST
Function · 0.80
Calls
1
round
Function · 0.85
Tested by
1
TEST
Function · 0.64