BRICKS.pp 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. USES Graph,CRT;
  2. CONST
  3. Resolution = 70;
  4. TYPE
  5. Point3D = Record
  6. X,Y : Real;
  7. End;
  8. Type Poly = record
  9. X,Y : Real;
  10. Ang : Real;
  11. NumPoints : byte;
  12. points : array [0..15] of Point3D;
  13. Color : byte;
  14. End;
  15. VAR CtrlPt: Array [-1..7] Of Point3D;
  16. RotatePt : Array [-1..7] Of Point3D;
  17. Cube : Poly;
  18. Procedure ShowObj(inp : Poly);
  19. Var X1,Y1,X2,Y2 : Real; i : integer;
  20. Begin
  21. X1 := inp.Points[0].X*cos(inp.Ang*3.14/180)-inp.Points[0].Y*sin(inp.Ang*3.14/180);
  22. Y1 := inp.Points[0].X*sin(inp.Ang*3.14/180)+inp.Points[0].Y*cos(inp.Ang*3.14/180);
  23. MoveTo(round(X1+Inp.X),round(Inp.Y-Y1));
  24. SetColor(inp.color);
  25. for i := 1 to inp.NumPoints-1 do
  26. begin
  27. X2 := inp.Points[i].X*cos(inp.Ang*3.14/180)-inp.Points[i].Y*sin(inp.Ang*3.14/180);
  28. Y2 := inp.Points[i].X*sin(inp.Ang*3.14/180)+inp.Points[i].Y*cos(inp.Ang*3.14/180);
  29. LineTo(round(X2+Inp.X),round(Inp.Y-Y2));
  30. end;
  31. X1 := inp.Points[0].X*cos(inp.Ang*3.14/180)-inp.Points[0].Y*sin(inp.Ang*3.14/180);
  32. Y1 := inp.Points[0].X*sin(inp.Ang*3.14/180)+inp.Points[0].Y*cos(inp.Ang*3.14/180);
  33. LineTo(round(X1+Inp.X),round(Inp.Y-Y1));
  34. End;{ShowCube}
  35. {--------------------------------------}
  36. PROCEDURE Spline_Calc (Ap, Bp, Cp, Dp: Point3D; T, D: Real; Var X, Y: Real);
  37. VAR T2, T3: Real;
  38. BEGIN
  39. T2 := T * T; { Square of t }
  40. T3 := T2 * T; { Cube of t }
  41. X := ((Ap.X*T3) + (Bp.X*T2) + (Cp.X*T) + Dp.X)/D; { Calc x value }
  42. Y := ((Ap.Y*T3) + (Bp.Y*T2) + (Cp.Y*T) + Dp.Y)/D; { Calc y value }
  43. END;
  44. PROCEDURE BSpline_ComputeCoeffs (N: Integer; Var Ap, Bp, Cp, Dp: Point3D);
  45. BEGIN
  46. Ap.X := -CtrlPt[N-1].X + 3*CtrlPt[N].X - 3*CtrlPt[N+1].X + CtrlPt[N+2].X;
  47. Bp.X := 3*CtrlPt[N-1].X - 6*CtrlPt[N].X + 3*CtrlPt[N+1].X;
  48. Cp.X := -3*CtrlPt[N-1].X + 3*CtrlPt[N+1].X;
  49. Dp.X := CtrlPt[N-1].X + 4*CtrlPt[N].X + CtrlPt[N+1].X;
  50. Ap.Y := -CtrlPt[N-1].Y + 3*CtrlPt[N].Y - 3*CtrlPt[N+1].Y + CtrlPt[N+2].Y;
  51. Bp.Y := 3*CtrlPt[N-1].Y - 6*CtrlPt[N].Y + 3*CtrlPt[N+1].Y;
  52. Cp.Y := -3*CtrlPt[N-1].Y + 3*CtrlPt[N+1].Y;
  53. Dp.Y := CtrlPt[N-1].Y + 4*CtrlPt[N].Y + CtrlPt[N+1].Y;
  54. END;
  55. {--------------------------------------}
  56. PROCEDURE Rotate_ComputeCoeffs (N: Integer; Var Ap, Bp, Cp, Dp: Point3D);
  57. BEGIN
  58. Ap.X := -RotatePt[N-1].X + 3*RotatePt[N].X - 3*RotatePt[N+1].X + RotatePt[N+2].X;
  59. Ap.Y := -RotatePt[N-1].Y + 3*RotatePt[N].Y - 3*RotatePt[N+1].Y + RotatePt[N+2].Y;
  60. Bp.X := 3*RotatePt[N-1].X - 6*RotatePt[N].X + 3*RotatePt[N+1].X;
  61. Bp.Y := 3*RotatePt[N-1].Y - 6*RotatePt[N].Y + 3*RotatePt[N+1].Y;
  62. Cp.X := -3*RotatePt[N-1].X + 3*RotatePt[N+1].X;
  63. Cp.Y := -3*RotatePt[N-1].Y + 3*RotatePt[N+1].Y;
  64. Dp.X := RotatePt[N-1].X + 4*RotatePt[N].X + RotatePt[N+1].X;
  65. Dp.Y := RotatePt[N-1].Y + 4*RotatePt[N].Y + RotatePt[N+1].Y;
  66. END;
  67. {--------------------------------------}
  68. PROCEDURE BSpline (X1,Y1,X2,Y2:ReAL;o:poly);
  69. VAR I, J: Integer; X, Y, Lx, Ly,A1,A2: Real; Ap, Bp, Cp, Dp: Point3D;
  70. A, B, C, D: Point3D;
  71. BEGIN
  72. CtrlPt[1].X := X1; CtrlPt[1].Y := Y1;
  73. CtrlPt[5].X := X2; CtrlPt[5].Y := Y2;
  74. CtrlPt[2].X := Random(640); CtrlPt[2].Y := Random(480);
  75. CtrlPt[3].X := Random(640); CtrlPt[3].Y := Random(480);
  76. CtrlPt[4].X := Random(640); CtrlPt[4].Y := Random(480);
  77. RotatePt[1].X := 0; RotatePt[1].Y := 0;
  78. RotatePt[5].X := 360; RotatePt[5].Y := 360;
  79. RotatePt[2].X := Random(360); RotatePt[2].Y := Random(360);
  80. RotatePt[3].X := Random(360); RotatePt[3].Y := Random(360);
  81. RotatePt[4].X := Random(360); RotatePt[4].Y := Random(360);
  82. CtrlPt[-1] := CtrlPt[1];
  83. CtrlPt[0] := CtrlPt[1];
  84. CtrlPt[6] := CtrlPt[5];
  85. CtrlPt[7] := CtrlPt[5];
  86. RotatePt[-1] := RotatePt[1];
  87. RotatePt[0] := RotatePt[1];
  88. RotatePt[6] := RotatePt[5];
  89. RotatePt[7] := RotatePt[5];
  90. For I := 0 To 5 Do Begin
  91. BSpline_ComputeCoeffs(I, Ap, Bp, Cp, Dp);
  92. Rotate_ComputeCoeffs(I, A, B, C, D);
  93. For J := 1 To Resolution Do Begin
  94. Spline_Calc(Ap, Bp, Cp, Dp, J/Resolution, 6, X, Y);
  95. Spline_Calc(A, B, C, D,J/Resolution , 6, A1,A2);
  96. o.Ang := round(A1) mod 360;
  97. o.X := X;
  98. o.Y := Y;
  99. ShowObj(o);
  100. Delay(2500 div Resolution);
  101. ShowObj(o);
  102. End;
  103. If KeyPressed then
  104. Begin
  105. ReadKey;
  106. o.Ang := 0;
  107. o.X := X2;
  108. o.Y := Y2;
  109. ShowObj(o);
  110. Exit;
  111. End;
  112. End;
  113. ShowObj(o);
  114. END;
  115. {--------------------------------------}
  116. Procedure InitObj;
  117. Begin
  118. with Cube do begin
  119. NumPoints := 5;
  120. Color := Green;
  121. Points[0].X := -10;
  122. Points[0].Y := -5;
  123. Points[1].X := 10;
  124. Points[1].Y := -5;
  125. Points[2].X := 10;
  126. Points[2].Y := 15;
  127. Points[3].X := 10;
  128. Points[3].Y := 5;
  129. Points[4].X := -10;
  130. Points[4].Y := 15;
  131. Ang := 0;
  132. X := 320;
  133. y := 200;
  134. End;
  135. End;{InitObj}
  136. {-------------------------------------}
  137. Procedure _A(posX,posY : byte);
  138. Var _1,_2:poly;
  139. Begin
  140. Randomize;
  141. with _1 do begin
  142. NumPoints := 7;
  143. Points[0].X := -15; Points[0].Y := -15;
  144. Points[2].X := -5; Points[2].Y := -5;
  145. Points[3].X := 5; Points[3].Y := -5;
  146. Points[4].X := 5; Points[4].Y := -15;
  147. Points[5].X := 15; Points[5].Y := -15;
  148. Points[6].X := 0; Points[6].Y := 25;
  149. Points[1].X :=-5 ; Points[1].Y := -15;
  150. Repeat Color := Random(15); until color <> Black;
  151. End;
  152. with _2 do begin
  153. NumPoints := 3;
  154. Points[0].X := -5; Points[0].Y := -5;
  155. Points[2].X := 0; Points[2].Y := 5;
  156. Points[1].X := 5 ; Points[1].Y := -5;
  157. Repeat Color := Random(15); until color <> Black;
  158. End;
  159. BSpline(Random(640),480,20+posX*40,posY*70+5,_1);
  160. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  161. End;{A}
  162. {--------------------}
  163. Procedure _B(posX,posY : byte);
  164. Var _1,_2,_3:poly;
  165. Begin
  166. Randomize;
  167. with _1 do begin
  168. NumPoints := 9;
  169. Points[0].X := -15; Points[0].Y := -20;
  170. Points[1].X :=5 ; Points[1].Y := -20;
  171. Points[2].X := 15; Points[2].Y := -15;
  172. Points[3].X := 15; Points[3].Y := -10;
  173. Points[4].X := 5; Points[4].Y := 0;
  174. Points[5].X := 15; Points[5].Y := 5;
  175. Points[6].X := 15; Points[6].Y := 15;
  176. Points[7].X := 5; Points[7].Y := 20;
  177. Points[8].X := -15; Points[8].Y := 20;
  178. Repeat Color := Random(15); until color <> Black;
  179. End;
  180. with _2 do begin
  181. NumPoints := 4;
  182. Points[0].X := -5; Points[0].Y := -15;
  183. Points[1].X := 5 ; Points[1].Y := -15;
  184. Points[2].X := 5; Points[2].Y := -5;
  185. Points[3].X := -5 ; Points[3].Y := -5;
  186. Repeat Color := Random(15); until color <> Black;
  187. End;
  188. with _3 do begin
  189. NumPoints := 4;
  190. Points[0].X := -5; Points[0].Y := 5;
  191. Points[1].X := 5 ; Points[1].Y := 5;
  192. Points[2].X := 5; Points[2].Y := 15;
  193. Points[3].X := -5 ; Points[3].Y := 15;
  194. Repeat Color := Random(15); until color <> Black;
  195. End;
  196. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  197. BSpline(Random(640),480,20+posX*40-2,posY*70,_2);
  198. BSpline(Random(640),480,20+posX*40-2,posY*70,_3);
  199. End;{B}
  200. {--------------------}
  201. Procedure _C(posX,posY : byte);
  202. Var _1,_2,_3:poly;
  203. Begin
  204. Randomize;
  205. with _1 do begin
  206. NumPoints := 6;
  207. Points[0].X := -5; Points[0].Y := -20;
  208. Points[1].X := 5 ; Points[1].Y := -20;
  209. Points[2].X := 15; Points[2].Y := -10;
  210. Points[3].X := 10; Points[3].Y := -5;
  211. Points[4].X := 5; Points[4].Y := -10;
  212. Points[5].X := -15; Points[5].Y := -10;
  213. Repeat Color := Random(15); until color <> Black;
  214. End;
  215. with _2 do begin
  216. NumPoints := 4;
  217. Points[0].X := -15; Points[0].Y := -10;
  218. Points[1].X := -8 ; Points[1].Y := -10;
  219. Points[2].X := -8; Points[2].Y := 10;
  220. Points[3].X := -15 ; Points[3].Y := 10;
  221. Repeat Color := Random(15); until color <> Black;
  222. End;
  223. with _3 do begin
  224. NumPoints := 6;
  225. Points[0].X := -15; Points[0].Y := 10;
  226. Points[1].X := 5 ; Points[1].Y := 10;
  227. Points[2].X := 10; Points[2].Y := 5;
  228. Points[3].X := 15 ; Points[3].Y := 10;
  229. Points[4].X := 5 ; Points[4].Y := 20;
  230. Points[5].X := -5 ; Points[5].Y := 20;
  231. Repeat Color := Random(15); until color <> Black;
  232. End;
  233. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  234. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  235. BSpline(Random(640),480,20+posX*40,posY*70,_3);
  236. End;{C}
  237. {--------------------}
  238. Procedure _D(posX,posY : byte);
  239. Var _1,_2:poly;
  240. Begin
  241. Randomize;
  242. with _1 do begin
  243. NumPoints := 7;
  244. Points[0].X := -15; Points[0].Y := -20;
  245. Points[1].X := -5 ; Points[1].Y := -20;
  246. Points[2].X := 5; Points[2].Y := -15;
  247. Points[3].X := 15; Points[3].Y := 0;
  248. Points[4].X := 5; Points[4].Y := 15;
  249. Points[5].X := -5; Points[5].Y := 20;
  250. Points[6].X := -15; Points[6].Y := 20;
  251. Repeat Color := Random(15); until color <> Black;
  252. End;
  253. with _2 do begin
  254. NumPoints := 3;
  255. Points[0].X := -5; Points[0].Y := -10;
  256. Points[2].X := 5; Points[2].Y := 0;
  257. Points[1].X := -5 ; Points[1].Y := 10;
  258. Repeat Color := Random(15); until color <> Black;
  259. End;
  260. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  261. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  262. End;{D}
  263. {--------------------}
  264. Procedure _E(posX,posY : byte);
  265. Var _1,_2:poly;
  266. Begin
  267. Randomize;
  268. with _1 do begin
  269. NumPoints := 8;
  270. Points[0].X := -15; Points[0].Y := -20;
  271. Points[1].X := 15 ; Points[1].Y := -20;
  272. Points[2].X := 15; Points[2].Y := -10;
  273. Points[3].X := -5; Points[3].Y := -10;
  274. Points[4].X := -5; Points[4].Y := -5;
  275. Points[5].X := 0; Points[5].Y := -5;
  276. Points[6].X := 0; Points[6].Y := 5;
  277. Points[7].X := -15; Points[7].Y := 5;
  278. Repeat Color := Random(15); until color <> Black;
  279. End;
  280. with _2 do begin
  281. NumPoints := 6;
  282. Points[0].X := -15; Points[0].Y := 5;
  283. Points[1].X := -5; Points[1].Y := 5;
  284. Points[2].X := -5 ; Points[2].Y := 10;
  285. Points[3].X := 15 ; Points[3].Y := 10;
  286. Points[4].X := 15 ; Points[4].Y := 20;
  287. Points[5].X := -15 ; Points[5].Y := 20;
  288. Repeat Color := Random(15); until color <> Black;
  289. End;
  290. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  291. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  292. End;{E}
  293. {--------------------}
  294. Procedure _F(posX,posY : byte);
  295. Var _1,_2:poly;
  296. Begin
  297. Randomize;
  298. with _1 do begin
  299. NumPoints := 6;
  300. Points[0].X := -15; Points[0].Y := -20;
  301. Points[1].X := -5 ; Points[1].Y := -20;
  302. Points[2].X := -5; Points[2].Y := -5;
  303. Points[3].X := 5; Points[3].Y := -5;
  304. Points[4].X := 5; Points[4].Y := 0;
  305. Points[5].X := -15; Points[5].Y := 0;
  306. Repeat Color := Random(15); until color <> Black;
  307. End;
  308. with _2 do begin
  309. NumPoints := 6;
  310. Points[0].X := -15; Points[0].Y := 0;
  311. Points[1].X := -5; Points[1].Y := 0;
  312. Points[2].X := -5 ; Points[2].Y := 10;
  313. Points[3].X := 15 ; Points[3].Y := 10;
  314. Points[4].X := 15 ; Points[4].Y := 20;
  315. Points[5].X := -15 ; Points[5].Y := 20;
  316. Repeat Color := Random(15); until color <> Black;
  317. End;
  318. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  319. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  320. End;{F}
  321. {--------------------}
  322. Procedure _G(posX,posY : byte);
  323. Var _1,_2,_3:poly;
  324. Begin
  325. Randomize;
  326. with _1 do begin
  327. NumPoints := 9;
  328. Points[0].X := -5; Points[0].Y := -20;
  329. Points[1].X := 5 ; Points[1].Y := -20;
  330. Points[2].X := 15; Points[2].Y := -10;
  331. Points[3].X := 15; Points[3].Y := 0;
  332. Points[4].X := 0; Points[4].Y := 0;
  333. Points[5].X := 0; Points[5].Y := -5;
  334. Points[6].X := 5; Points[6].Y := -5;
  335. Points[7].X := 5; Points[7].Y := -10;
  336. Points[8].X := -15; Points[8].Y := -10;
  337. Repeat Color := Random(15); until color <> Black;
  338. End;
  339. with _2 do begin
  340. NumPoints := 4;
  341. Points[0].X := -15; Points[0].Y := -10;
  342. Points[1].X := -5 ; Points[1].Y := -10;
  343. Points[2].X := -5; Points[2].Y := 10;
  344. Points[3].X := -15 ; Points[3].Y := 10;
  345. Repeat Color := Random(15); until color <> Black;
  346. End;
  347. with _3 do begin
  348. NumPoints := 6;
  349. Points[0].X := -15; Points[0].Y := 10;
  350. Points[1].X := 5 ; Points[1].Y := 10;
  351. Points[2].X := 10; Points[2].Y := 5;
  352. Points[3].X := 15 ; Points[3].Y := 10;
  353. Points[4].X := 5 ; Points[4].Y := 20;
  354. Points[5].X := -5 ; Points[5].Y := 20;
  355. Repeat Color := Random(15); until color <> Black;
  356. End;
  357. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  358. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  359. BSpline(Random(640),480,20+posX*40,posY*70,_3);
  360. End;{G}
  361. {--------------------}
  362. Procedure _H(posX,posY : byte);
  363. Var _1,_2:poly;
  364. Begin
  365. Randomize;
  366. with _1 do begin
  367. NumPoints := 8;
  368. Points[0].X := -15; Points[0].Y := -20;
  369. Points[1].X := -5 ; Points[1].Y := -20;
  370. Points[2].X := -5; Points[2].Y := -10;
  371. Points[3].X := 5; Points[3].Y := -10;
  372. Points[4].X := 5; Points[4].Y := 0;
  373. Points[5].X := -5; Points[5].Y := 0;
  374. Points[6].X := -5; Points[6].Y := 20;
  375. Points[7].X := -15; Points[7].Y := 20;
  376. Repeat Color := Random(15); until color <> Black;
  377. End;
  378. with _2 do begin
  379. NumPoints := 4;
  380. Points[0].X := 5; Points[0].Y := -20;
  381. Points[1].X := 15; Points[1].Y := -20;
  382. Points[2].X := 15 ; Points[2].Y := 20;
  383. Points[3].X := 5 ; Points[3].Y := 20;
  384. Repeat Color := Random(15); until color <> Black;
  385. End;
  386. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  387. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  388. End;{H}
  389. {--------------------}
  390. Procedure _I(posX,posY : byte);
  391. Var _1,_2:poly;
  392. Begin
  393. Randomize;
  394. with _2 do begin
  395. NumPoints := 8;
  396. Points[0].X := -15; Points[0].Y := -20;
  397. Points[1].X := 15 ; Points[1].Y := -20;
  398. Points[2].X := 15; Points[2].Y := -10;
  399. Points[3].X := 5; Points[3].Y := -10;
  400. Points[4].X := 5; Points[4].Y := 10;
  401. Points[5].X := -5; Points[5].Y := 10;
  402. Points[6].X := -5; Points[6].Y := -10;
  403. Points[7].X := -15; Points[7].Y := -10;
  404. Repeat Color := Random(15); until color <> Black;
  405. End;
  406. with _1 do begin
  407. NumPoints := 4;
  408. Points[0].X := -15; Points[0].Y := 10;
  409. Points[1].X := 15; Points[1].Y := 10;
  410. Points[2].X := 15 ; Points[2].Y := 20;
  411. Points[3].X := -15 ; Points[3].Y := 20;
  412. Repeat Color := Random(15); until color <> Black;
  413. End;
  414. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  415. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  416. End;{I}
  417. {--------------------}
  418. Procedure _J(posX,posY : byte);
  419. Var _1,_2:poly;
  420. Begin
  421. Randomize;
  422. with _1 do begin
  423. NumPoints := 9;
  424. Points[0].X := -15; Points[0].Y := -10;
  425. Points[1].X := -5 ; Points[1].Y := -20;
  426. Points[2].X := 5; Points[2].Y := -20;
  427. Points[3].X := 15; Points[3].Y := -10;
  428. Points[4].X := 15; Points[4].Y := 0;
  429. Points[5].X := 5; Points[5].Y := 0;
  430. Points[6].X := 5; Points[6].Y := -10;
  431. Points[7].X := -5; Points[7].Y := -10;
  432. Points[8].X := -10; Points[8].Y := -5;
  433. Repeat Color := Random(15); until color <> Black;
  434. End;
  435. with _2 do begin
  436. NumPoints := 6;
  437. Points[0].X := 5; Points[0].Y := 0;
  438. Points[1].X := 15; Points[1].Y := 0;
  439. Points[2].X := 15 ; Points[2].Y := 20;
  440. Points[3].X := -15 ; Points[3].Y := 20;
  441. Points[4].X := -15 ; Points[4].Y := 10;
  442. Points[5].X := 5 ; Points[5].Y := 10;
  443. Repeat Color := Random(15); until color <> Black;
  444. End;
  445. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  446. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  447. End;{J}
  448. {--------------------}
  449. Procedure _K(posX,posY : byte);
  450. Var _1,_2:poly;
  451. Begin
  452. Randomize;
  453. with _1 do begin
  454. NumPoints := 8;
  455. Points[0].X := -15; Points[0].Y := -20;
  456. Points[1].X := -5 ; Points[1].Y := -20;
  457. Points[2].X := -5; Points[2].Y := -5;
  458. Points[3].X := 0; Points[3].Y := -5;
  459. Points[4].X := 5; Points[4].Y := -20;
  460. Points[5].X := 15; Points[5].Y := -20;
  461. Points[6].X := 5; Points[6].Y := 0;
  462. Points[7].X := -15; Points[7].Y := 0;
  463. Repeat Color := Random(15); until color <> Black;
  464. End;
  465. with _2 do begin
  466. NumPoints := 8;
  467. Points[0].X := -15; Points[0].Y := 20;
  468. Points[1].X := -5 ; Points[1].Y := 20;
  469. Points[2].X := -5; Points[2].Y := 5;
  470. Points[3].X := 0; Points[3].Y := 5;
  471. Points[4].X := 5; Points[4].Y := 20;
  472. Points[5].X := 15; Points[5].Y := 20;
  473. Points[6].X := 5; Points[6].Y := 0;
  474. Points[7].X := -15; Points[7].Y := 0;
  475. Repeat Color := Random(15); until color <> Black;
  476. End;
  477. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  478. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  479. End;{K}
  480. {--------------------}
  481. Procedure _L(posX,posY : byte);
  482. Var _1,_2:poly;
  483. Begin
  484. Randomize;
  485. with _2 do begin
  486. NumPoints := 6;
  487. Points[0].X := -15; Points[0].Y := -20;
  488. Points[1].X := 15 ; Points[1].Y := -20;
  489. Points[2].X := 15; Points[2].Y := -10;
  490. Points[3].X := -5; Points[3].Y := -10;
  491. Points[4].X := -5; Points[4].Y := 0;
  492. Points[5].X := -15; Points[5].Y := 0;
  493. Repeat Color := Random(15); until color <> Black;
  494. End;
  495. with _1 do begin
  496. NumPoints := 4;
  497. Points[0].X := -15; Points[0].Y :=0;
  498. Points[1].X := -5; Points[1].Y := 0;
  499. Points[2].X := -5 ; Points[2].Y := 20;
  500. Points[3].X := -15 ; Points[3].Y := 20;
  501. Repeat Color := Random(15); until color <> Black;
  502. End;
  503. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  504. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  505. End;{L}
  506. {--------------------}
  507. Procedure _M(posX,posY : byte);
  508. Var _1,_2:poly;
  509. Begin
  510. Randomize;
  511. with _1 do begin
  512. NumPoints := 7;
  513. Points[0].X := -15; Points[0].Y := -20;
  514. Points[1].X := -5 ; Points[1].Y := -20;
  515. Points[2].X := -5; Points[2].Y := 10;
  516. Points[3].X := 0; Points[3].Y := -10;
  517. Points[4].X := 0; Points[4].Y := 10;
  518. Points[5].X := -5; Points[5].Y := 20;
  519. Points[6].X := -15; Points[6].Y := 20;
  520. Repeat Color := Random(15); until color <> Black;
  521. End;
  522. with _2 do begin
  523. NumPoints := 7;
  524. Points[0].X := 15; Points[0].Y := -20;
  525. Points[1].X := 5 ; Points[1].Y := -20;
  526. Points[2].X := 5; Points[2].Y := 10;
  527. Points[3].X := 0; Points[3].Y := -10;
  528. Points[4].X := 0; Points[4].Y := 10;
  529. Points[5].X := 5; Points[5].Y := 20;
  530. Points[6].X := 15; Points[6].Y := 20;
  531. Repeat Color := Random(15); until color <> Black;
  532. End;
  533. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  534. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  535. End;{M}
  536. {--------------------}
  537. Procedure _N(posX,posY : byte);
  538. Var _1,_2,_3:poly;
  539. Begin
  540. Randomize;
  541. with _1 do begin
  542. NumPoints := 4;
  543. Points[0].X := -5; Points[0].Y := 0;
  544. Points[1].X := 5 ; Points[1].Y := -20;
  545. Points[2].X := 5; Points[2].Y := 0;
  546. Points[3].X := -5; Points[3].Y := 20;
  547. Repeat Color := Random(15); until color <> Black;
  548. End;
  549. with _2 do begin
  550. NumPoints := 4;
  551. Points[0].X := -15; Points[0].Y := -20;
  552. Points[1].X := -5 ; Points[1].Y := -20;
  553. Points[2].X := -5; Points[2].Y := 20;
  554. Points[3].X := -15 ; Points[3].Y := 20;
  555. Repeat Color := Random(15); until color <> Black;
  556. End;
  557. with _3 do begin
  558. NumPoints := 4;
  559. Points[0].X := 15; Points[0].Y := -20;
  560. Points[1].X := 5 ; Points[1].Y := -20;
  561. Points[2].X := 5; Points[2].Y := 20;
  562. Points[3].X := 15 ; Points[3].Y := 20;
  563. Repeat Color := Random(15); until color <> Black;
  564. End;
  565. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  566. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  567. BSpline(Random(640),480,20+posX*40,posY*70,_3);
  568. End;{N}
  569. {--------------------}
  570. Procedure _O(posX,posY : byte);
  571. Var _1,_2:poly;
  572. Begin
  573. Randomize;
  574. with _2 do begin
  575. NumPoints := 6;
  576. Points[0].X := -5; Points[0].Y := -5;
  577. Points[1].X := 0 ; Points[1].Y := -10;
  578. Points[2].X := 5; Points[2].Y := -5;
  579. Points[3].X := 5; Points[3].Y := 5;
  580. Points[4].X := 0; Points[4].Y := 10;
  581. Points[5].X := -5; Points[5].Y := 5;
  582. Repeat Color := Random(15); until color <> Black;
  583. End;
  584. with _1 do begin
  585. NumPoints := 8;
  586. Points[0].X := -15; Points[0].Y :=-10;
  587. Points[1].X := -5; Points[1].Y := -20;
  588. Points[2].X := 5 ; Points[2].Y := -20;
  589. Points[3].X := 15 ; Points[3].Y := -10;
  590. Points[4].X := 15; Points[4].Y :=10;
  591. Points[5].X := 5; Points[5].Y := 20;
  592. Points[6].X := -5 ; Points[6].Y := 20;
  593. Points[7].X := -15 ; Points[7].Y := 10;
  594. Repeat Color := Random(15); until color <> Black;
  595. End;
  596. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  597. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  598. End;{O}
  599. {--------------------}
  600. Procedure _P(posX,posY : byte);
  601. Var _1,_2:poly;
  602. Begin
  603. Randomize;
  604. with _2 do begin
  605. NumPoints := 4;
  606. Points[0].X := -5; Points[0].Y := 5;
  607. Points[1].X := 5 ; Points[1].Y := 5;
  608. Points[2].X := 5; Points[2].Y := 15;
  609. Points[3].X := -5; Points[3].Y :=15;
  610. Repeat Color := Random(15); until color <> Black;
  611. End;
  612. with _1 do begin
  613. NumPoints := 8;
  614. Points[0].X := -15; Points[0].Y :=-20;
  615. Points[1].X := -5; Points[1].Y := -20;
  616. Points[2].X := -5 ; Points[2].Y := 0;
  617. Points[3].X := 5 ; Points[3].Y := 0;
  618. Points[4].X := 15; Points[4].Y :=5;
  619. Points[5].X := 15; Points[5].Y := 15;
  620. Points[6].X := 5 ; Points[6].Y := 20;
  621. Points[7].X := -15 ; Points[7].Y := 20;
  622. Repeat Color := Random(15); until color <> Black;
  623. End;
  624. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  625. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  626. End;{P}
  627. {--------------------}
  628. Procedure _Q(posX,posY : byte);
  629. Var _1,_2,_3:poly;
  630. Begin
  631. Randomize;
  632. with _2 do begin
  633. NumPoints := 6;
  634. Points[0].X := -5; Points[0].Y := -5;
  635. Points[1].X := 0 ; Points[1].Y := -10;
  636. Points[2].X := 5; Points[2].Y := -5;
  637. Points[3].X := 5; Points[3].Y := 5;
  638. Points[4].X := 0; Points[4].Y := 10;
  639. Points[5].X := -5; Points[5].Y := 5;
  640. Repeat Color := Random(15); until color <> Black;
  641. End;
  642. with _1 do begin
  643. NumPoints := 8;
  644. Points[0].X := -15; Points[0].Y :=-10;
  645. Points[1].X := -5; Points[1].Y := -20;
  646. Points[2].X := 5 ; Points[2].Y := -20;
  647. Points[3].X := 15 ; Points[3].Y := -10;
  648. Points[4].X := 15; Points[4].Y :=10;
  649. Points[5].X := 5; Points[5].Y := 20;
  650. Points[6].X := -5 ; Points[6].Y := 20;
  651. Points[7].X := -15 ; Points[7].Y := 10;
  652. Repeat Color := Random(15); until color <> Black;
  653. End;
  654. with _3 do begin
  655. NumPoints := 4;
  656. Points[0].X := 5; Points[0].Y :=-15;
  657. Points[1].X := 10; Points[1].Y := -20;
  658. Points[2].X := 15 ; Points[2].Y := -15;
  659. Points[3].X := 10 ; Points[3].Y := -10;
  660. Repeat Color := Random(15); until color <> Black;
  661. End;
  662. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  663. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  664. BSpline(Random(640),480,20+posX*40,posY*70,_3);
  665. End;{Q}
  666. {--------------------}
  667. Procedure _R(posX,posY : byte);
  668. Var _1,_2,_3:poly;
  669. Begin
  670. Randomize;
  671. with _2 do begin
  672. NumPoints := 4;
  673. Points[0].X := -5; Points[0].Y := 5;
  674. Points[1].X := 5 ; Points[1].Y := 5;
  675. Points[2].X := 5; Points[2].Y := 15;
  676. Points[3].X := -5; Points[3].Y :=15;
  677. Repeat Color := Random(15); until color <> Black;
  678. End;
  679. with _1 do begin
  680. NumPoints := 8;
  681. Points[0].X := -15; Points[0].Y :=-20;
  682. Points[1].X := -5; Points[1].Y := -20;
  683. Points[2].X := -5 ; Points[2].Y := 0;
  684. Points[3].X := 5 ; Points[3].Y := 0;
  685. Points[4].X := 15; Points[4].Y :=5;
  686. Points[5].X := 15; Points[5].Y := 15;
  687. Points[6].X := 5 ; Points[6].Y := 20;
  688. Points[7].X := -15 ; Points[7].Y := 20;
  689. Repeat Color := Random(15); until color <> Black;
  690. End;
  691. with _3 do begin
  692. NumPoints := 4;
  693. Points[0].X := -5; Points[0].Y :=-10;
  694. Points[1].X := 5; Points[1].Y := -20;
  695. Points[2].X := 15 ; Points[2].Y := -20;
  696. Points[3].X := -5 ; Points[3].Y := 0;
  697. Repeat Color := Random(15); until color <> Black;
  698. End;
  699. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  700. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  701. BSpline(Random(640),480,20+posX*40,posY*70,_3);
  702. End;{R}
  703. {--------------------}
  704. Procedure _S(posX,posY : byte);
  705. Var _1,_2:poly;
  706. Begin
  707. Randomize;
  708. with _2 do begin
  709. NumPoints := 8;
  710. Points[0].X := -15; Points[0].Y := -5;
  711. Points[1].X := 5 ; Points[1].Y := -5;
  712. Points[2].X := 5; Points[2].Y := 5;
  713. Points[3].X := -5; Points[3].Y :=5;
  714. Points[4].X := -5; Points[4].Y := 10;
  715. Points[5].X := 15 ; Points[5].Y := 10;
  716. Points[6].X := 15; Points[6].Y := 20;
  717. Points[7].X := -15; Points[7].Y :=20;
  718. Repeat Color := Random(15); until color <> Black;
  719. End;
  720. with _1 do begin
  721. NumPoints := 6;
  722. Points[0].X := -15; Points[0].Y :=-20;
  723. Points[1].X := 15; Points[1].Y := -20;
  724. Points[2].X := 15 ; Points[2].Y := 5;
  725. Points[3].X := 5 ; Points[3].Y := 5;
  726. Points[4].X := 5; Points[4].Y :=-10;
  727. Points[5].X := -15; Points[5].Y := -10;
  728. Repeat Color := Random(15); until color <> Black;
  729. End;
  730. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  731. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  732. End;{S}
  733. {--------------------}
  734. Procedure _T(posX,posY : byte);
  735. Var _1,_2:poly;
  736. Begin
  737. Randomize;
  738. with _2 do begin
  739. NumPoints := 4;
  740. Points[0].X := -5; Points[0].Y := -20;
  741. Points[1].X := 5 ; Points[1].Y := -20;
  742. Points[2].X := 5; Points[2].Y := 10;
  743. Points[3].X := -5; Points[3].Y := 10;
  744. Repeat Color := Random(15); until color <> Black;
  745. End;
  746. with _1 do begin
  747. NumPoints := 4;
  748. Points[0].X := -15; Points[0].Y := 10;
  749. Points[1].X := 15; Points[1].Y := 10;
  750. Points[2].X := 15 ; Points[2].Y := 20;
  751. Points[3].X := -15 ; Points[3].Y := 20;
  752. Repeat Color := Random(15); until color <> Black;
  753. End;
  754. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  755. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  756. End;{T}
  757. {--------------------}
  758. Procedure _U(posX,posY : byte);
  759. Var _1,_2:poly;
  760. Begin
  761. Randomize;
  762. with _1 do begin
  763. NumPoints := 7;
  764. Points[0].X := 0; Points[0].Y := -20;
  765. Points[1].X := 5 ; Points[1].Y := -20;
  766. Points[2].X := 15; Points[2].Y := -10;
  767. Points[3].X := 15; Points[3].Y := 20;
  768. Points[4].X := 5; Points[4].Y := 20;
  769. Points[5].X := 5; Points[5].Y := -5;
  770. Points[6].X := 0; Points[6].Y := -10;
  771. Repeat Color := Random(15); until color <> Black;
  772. End;
  773. with _2 do begin
  774. NumPoints := 7;
  775. Points[0].X := 0; Points[0].Y := -20;
  776. Points[1].X := -5 ; Points[1].Y := -20;
  777. Points[2].X := -15; Points[2].Y := -10;
  778. Points[3].X := -15; Points[3].Y := 20;
  779. Points[4].X := -5; Points[4].Y := 20;
  780. Points[5].X := -5; Points[5].Y := -5;
  781. Points[6].X := 0; Points[6].Y := -10;
  782. Repeat Color := Random(15); until color <> Black;
  783. End;
  784. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  785. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  786. End;{U}
  787. {--------------------}
  788. Procedure _V(posX,posY : byte);
  789. Var _1,_2:poly;
  790. Begin
  791. Randomize;
  792. with _2 do begin
  793. NumPoints := 6;
  794. Points[0].X := 0; Points[0].Y := -20;
  795. Points[1].X := 15 ; Points[1].Y := 0;
  796. Points[2].X := 15; Points[2].Y := 20;
  797. Points[3].X := 5; Points[3].Y :=20;
  798. Points[4].X := 5; Points[4].Y := 0;
  799. Points[5].X := 0; Points[5].Y :=-5;
  800. Repeat Color := Random(15); until color <> Black;
  801. End;
  802. with _1 do begin
  803. NumPoints := 6;
  804. Points[0].X := 0; Points[0].Y := -20;
  805. Points[1].X := -15 ; Points[1].Y := 0;
  806. Points[2].X := -15; Points[2].Y := 20;
  807. Points[3].X := -5; Points[3].Y :=20;
  808. Points[4].X := -5; Points[4].Y := 0;
  809. Points[5].X := 0; Points[5].Y :=-5;
  810. Repeat Color := Random(15); until color <> Black;
  811. End;
  812. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  813. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  814. End;{V}
  815. {--------------------}
  816. Procedure _W(posX,posY : byte);
  817. Var _1,_2:poly;
  818. Begin
  819. Randomize;
  820. with _2 do begin
  821. NumPoints := 7;
  822. Points[0].X := 0; Points[0].Y := -10;
  823. Points[1].X := -5 ; Points[1].Y := -20;
  824. Points[2].X := -15; Points[2].Y := -10;
  825. Points[3].X := -15; Points[3].Y :=20;
  826. Points[4].X := -5; Points[4].Y := 20;
  827. Points[5].X := -5; Points[5].Y :=-5;
  828. Points[6].X := 0; Points[6].Y := 5;
  829. Repeat Color := Random(15); until color <> Black;
  830. End;
  831. with _1 do begin
  832. NumPoints := 7;
  833. Points[0].X := 0; Points[0].Y := -10;
  834. Points[1].X := 5 ; Points[1].Y := -20;
  835. Points[2].X := 15; Points[2].Y := -10;
  836. Points[3].X := 15; Points[3].Y :=20;
  837. Points[4].X := 5; Points[4].Y := 20;
  838. Points[5].X := 5; Points[5].Y :=-5;
  839. Points[6].X := 0; Points[6].Y := 5;
  840. Repeat Color := Random(15); until color <> Black;
  841. End;
  842. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  843. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  844. End;{W}
  845. {--------------------}
  846. Procedure _X(posX,posY : byte);
  847. Var _1,_2:poly;
  848. Begin
  849. Randomize;
  850. with _2 do begin
  851. NumPoints := 11;
  852. Points[0].X := -15; Points[0].Y := 20;
  853. Points[1].X := -5 ; Points[1].Y :=20;
  854. Points[2].X := -5; Points[2].Y := 10;
  855. Points[3].X := 0; Points[3].Y :=5;
  856. Points[4].X := 5; Points[4].Y := 10;
  857. Points[5].X := 5; Points[5].Y := 20;
  858. Points[6].X := 15; Points[6].Y :=20;
  859. Points[7].X := 15; Points[7].Y :=10;
  860. Points[8].X := 10; Points[8].Y := 0;
  861. Points[9].X := -10; Points[9].Y :=0;
  862. Points[10].X := -15; Points[10].Y := 10;
  863. Repeat Color := Random(15); until color <> Black;
  864. End;
  865. with _1 do begin
  866. NumPoints := 11;
  867. Points[0].X := -15; Points[0].Y := -20;
  868. Points[1].X := -5 ; Points[1].Y := -20;
  869. Points[2].X := -5; Points[2].Y := -10;
  870. Points[3].X := 0; Points[3].Y :=-5;
  871. Points[4].X := 5; Points[4].Y := -10;
  872. Points[5].X := 5; Points[5].Y := -20;
  873. Points[6].X := 15; Points[6].Y :=-20;
  874. Points[7].X := 15; Points[7].Y :=-10;
  875. Points[8].X := 10; Points[8].Y := 0;
  876. Points[9].X := -10; Points[9].Y :=0;
  877. Points[10].X := -15; Points[10].Y := -10;
  878. Repeat Color := Random(15); until color <> Black;
  879. End;
  880. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  881. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  882. End;{X}
  883. {--------------------}
  884. Procedure _Y(posX,posY : byte);
  885. Var _1,_2:poly;
  886. Begin
  887. Randomize;
  888. with _2 do begin
  889. NumPoints := 4;
  890. Points[0].X := -5; Points[0].Y := -20;
  891. Points[1].X := 5 ; Points[1].Y :=-20;
  892. Points[2].X := 5; Points[2].Y := 0;
  893. Points[3].X := -5; Points[3].Y := 0;
  894. Repeat Color := Random(15); until color <> Black;
  895. End;
  896. with _1 do begin
  897. NumPoints := 11;
  898. Points[0].X := -5; Points[0].Y := 0;
  899. Points[1].X := 5 ; Points[1].Y := 0;
  900. Points[2].X := 15; Points[2].Y := 10;
  901. Points[3].X := 15; Points[3].Y := 20;
  902. Points[4].X := 5; Points[4].Y := 20;
  903. Points[5].X := 5; Points[5].Y := 10;
  904. Points[6].X := 0; Points[6].Y := 5;
  905. Points[7].X := -5; Points[7].Y :=10;
  906. Points[8].X := -5; Points[8].Y :=20;
  907. Points[9].X := -15; Points[9].Y :=20;
  908. Points[10].X := -15; Points[10].Y := 10;
  909. Repeat Color := Random(15); until color <> Black;
  910. End;
  911. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  912. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  913. End;{Y}
  914. {--------------------}
  915. Procedure _Z(posX,posY : byte);
  916. Var _1,_2:poly;
  917. Begin
  918. Randomize;
  919. with _1 do begin
  920. NumPoints := 7;
  921. Points[0].X := -15; Points[0].Y := -20;
  922. Points[1].X := 15 ; Points[1].Y := -20;
  923. Points[2].X := 15; Points[2].Y := -10;
  924. Points[3].X := -5; Points[3].Y := -10;
  925. Points[4].X := 15; Points[4].Y := 10;
  926. Points[5].X := 5; Points[5].Y := 10;
  927. Points[6].X := -15; Points[6].Y :=-10;
  928. Repeat Color := Random(15); until color <> Black;
  929. End;
  930. with _2 do begin
  931. NumPoints := 4;
  932. Points[0].X := -15; Points[0].Y := 20;
  933. Points[1].X := 15 ; Points[1].Y := 20;
  934. Points[2].X := 15; Points[2].Y := 10;
  935. Points[3].X := -15; Points[3].Y := 10;
  936. Repeat Color := Random(15); until color <> Black;
  937. End;
  938. BSpline(Random(640),480,20+posX*40,posY*70,_1);
  939. BSpline(Random(640),480,20+posX*40,posY*70,_2);
  940. End;{Z}
  941. {--------------------}
  942. Procedure WriteText(T : string);
  943. Var j,i,con : byte;
  944. Begin
  945. IF length(t) < 14 then con := abs(14-length(t))div 2 else con := 0;
  946. For i := 1 to length(t) do
  947. begin
  948. IF I < 14 then BEGIN
  949. j := i + con;
  950. case t[i] of
  951. 'A','a' : _A(j,3);
  952. 'B','b' : _B(j,3);
  953. 'C','c' : _C(j,3);
  954. 'D','d' : _D(j,3);
  955. 'E','e' : _E(j,3);
  956. 'F','f' : _F(j,3);
  957. 'G','g' : _G(j,3);
  958. 'H','h' : _H(j,3);
  959. 'I','i' : _I(j,3);
  960. 'J','j' : _J(j,3);
  961. 'K','k' : _K(j,3);
  962. 'L','l' : _L(j,3);
  963. 'M','m' : _M(j,3);
  964. 'N','n' : _N(j,3);
  965. 'O','o' : _O(j,3);
  966. 'P','p' : _P(j,3);
  967. 'Q','q' : _Q(j,3);
  968. 'R','r' : _R(j,3);
  969. 'S','s' : _S(j,3);
  970. 'T','t' : _T(j,3);
  971. 'U','u' : _U(j,3);
  972. 'V','v' : _V(j,3);
  973. 'W','w' : _W(j,3);
  974. 'X','x' : _X(j,3);
  975. 'Y','y' : _Y(j,3);
  976. 'Z','z' : _Z(j,3);
  977. end;
  978. END;
  979. end;
  980. End;{WriteText}
  981. {------------------------------}
  982. VAR i,j : integer;
  983. str : string;
  984. BEGIN
  985. InitObj;
  986. Write('‚¢¥¤¨â¥ áâபã: ');
  987. ReadLn(Str);
  988. I := Detect;
  989. InitGraph(I, J, '');
  990. SetWriteMode(XORPUT);
  991. WriteText(Str);
  992. ReadKey;
  993. CloseGraph;
  994. END.