# SetTweenSpriteRed

## Description

Sets the Red parameter of the given tween ID. A Tween can modify several parameters of a sprite at the same time. Set the begin value and the end value and an interpolation method. A tween is just a template that can be applied to many sprites or chains at the same time with PlayTweenSprite or AddTweenChainSprite. Available interpolation methods are TweenLinear(), TweenSmooth1(), TweenSmooth2(), TweenEaseIn1(), TweenEaseIn2(), TweenEaseOut1(), TweenEaseOut2(), TweenBounce(), TweenOvershoot() Use an interpolation method of -1 to turn off interpolation on this value

## Definition

SetTweenSpriteRed( tweenID, beginR, endR, interpolation )

void agk::SetTweenSpriteRed( UINT tweenID, int beginR, int endR, int interpolation )

## Parameters

- tweenID - ID of the tween to modify
- beginR - The starting Red color for the sprite (0 to 255), the sprite will be this color when playing starts
- endR - The end Red color for the sprite (0 to 255), the sprite will be this color when playing ends
- interpolation - The interpolation method whilst the sprite is moving from beginR to endR