Download ACS Basic Graphics Programming
Transcript
ACS Basic Graphics Programming Manual 26 February 2015 Table of Contents ACS Basic Graphics Programming .............................................................................................. 1 Screen Coordinates ...................................................................................................................................1 Pixels ........................................................................................................................................................1 Clearing The Screen .................................................................................................................................2 Drawing Lines ..........................................................................................................................................3 Drawing Arcs ...........................................................................................................................................4 Drawing Arcs with Style ..........................................................................................................................5 Drawing Boxes .........................................................................................................................................6 Drawing Circles ........................................................................................................................................7 Drawing Ellipses ......................................................................................................................................7 Drawing Polygons ....................................................................................................................................8 Drawing Text ............................................................................................................................................9 Drawing Text with Style ........................................................................................................................10 It is a Matter of Resources ...............................................................................................................10 There is a Table of Fonts .................................................................................................................11 And Now Back to Drawing the Text ...............................................................................................13 Drawing Images .....................................................................................................................................14 Rules for Drawing ...........................................................................................................................15 Making Things Move .............................................................................................................................15 Warning – Mathematics ..................................................................................................................15 Moving Smarter...............................................................................................................................17 Changing Direction ................................................................................................................................19 Rules for Making Things Move ......................................................................................................20 Staging an Event .....................................................................................................................................20 Rules for Events ..............................................................................................................................21 Taking Control with the Screen Framework ..........................................................................................22 There is a Table of Screens .............................................................................................................22 Scheming Controls ..........................................................................................................................22 Controlling Screens and Objects .....................................................................................................23 Touch Button Control ......................................................................................................................23 Multiple Objects ..............................................................................................................................25 Diving Into the Screen Framework .................................................................................................26 Rules for the Screen Framework .....................................................................................................27 Acs Basic Graphics System Variables ...................................................................................... 28 @ANSI. ..................................................................................................................................................28 @ANSI.ENABLE ...........................................................................................................................28 @ANSI.CURSOR ...........................................................................................................................28 @ANSI.SCROLL............................................................................................................................28 @ANSI.WRAP ...............................................................................................................................28 @ANSI.ROW..................................................................................................................................28 @ANSI.COL ...................................................................................................................................28 @BACKLIGHT .....................................................................................................................................28