lsrepeat(3G) lsrepeat(3G)
lsrepeat - sets a repeat factor for the current linestyle
void lsrepeat(factor)
long factor;
factor expects the repeat factor of the linestyle pattern. The valid
range of factor is 1 through 255.
lsrepeat is used to create linestyles that are longer than 16 bits by
multiplying each bit in the pattern by factor. When a line is drawn,
pixels are written if there is a 1 in the corresponding position of the
linestyle mask and not written if there is a 0 in the corresponding
position. When lsrepeat is used each bit in the pattern is multiplied
successively by factor. If the line pattern is 0000000111111111 and
factor = 3, the resulting linestyle would be 27 bits on followed by 21
bits off. Line patterns start from the least significant bit.
deflinestyle, getlsrepeat
PPPPaaaaggggeeee 1111 [ Back ]
|