1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/internal/help/PALETTE_USING.txt

36 lines
1.7 KiB
Plaintext
Raw Normal View History

2019-04-15 01:15:33 +00:00
The [[PALETTE USING]] statement sets all RGB screen color intensities using values from an [[Arrays|array]].
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2019-04-15 01:15:33 +00:00
: [[PALETTE USING]] array%({{Parameter|startIndex%}})
2016-03-18 11:36:04 +00:00
2019-04-15 01:15:33 +00:00
{{PageDescription}}
* 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.
* {{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 (statement)|SCREEN]] mode. The '''number of values required''' in the array is listed below:
2016-03-18 11:36:04 +00:00
{{WhiteStart}}''' 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
{{WhiteEnd}}
2019-04-15 01:15:33 +00:00
* A color argument of -1 in the array leaves the attribute unchanged. Other negative numbers are invalid.
2016-03-18 11:36:04 +00:00
2019-04-15 01:15:33 +00:00
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[PALETTE]], [[COLOR]]
2019-04-15 01:15:33 +00:00
* [[_PALETTECOLOR]]
2016-03-18 11:36:04 +00:00
* [[SCREEN (statement)]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<