GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | VIEW

Edit History

VIEW

VIEW [x1, y1, x2, y2 [, color [, border-color]]]

Home > Reference > Graphics

Defines a viewport with starting point (upper left corner)) [x1,y1] and end point (lower right corner) [x2,y2]. The optional parameters color and border-color define the background color and the border color of the viewport, respectively. VIEW without parameters will disable the last set viewport.

Example

view                                            ' Disable viewport
rect 100,100, STEP 100,100 color 4 filled       ' Draw a rectangle in dark red

view 150,150, 300,300, 0, 13                    ' Set new viewport with black background and magenta border
rect 100,100, STEP 100,100 color 14 filled      ' Draw same rectangle in yellow
Code samples using VIEW
001 3 ways to print hello 5 times.bas   002 numeric variables.bas   003 conditional branching.bas   004 loops.bas   005 challenge.bas   006 arrays+.bas   3dtictac.bas   agendus.bas   betrayal: crows ii.bas   Chaos_1xt.bas   Chaos_NPhase.bas   conrec-sb-v01.bas   crow.bas   filemanager.bas   forgive-me.bas   g_col_09.bas   g_col_pd.bas   graphics sampler.bas   Hexagon.bas   loadsavebmp.bas   loadsavebmp_fltk.bas   memoryTest.bas   memorytest.bas   pdocview.bas   pirate.bas   PRINTA_OKOK.bas   raycaster.bas   raycaster.bas   realpolitik.bas  
Graphics
ARC   CHART   CIRCLE   COLOR   DRAW   DRAWPOLY   IMAGE   LINE   PAINT   PEN   PLOT   POINT   PSET   RECT   RGB   RGBF   SHOWPAGE   TEXTHEIGHT   TEXTWIDTH   TXTH   TXTW   VIEW   WINDOW   XMAX   XPOS   YMAX   YPOS  
This page was last edited on Wed, 13 Sep 2023 15:15:18 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.