MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / gradient_remove

Function gradient_remove

StereoKitC/color.cpp:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174///////////////////////////////////////////
175
176void gradient_remove(gradient_t gradient, int32_t index) {
177 memmove(&gradient->keys[index], &gradient->keys[index + 1], sizeof(gradient_key_t) * (gradient->count - (index + 1)));
178 gradient->capacity -= 1;
179
180}
181
182///////////////////////////////////////////
183

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected