Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ setRedF
Method
setRedF
source/core/StarColor.cpp:269–271 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
267
}
268
269
void Color::setRedF(float r) {
270
m_data[0] = clamp(r, 0.0f, 1.0f);
271
}
272
273
void Color::setGreenF(float g) {
274
m_data[1] = clamp(g, 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