Changes

Gate Array

34 bytes removed, 18:44, 30 March 2008
Example:
<brpre>ld bc,&amp;7f00+1 ;Gate array function (set pen)<br>;and pen number<br>out (c),c<br>ld bc,&amp;7f00+&amp;41 ;Gate array function (set colour)<br>;and colour number<br>out (c),cret<br/pre>ret
  Pallette R,G,B definitions<br>There are 27 colours which are generated from red, green and blue mixed in different quantities. There are 3 levels of red, 3 levels of green and 3 levels of blue, and these can be thought of as off/no colour, half-on/half-colour, and on/full-colour.
To display a CPC image you will need to use a analogue monitor with a composite sync.
<br>RGB assignments for the software colours<br>This is simply a sidenote to illustrate a pattern in the RGB assignments of the software colours and to show how their value is calculated. Firmware Colour Number Colour Name R % G % B % <br>0 Black 0 0 0 <br>1 Blue 0 0 50 <br>2 Bright Blue 0 0 100 <br>3 Red 50 0 0 <br>4 Magenta 50 0 50 <br>5 Mauve 50 0 100 <br>6 Bright Red 100 0 0 <br>7 Purple 100 0 50 <br>8 Bright Magenta 100 0 100 <br>9 Green 0 50 0 <br>10 Cyan 0 50 50 <br>11 Sky Blue 0 50 100 <br>12 Yellow 50 50 0 <br>13 White 50 50 50 <br>14 Pastel Blue 50 50 100 <br>15 Orange 100 50 0 <br>16 Pink 100 50 50 <br>17 Pastel Magenta 100 50 100 <br>18 Bright Green 0 100 0 <br>19 Sea Green 0 100 50 <br>20 Bright Cyan 0 100 100 <br>21 Lime 50 100 0 <br>22 Pastel Green 50 100 50 <br>23 Pastel Cyan 50 100 100 <br>24 Bright Yellow 100 100 0 <br>25 Pastel Yellow 100 100 50 <br>26 Bright White 100 100 100 <br>To calculate the colour value: <br>Red <br>0% =&gt; do not add anything <br>50% =&gt; add 3 <br>100% =&gt; add 6 <br>Green <br>0% =&gt; do not add anything <br>50% =&gt; add 9 <br>100% =&gt; add 18 <br>Blue <br>0% =&gt; do not add anything <br>50% =&gt; add 1 <br>100% =&gt; add 2
<br>Green Screen Colours<br>On a green screen (where all colours are shades of green), the colours (in the software/firmware colours), are in order of increasing intensity. So that black is very dark, and white is bright green, and colour 13 is a medium green. (Thanks to Mark Rison for this information) <br>
[[Category:Hardware]]
12,273
edits