SpriteGlow

Family: Studio · One form

What it does

SpriteGlow takes iSpriteIndex (an integer), iRed (an integer), iGreen (an integer), iBlue (an integer) and size (a float), and returns nothing. iSpriteIndex is the id of a Sprite object, the one CreateSprite returned: it is how the call knows what to act on.

Syntax

SpriteGlow(iSpriteIndex integer, iRed integer, iGreen integer, iBlue integer, size float)

Parameters

NameType
iSpriteIndexinteger
iRedinteger
iGreeninteger
iBlueinteger
sizefloat

Every form returns

nothing

Example · generated

image = LoadImage("assets/sprite.png", 1)sprite = CreateSprite(image)SpriteGlow(sprite, 255, 128, 128, 1.0)DO  Sync()LOOP

LoadImage and CreateSprite are there to give the call something to act on; SpriteGlow is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

106 commands in Studio