Changes

Jump to: navigation, search

Speccy Port

384 bytes added, 08:36, 27 April 2011
/* Graphics */
====Graphics====
The Spectrum's graphics use 1 bit per pixel to define them. The colour is then defined by the attribute system.
Each byte therefore represent 8 pixels.
If shading is to be used, a mask is often stored with the pixels. The mask is used to remove or retain (depending on the mask type) pixels on the screen. The sprite is then combined with the screen to make the final result.
=====Graphics with transparency=====Consequences:* The pixel data and colours are stored in a different way than the CPC, so some conversion must be done before the graphics can be used. Either the graphics are remade, or often converted through some automatic process.
The Spectrum graphics are 2 colours, in order to use both colours ====Techniques used for shading and to have Graphics==== =====Graphics with transparency, a mask must be used. The mask is used to remove or to retain pixels on the screen. The sprite pixels are then merged with the screen to produce the final result.=====
A common way to do this is to store 1 byte of mask, followed by 1 byte of pixel data, and to repeat this for the width of the sprite.
2,562
edits