MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setGreenF

Method setGreenF

source/core/StarColor.cpp:273–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void Color::setGreenF(float g) {
274 m_data[1] = clamp(g, 0.0f, 1.0f);
275}
276
277void Color::setBlueF(float b) {
278 m_data[2] = clamp(b, 0.0f, 1.0f);

Callers 2

temperatureMethod · 0.80
hsvaMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected