AddGradientColorKeyFrame

Family: Studio · One form

What it does

AddGradientColorKeyFrame writes a value: it adds rather than reads. It takes ID (an integer), position (a float), red (an integer), green (an integer), blue (an integer) and alpha (an integer), and returns nothing.

Syntax

AddGradientColorKeyFrame(ID integer, position float, red integer, green integer, blue integer, alpha integer)

Parameters

NameType
IDinteger
positionfloat
redinteger
greeninteger
blueinteger
alphainteger

Every form returns

nothing

Example · generated

AddGradientColorKeyFrame(1, 1.0, 255, 128, 128, 255)DO  Sync()LOOP

AddGradientColorKeyFrame is called with values of the types its signature asks for. 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