Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ setAlphaF
Method
setAlphaF
source/core/StarColor.cpp:281–283 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
279
}
280
281
void Color::setAlphaF(float a) {
282
m_data[3] = clamp(a, 0.0f, 1.0f);
283
}
284
285
void Color::setRed(uint8_t r) {
286
m_data[0] = r / 255.0f;
Callers
12
render
Method · 0.80
skyFlashColor
Method · 0.80
destructionUpdate
Method · 0.80
renderObjectPreviews
Method · 0.80
render
Method · 0.80
beamDrawables
Method · 0.80
renderWire
Method · 0.80
update
Method · 0.80
render
Method · 0.80
hsva
Method · 0.80
processImageOperation
Function · 0.80
applyCommands
Method · 0.80
Calls
1
clamp
Function · 0.85
Tested by
no test coverage detected