What it does
CreateImageColor creates Color on a Image object. It takes imageID (an integer), red (an integer), green (an integer), blue (an integer) and alpha (an integer), and returns nothing. That is the first of 2 forms. imageID is the id you are giving an Image object: every later call names it by that number.
Syntax
1
CreateImageColor(imageID integer, red integer, green integer, blue integer, alpha integer)2
CreateImageColor(red integer, green integer, blue integer, alpha integer) → integerParameters
| Name | Type | In forms |
|---|---|---|
| imageID | integer | 1 |
| red | integer | all |
| green | integer | all |
| blue | integer | all |
| alpha | integer | all |
What each form returns
| 1 | CreateImageColor(1, 255, 128, 128, 255) | nothing |
| 2 | imageColor = CreateImageColor(255, 128, 128, 255) | integer |
Example · generated
Form 1, you choose the id yourself
CreateImageColor(1, 255, 128, 128, 255)DO Sync()LOOPForm 2, the command hands back the id
imageColor = CreateImageColor(255, 128, 128, 255)DO Sync()LOOPCreateImageColor 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.