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

Method setRedF

source/core/StarColor.cpp:269–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void Color::setRedF(float r) {
270 m_data[0] = clamp(r, 0.0f, 1.0f);
271}
272
273void Color::setGreenF(float g) {
274 m_data[1] = clamp(g, 0.0f, 1.0f);

Callers 2

temperatureMethod · 0.80
hsvaMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected