VT100.net VT330/VT340 Programmer Reference Manual

12 Combining ReGIS Commands

Drawing Complex Images

Figures 12-1 through 12-3 show examples of complex graphic images you can build with ReGIS commands. Together, these three figures show most of the ReGIS features available.

Figure 12-1 uses screen, write control, and text commands to define basic command values. Figure 12-2 uses the values in effect at the end of Figure 12-1. Figure 12-3 uses the values in effect at the end of Figure 12-2.

Figure 12-1 Programming Example: Basic Graph
COMMANDS
S(M0(L0) 1(L33) 2(L67) 3(L100))
(I3,E)
W(I0,P1(M1),F3,V,S0)
@:TV[-10]P[+10,+50]@;
@:MV[,+10]P[+100,-10]@;
P[100,100]
V[,+300] [+500]
P[100,150]
@T@T@T@T@T
P[60,140]
T(A0,S1,I0)(D0,S1,D0)
T'100'P[60,+50]
T' 80'P[60,+50]
T' 60'P[60,+50]
T' 40'P[60,+50]
T' 20'P[60,+50]
T' 0'P[225,400]
@M@M@M@M
P[225,400] [-10,+20]
T'Q1'P[+85]
T'Q2'P[+80]
T'Q3'P[+80]
T'Q4'P[40,200]
T(B)[+0,+12](D270,S[9,20],U[8,20])
'% OF BUDGET'(E)
P[350,450]
T'QUARTER'
Figure 12-2 Programming Example: Pie Graph
COMMANDS
S(E)
P[300,320]
W(S'/')
C[+135]
W(S0)
C[+135]
P[+135]
W(S1)(I3)
C(C,A+45)[300,320]
V[300,320]
P[+25,-7]
W(S1)(I0)
P[+150]
C(C,A+45)[-150]
V[325,313]
P[220,220]
T(S2,W(R))'other<CR><LF>90.0%'
P[495,225]
T'Administrative<CR><LF>10.0%'
P[30,60]
T(B)(S3,I-22)
'Administrative Costs Are
<CR><LF>Small Portion of Total'
(E)
Figure 12-3 Programming Example: Graph with Shading
COMMANDS
S(E)
P[50,50]
V[,+350] [+600]
P[70,70]
T(S2)'Effective Sales Management Produced
<CR><LF>
Sales in Excess of Plan Each Quarter'
P[160,240]
T(I-22)'1'P[+120]
T'2'P[+120]
T'3'P[+90]
T'4'P[192,400]
W(S1)P[,-85] V[-40]
P[342,400] [,-120] V[-40]
P[482,400] [,-60] V[-40]
P[602,400] [,-170] V[-40]
P[+20,-30]
T(S1)'Actual'
P[172,399]T(S3)
W(S'#',R)P[,-60] V[-40]
P[322,399] [,-95] V[-40]
P[462,399] [,-50] V[-40]
P[582,399] [,-140] V[-40] T(S1)
P[-55,+5] W(S0,V) T'Plan'
P[582,399] V[,-140] [-40] [,+140]
P[462,399] V[,-50] [-40] [,+50]
P[322,399] V[,-95] [-40] [,+95]
P[172,399] V[,-60] [-40] [,+60]