MCPcopy Create free account
hub / github.com/DISTRHO/DPF / minus

Method minus

dgl/src/Color.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124Color Color::minus(const int value) const noexcept
125{
126 const float fvalue = static_cast<float>(value)/255.f;
127 Color color(*this);
128 color.red -= fvalue;
129 color.green -= fvalue;
130 color.blue -= fvalue;
131 color.fixBounds();
132 return color;
133}
134
135Color Color::minus(const float value) const noexcept
136{

Callers

nothing calls this directly

Calls 1

fixBoundsMethod · 0.80

Tested by

no test coverage detected