Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ setGreenF
Method
setGreenF
source/core/StarColor.cpp:273–275 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
271
}
272
273
void Color::setGreenF(float g) {
274
m_data[1] = clamp(g, 0.0f, 1.0f);
275
}
276
277
void Color::setBlueF(float b) {
278
m_data[2] = clamp(b, 0.0f, 1.0f);
Callers
2
temperature
Method · 0.80
hsva
Method · 0.80
Calls
1
clamp
Function · 0.85
Tested by
no test coverage detected