Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ setBlueF
Method
setBlueF
source/core/StarColor.cpp:277–279 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
275
}
276
277
void Color::setBlueF(float b) {
278
m_data[2] = clamp(b, 0.0f, 1.0f);
279
}
280
281
void Color::setAlphaF(float a) {
282
m_data[3] = clamp(a, 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