27 GRAPHICS ENGINE (GE)
27-38
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
16 bpp mode: Color[15:0] (D[15:0]) bits are effective
8 bpp mode: Color[7:0] (D[7:0]) bits are effective
4 bpp mode: Color[3:0] (D[3:0]) bits are effective
2 bpp mode: Color[1:0] (D[1:0]) bits are effective
1 bpp mode: Color0 (D0) bit is effective
The color data may be modified before being written to the work area according to the palette and/or
writing effect settings. (See Section 27.3.5.)
Argument 2 (Coordinates of 1st vertex)
D[31:16] Y1 Coordinate[15:0] Bits
Specifies the Y coordinate of the 1st vertex.
D[15:0] X1 Coordinate[15:0] Bits
Specifies the X coordinate of the 1st vertex.
Argument 3 (Coordinates of 2nd vertex)
D[31:16] Y2 Coordinate[15:0] Bits
Specifies the Y coordinate of the 2nd vertex.
D[15:0] X2 Coordinate[15:0] Bits
Specifies the X coordinate of the 2nd vertex.
Argument 4 (Coordinates of 3rd vertex)
D[31:16] Y3 Coordinate[15:0] Bits
Specifies the Y coordinate of the 3rd vertex.
D[15:0] X3 Coordinate[15:0] Bits
Specifies the X coordinate of the 3rd vertex.
Argument 5 (Coordinates of 4th vertex)
D[31:16] Y4 Coordinate[15:0] Bits
Specifies the Y coordinate of the 4th vertex.
D[15:0] X4 Coordinate[15:0] Bits
Specifies the X coordinate of the 4th vertex.
Notes: • This command supports convex quadrilaterals only and does not draw concave quadrilaterals.
An error results and nothing will be drawn if a concave quadrilateral is specified when calcula-
tion error interrupts are enabled (GE_ERR_IE1 = 1). When GE_ERR_IE1 = 0 (interrupt dis-
abled), no error occurs but an unexpected drawing will result.
• The coordinates of four vertices must be specified in a clockwise direction. No error occurs
when specified in a counterclockwise direction, note, however, that an unexpected drawing will
result.
• Be sure to avoid specifications in which four vertices are aligned in a line. No error occurs in
this case, note, however, that an unexpected drawing will result. If the same coordinates are
specified for two, three, or four vertices, a triangle, line, or dot will be drawn.
Work area
(Clipping area)
X1
Y1
(0, 0)
(X2, Y2)
(X3, Y3)
Y4
Y3
Y2
X3
X2
X4
(X4, Y4)
OK
NG
(X1, Y1)
5.10.1 Drawing Solid Filled Quadrilateral
Figure 27.