Original Author Paul Laughton, 2011
Page 17
De Re BASIC!
The Graphics Screen and Graphics Mode ......................................................................................... 153
Display Lists ....................................................................................................................................... 154
Drawing Coordinates ........................................................................................................................ 154
Drawing into Bitmaps ........................................................................................................................ 155
Colors ................................................................................................................................................ 155
Paints ................................................................................................................................................. 155
Style ................................................................................................................................................... 156
Hardware-accelerated Graphics ....................................................................................................... 157
Graphics Setup Commands ................................................................................................................... 158
Gr.open {{alpha}{, red}{, green}{, blue}{, <ShowStatusBar_lexp>}{, <Orientation_nexp>}} ............. 158
Gr.color {{alpha}{, red}{, green}{, blue}{, style}{, paint}} ................................................................... 158
Gr.set.antialias {{<lexp>}{,<paint_nexp>}} ........................................................................................ 159
Gr.set.stroke {{<nexp>}{,<paint_nexp>}} .......................................................................................... 159
Gr.orientation <nexp> ....................................................................................................................... 160
Gr.statusbar {<height_nvar>} {, showing_lvar} ................................................................................. 160
Gr.statusbar.show <nexp> ................................................................................................................ 160
Gr.render ........................................................................................................................................... 160
Gr.screen width, height{, density } ................................................................................................... 161
Gr.scale x_factor, y_factor ................................................................................................................ 161
Gr.cls ................................................................................................................................................. 161
Gr.close ............................................................................................................................................. 162
Gr.front flag ....................................................................................................................................... 162
Gr.brightness <nexp> ........................................................................................................................ 162
Graphical Object Creation Commands.................................................................................................. 162
Gr.point <obj_nvar>, x, y................................................................................................................... 162
Gr.line <obj_nvar>, x1, y1, x2, y2 ...................................................................................................... 163
Gr.rect <ob_nvar>, left, top, right, bottom ....................................................................................... 163
Gr.oval <obj_nvar>, left, top, right, bottom ..................................................................................... 163
Gr.arc <obj_nvar>, left, top, right, bottom, start_angle, sweep_angle, fill_mode........................... 163
Gr.circle <obj_nvar>, x, y, radius ....................................................................................................... 164
Gr.set.pixels <obj_nvar>, pixels[{<start>,<length>}] {,x,y} ................................................................ 164
Gr.poly <obj_nvar>, list_pointer {,x, y} ............................................................................................. 164