PALETTE USING: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "The PALETTE USING statement sets all RGB screen color intensities using values from an array. {{PageSyntax}} : PALETTE USING array%({{Parameter|startIndex%}}) {{PageDescription}} * The array holds the RGB color value using the color value as {{InlineCode}}{{Parameter|red%}} + 256 * {{Parameter|green%}} + 65536 * {{Parameter|blue%}}{{InlineCodeEnd}}. ** Color intensities range from 0 to 63. * {{Parameter|startIndex%}} indicates the index...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
* The [[Arrays|array]] holds the RGB color value using the color value as {{InlineCode}}{{Parameter|red%}} + 256 * {{Parameter|green%}} + 65536 * {{Parameter|blue%}}{{InlineCodeEnd}}. | * The [[Arrays|array]] holds the RGB color value using the color value as {{InlineCode}}{{Parameter|red%}} + 256 * {{Parameter|green%}} + 65536 * {{Parameter|blue%}}{{InlineCodeEnd}}. | ||
** Color intensities range from 0 to 63. | ** Color intensities range from 0 to 63. | ||
* {{Parameter|startIndex%}} indicates the index in the array from which the statement should start reading. The statement will read all color attributes available in that [[ | * {{Parameter|startIndex%}} indicates the index in the array from which the statement should start reading. The statement will read all color attributes available in that [[SCREEN]] mode. The '''number of values required''' in the array is listed below: | ||
{{ | {{FixedStart}}''' Screen mode Attributes Colors Values''' | ||
0 0 - 15 0 - 63 16 | 0 0 - 15 0 - 63 16 | ||
1 0 - 3 0 - 3 4 | 1 0 - 3 0 - 3 4 | ||
2 0 - 1 0 - 1 2 | 2 0 - 1 0 - 1 2 | ||
7 0 - 15 0 - 15 16 | 7 0 - 15 0 - 15 16 | ||
8 0 - 15 0 - 15 16 | 8 0 - 15 0 - 15 16 | ||
Line 20: | Line 20: | ||
11 0 - 1 0 - 1 2 | 11 0 - 1 0 - 1 2 | ||
12 0 - 15 0 - 262,143 16 | 12 0 - 15 0 - 262,143 16 | ||
13 0 - 15 0 - 263,143 256 | 13 0 - 15 0 - 263,143 256 | ||
{{ | {{FixedEnd}} | ||
* A color argument of -1 in the array leaves the attribute unchanged. Other negative numbers are invalid. | * A color argument of -1 in the array leaves the attribute unchanged. Other negative numbers are invalid. | ||
Line 29: | Line 29: | ||
* [[PALETTE]], [[COLOR]] | * [[PALETTE]], [[COLOR]] | ||
* [[_PALETTECOLOR]] | * [[_PALETTECOLOR]] | ||
* [[SCREEN | * [[SCREEN]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 10:51, 26 January 2023
The PALETTE USING statement sets all RGB screen color intensities using values from an array.
Syntax
- PALETTE USING array%(startIndex%)
Description
- The array holds the RGB color value using the color value as red% + 256 * green% + 65536 * blue%.
- Color intensities range from 0 to 63.
- startIndex% indicates the index in the array from which the statement should start reading. The statement will read all color attributes available in that SCREEN mode. The number of values required in the array is listed below:
Screen mode Attributes Colors Values 0 0 - 15 0 - 63 16 1 0 - 3 0 - 3 4 2 0 - 1 0 - 1 2 7 0 - 15 0 - 15 16 8 0 - 15 0 - 15 16 9 0 - 15 0 - 63 16 10 0 - 3 0 - 8 4 11 0 - 1 0 - 1 2 12 0 - 15 0 - 262,143 16 13 0 - 15 0 - 263,143 256 |
- A color argument of -1 in the array leaves the attribute unchanged. Other negative numbers are invalid.
See also