MCPcopy Create free account
hub / github.com/GValiente/butano / hue_shift

Function hue_shift

butano/src/bn_color_effect.cpp.h:149–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void hue_shift(fixed intensity, span<color> colors_ref)
150{
151 BN_ASSERT(intensity >= 0 && intensity <= 1, "Invalid intensity: ", intensity);
152
153 if(int value = fixed_t<5>(intensity).data())
154 {
155 hw::palettes::hue_shift(colors_ref.data(), value, colors_ref.size(), colors_ref.data());
156 }
157}
158
159void hue_shift(const span<const color>& source_colors_ref, fixed intensity,
160 span<color> destination_colors_ref)

Callers 2

_apply_global_effectsMethod · 0.70
apply_effectsMethod · 0.70

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected