256 Colour Tutorial Part 1(V2.62): Difference between revisions

m
mNo edit summary
Line 14: Line 14:
[[Image:8bittut_basepal.png]]
[[Image:8bittut_basepal.png]]


There are a total of '''256''' usable colour slots (slot #0 through slot #255), you may also notice that there is a letter "'''L'''" on each of the first 17 colour slots (slot #0 through #16), it means that these slots are "''locked''" by the editor, so you should ''leave them unchanged through-out the whole game'' (actually you ''can'' change their values in-game, but this is not advisable, as they're mainly used for system graphics/messages/etc., moreover, without messing with them, you still have full control of 239 colours). Slot #17 through slot #41 are assigned as ''sprite colours'' by default, you can just leave them alone, or if you don't like them, you can change them to suit your needs. The remaining 214 colours (slot #42 through #255) are "'''room dependent'''" by default, so their values can be different in different rooms (mainly used for room backgrounds), as shown by the big "'''X'''" on each of these slots.
There are a total of '''256''' usable colour slots (slot #0 through slot #255), you may also notice that there is a letter "'''L'''" on each of the first 17 colour slots (slot #0 through #16), it means that these slots are "'''locked'''" by the editor, so you should ''leave them unchanged through-out the whole game'' (actually you ''can'' change their values in-game, but this is not advisable, as they're mainly used for system graphics/messages/etc., moreover, without messing with them, you still have full control of 239 colours). Slot #17 through slot #41 are assigned as ''sprite colours'' by default, you can just leave them alone, or if you don't like them, you can change them to suit your needs. The remaining 214 colours (slot #42 through #255) are "'''room dependent'''" by default, so their values can be different in different rooms (mainly used for room backgrounds), as shown by the big "'''X'''" on each of these slots.


Now, click on one of the colour slots, if it's not a "'''room dependent'''" colour, you'll see some (<font color="FF0000">R</font>, <font color="00FF00">G</font>, <font color="0000FF">B</font>) values on the upper-right corner of the '''Palette editor''', this order-tuple of values determines how the colour of that particular slot will be like in the game. If the colour you clicked is ''not'' a "'''locked'''" one there'll be three (3) adjustable sliders, with which you can adjust each of the <font color="FF0000">(R)ed</font>, <font color="00FF00">(G)reen</font> and <font color="0000FF">(B)lue</font> channel values for that slot. Under standard VGA/MCGA palette, each channel can have '''64''' levels of different intensities, running from 0 (zero intensity) to 63 (full intensity). For example, (0,0,0) is <font color="000000">black</font>, (63,0,0) is <font color="FF0000">red</font>, whereas (63,63,63) is <span style="background-color:#999;"><font color="#FFFFFF">white</font></span>. Now, try dragging the sliders and watch the colour changes, hope you'll get a hang on how things work now.
Now, click on one of the colour slots, if it's not a "'''room dependent'''" colour, you'll see some (<font color="FF0000">R</font>, <font color="00FF00">G</font>, <font color="0000FF">B</font>) values on the upper-right corner of the '''Palette editor''', this order-tuple of values determines how the colour of that particular slot will be like in the game. If the colour you clicked is ''not'' a "'''locked'''" one there'll be three (3) adjustable sliders, with which you can adjust each of the <font color="FF0000">(R)ed</font>, <font color="00FF00">(G)reen</font> and <font color="0000FF">(B)lue</font> channel values for that slot. Under standard VGA/MCGA palette, each channel can have '''64''' levels of different intensities, running from 0 (zero intensity) to 63 (full intensity). For example, (0,0,0) is <font color="000000">black</font>, (63,0,0) is <font color="FF0000">red</font>, whereas (63,63,63) is <span style="background-color:#999;"><font color="#FFFFFF">white</font></span>. Now, try dragging the sliders and watch the colour changes, hope you'll get a hang on how things work now.