# SetSpriteTransparency

## Description

Set the sprite transparency to a particular setting, with a choice of no transparency, alpha transparency, and additive blending. By default sprites are created with alpha transparency, but if you do not need this it is recommended that you turn transparency off to improve performance.

## Definition

SetSpriteTransparency( iSpriteIndex, mode )

void agk::SetSpriteTransparency( UINT iSpriteIndex, int mode )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- mode - The transparency mode for this sprite, 0=off, 1=alpha transparency, 2=additive blending