EA eDIPTFT43-A compiler help - Electronic Assembly
EA eDIPTFT43-A compiler help - Electronic Assembly
EA eDIPTFT43-A compiler help - Electronic Assembly
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
34<br />
5.3 Draw<br />
<strong>EA</strong> <strong>eDIPTFT43</strong>-A <strong>compiler</strong> <strong>help</strong><br />
Draw straight lines and points:<br />
Set color for lines #FG fg,bg Colors 1..32 (0=transparent)<br />
fg=color for line; bg=pattern background; (see<br />
default colors 61 )<br />
Point size/line thickness #GZ n1,n2 n1=X-point size (1 to 15)<br />
n2=Y-point size (1 to 15)<br />
Pattern #GM n1 Set line/point pattern no n1=1..255; 0=do not use<br />
pattern<br />
(see <strong>compiler</strong> option PATTERN 22 :)<br />
Draw point #GP x1,y1 Set a point at coordinates x1, y1<br />
Draw rectangle #GR x1,y1,x2,y2 Draw four straight lines as a rectangle from x1,y1 to<br />
x2,y2<br />
Draw straight line #GD x1,y1,x2,y2 Draw straight line from x1,y1 to x2,y2<br />
Continue straight line #GW x1,y1 Draw a straight line from last end point to x1, y1<br />
Set start point<br />
(firmware V1.5)<br />
Draw X-graph<br />
(firmware V1.5)<br />
Draw Y-graph<br />
(firmware V1.5)<br />
Change/draw rectangular areas:<br />
#GS x1,y1 Set the last end point at coordinates x1,y1 for<br />
commands #GW, #GX and #GY<br />
#GX step,y1,... Draw lines with fix X-steps=0..127 (add 128 for<br />
neg.steps) and variable count of Y-values 1..255<br />
#GY step,x1,... Draw lines with fix Y-steps=0..127 (add 128 for<br />
neg.steps) and variable count of X-values 1..255<br />
Delete area #RL x1,y1,x2,y2 Delete an area from x1,y1 to x2,y2 (fill with<br />
background color)<br />
Fill area #RS x1,y1,x2,y2 Fill an area from x1,y1 to x2,y2 (fill with<br />
foreground color)<br />
Fill area with color #RF x1,y1,x2,y2,n1 Fill an area from x1,y1 to x2,y2 with color<br />
n1=1..32<br />
(see default colors 61<br />
)<br />
Invert area #RI x1,y1,x2,y2 Invert an area from x1,y1 to x2,y2<br />
Copy area #RC x1,y1,x2,y2,x3,y3 Copy an area from x1,y1 to x2,y2 to new<br />
position x3,y3