MCPcopy 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
277void Color::setBlueF(float b) {
278 m_data[2] = clamp(b, 0.0f, 1.0f);
279}
280
281void Color::setAlphaF(float a) {
282 m_data[3] = clamp(a, 0.0f, 1.0f);

Callers 2

temperatureMethod · 0.80
hsvaMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected