Skip to content

cf_sprite_set_opacity

Category: sprite
GitHub: cute_sprite.h


Sets the sprite's opacity, a value from 0-1.

void cf_sprite_set_opacity(CF_Sprite* sprite, float opacity) { CF_ASSERT(sprite); sprite->opacity = opacity; }

CF_Sprite
cf_sprite_get_opacity