MCPcopy 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
281void Color::setAlphaF(float a) {
282 m_data[3] = clamp(a, 0.0f, 1.0f);
283}
284
285void Color::setRed(uint8_t r) {
286 m_data[0] = r / 255.0f;

Callers 12

renderMethod · 0.80
skyFlashColorMethod · 0.80
destructionUpdateMethod · 0.80
renderObjectPreviewsMethod · 0.80
renderMethod · 0.80
beamDrawablesMethod · 0.80
renderWireMethod · 0.80
updateMethod · 0.80
renderMethod · 0.80
hsvaMethod · 0.80
processImageOperationFunction · 0.80
applyCommandsMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected