Text of this page, read by machine (may contain mistakes)
COLITCOVISION
GRAPHICS USERS' MANUAL Page 30
7.4 DESCRIPTION OF PUT_MOBILE
This routine will place the specified frame ef a Mobile object on the
Cisplay. The location of the object and the frame to be Gisplayed are
determined dy the wariables FRAME, XZ_LOCATION and Y_LOCATION in its
STATUS area. The X and Y_LOCATION wariables specify the pixel
position of the upper left corner of the object on the Beta-plane,.
The object therefore may Gisplayed as entirely on the pattern Plane or
as bleeding on or off the pattern Plane in any direction.
Im general, PUT_MOBILE produces the image of a Mobile object on the
Gisplay by creating 2 new set of pattern and color generators which
Sepict the object superimposed on the background. Since ell frames of
Mobile objects will be 2 by 2 pattern blocks in site, the number of!
new generators which need to be created if 9. These % generators
tonstitute a “surround” for the object within which the object will be
displayed.
The % pattern generators which constitute the surround may be thought
of as an array of 3 by 24 “surround” bytes. Similarly, the pattern
Generators which constitute the frame of the object to be displayed
may be thought of as an array of 2 by 16 “frame” bytes. PUT_MOBILE
tses cne of two methods for combining these two arrays of generator
bytes. Which method is ceed is selected by the state of bit 0 tn
register B when PUT_LOBJECT is called.
If thie bit ts sero then an “additive” method is ceed to combine the
object's graphics with that of the surround. In this method the "1"
bits in the object's pattern generators are “moved” into the
tppropriate locations in a new set of surround generator bytes; these
Create a graphic of the Mobile object superimposed on the background
New surround color generator bytes are created as follows:
For each byte, if the corresponding pattern generator byte has not
been changed (i.e. no "1" Bits have been moved to it) then that
coler byte is left Alone. If the corresponding pattern generator
byte has had one or more "1" Bits added to it, then the colori
pertion of that byte is changed to the color of the Mobile object
Therefore, any parts of the background graphic represented by *7°
Bite will take on the color of the Mobile ebject when Both the
background and the object have “1" Bits within the same pattern
Generator byte. The overall effect of this method is to maintain
the “structoral” integrity of the background pattern, even theugh
the color ef the background graphic will change to that of the
ebiect whenever elements of the object and the background exist
within the same generator byte. Figure 2 illustrates the graphic
effect of this mode of eperation.
Tf bit © of register B is set to 1, then another method is applied.
As in the above method, the “1" Bits of the object's pattern generator
bytes are again moved to the appropriate locations within the new set
of surround generator bytes. MKowever, surround Generator bytes to