Skip to navigation

Drawing lines: TWFL

[Apple II version]

Name: TWFL [Show more] Type: Variable Category: Drawing lines Summary: Ready-made pixel bytes for the left end of a horizontal line
Context: See this variable in context in the source code References: This variable is used as follows: * HLOIN uses TWFL

Ready-made bytes for plotting horizontal line end caps. This table provides a byte with pixels at the left end, which is used for the right end of the line. The minimum cap size is two pixels, so the first entry in the table contains a two-pixel pattern. Bit 7 in each byte is used to define the colour palette in that byte, so the pixels themselves are defined in bits 0 to 6. The pixels in bits 0 to 6 appear in that order on-screen, so bit 0 is on the left. The comments below show how the two bytes map into the screen, with seven pixels per byte. See the HLOIN routine for details.
.TWFL EQUB %10000011 ; xx00000 EQUB %10000111 ; xxx0000 EQUB %10001111 ; xxxx000 EQUB %10011111 ; xxxxx00 EQUB %10111111 ; xxxxxx0 EQUB %11111111 ; xxxxxxx EQUB %11111111 ; xxxxxxx