•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileGRAF_SHRINKBOX(sx,sy,sw,sh,dx,dy,dw,dh)

sx, sy, sw, sh, dx, dy, dw, dh: iexp

This function draws an shrinking rectangle.

Returns 0 if an error occurred.

    sx - Final x-coordinate of the top left corner of the rectangle.
    sy - Final y-coordinate of the top left corner of the rectangle.
    sw - Final width of the rectangle.
    sh - Final height of the rectangle.
    dx - Initial x-coordinate of the top left corner.
    dy - Initial y-coordinate of the top left corner.
    dw - Initial width.
    dh - Initial height.

Note: The final coordinates are given first.

Example:

    BOX 0,0,300,180
    PAUSE 25
    ~GRAF_SHRINKBOX(100,100,10,10,0,0,300,180)
    BOX 100,100,110,110

graf_shrinkbox()+