•  Back 
  •  Line-A Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filev_pline()
$A004 - Horizontal Line                                              Line-A

Function      Draw a horizontal line between the specified coordinates.

Parameters    COLBIT0-3 defines the color of the line and WRMODE
              determines the write mode (0-3). ( X1, Y1 ) and ( X2, Y1 )
              determine the starting and ending points of the line. PATMSK
              is AND'ed with Y1 to determine a line index into the pattern
              pointed to by PATPTR. PATMSK is normally the number of lines
              in the pattern (should be an even power of 2) minus one. If
              MFILL is non-zero, WRMODE is disregarded and the fill is
              colored from the values in COLBIT0-3.

Example       ;Draw a horizontal dashed line from ( 0, 10 ) to ( 100, 10 )
Binding       
                 move.w   #1,24(a5)    ; COLBIT0
                 move.w   #1,26(a5)    ; COLBIT1
                 move.w   #1,28(a5)    ; COLBIT2
                 move.w   #1,30(a5)    ; COLBIT3
                 move.w   #0,36(a5)    ; WRMODE
                 move.w   #0,38(a5)    ; X1
                 move.w   #0,40(a5)    ; Y1
                 move.w   #100,42(a5)  ; X2
                 move.l   #pat,46(a5)  ; PATPTR
                 move.w   #0,50(a5)    ; PATMSK
                 move.w   #0,52(a5)    ; MFILL
                 .dc.w    $A004

See Also      v_pline()