FIELD: information technologies.
SUBSTANCE: sprite represents images of irregular shape overlaid over background images, preferably online. Generated sprite has specified first multitude of possible values of non-transparent colours of pixels and at least one value of pixel colours identifying transparent colour of pixel. Sprite is generated using initial data, including the first data structure specifying colour image with specified second multitude of possible colours of pixels, and the second data structure specifying non-transparent part of specified sprite. Compliance of colours of the first data structure and possible non-transparent colours of sprite is partial projection of the specified second multitude into the specified first multitude, where augmentation of area of identification of specified partial projection to the specified second multitude is the multitude, capacity of which is considerably lower than capacity of the specified second capacity, besides to identify the value of colours included into the specified first multitude and complying with colour of pixel from the first data structure, the following actions are taken: if pixel of the first data structure has colour that does not belong to the specified area of identification, then value of this pixel is established as equal to colour being one of nearest to initial colour of pixel and included in the specified area of identification; specified partial projection is applied to colour of pixel of the first data structure.
EFFECT: improving sprite generation reliability.
5 cl, 2 dwg
Authors
Dates
2010-11-27—Published
2009-06-19—Filed