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
| Name | Type |
|---|---|
| ID | integer |
| position | float |
| red | integer |
| green | integer |
| blue | integer |
| alpha | integer |
Every form returns
nothing
Example · generated
AddGradientColorKeyFrame(1, 1.0, 255, 128, 128, 255)DO Sync()LOOPAddGradientColorKeyFrame 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.