Reference

Parts

ay2d_get_part_opacities

ay2d_status ay2d_get_part_opacities(const ay2d_model *m, float *values, size_t n);

Every part's opacity as you set it, after the last update (1 when never set). Thread: any.

ay2d_set_part_opacities

ay2d_status ay2d_set_part_opacities(ay2d_model *m, const uint32_t *indices,
                                    const float *values, size_t n);

Fades parts. Your value multiplies over what the model itself gives the part; at 0 every mesh in the part is hidden. Held to 0 to 1, takes effect at the next update. Thread: any.