SpriteBlendingMode()

Syntax

SpriteBlendingMode(SourceMode, DestinationMode)
Description
Changes the way the sprite are blended with the background (when using DisplayTransparentSprite()). This function is for advanced users only. The result can differ depending of the underlying subsystem: for example OpenGL and DirectX doesn't behave the same.

Parameters

SourceMode, DestinationMode Both source and destination mode can be one of the following values:
  #PB_Sprite_BlendZero
  #PB_Sprite_BlendOne
  #PB_Sprite_BlendSourceColor
  #PB_Sprite_BlendInvertSourceColor
  #PB_Sprite_BlendDestinationColor
  #PB_Sprite_BlendInvertDestinationColor
  #PB_Sprite_BlendSourceAlpha
  #PB_Sprite_BlendInvertSourceAlpha
  #PB_Sprite_BlendDestinationAlpha
  #PB_Sprite_BlendInvertDestinationAlpha
The default values are SpriteBlendingMode(#PB_Sprite_BlendSourceAlpha, #PB_Sprite_BlendInvertSourceAlpha).

Return value

None.

Supported OS

All

<- SaveSprite() - Sprite Index - SpriteCollision() ->