•  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-FileCURVE x0,y0,x1,y1,x2,y2,x3,y3

x0, y0, x1, y1, x2, y2, x3, y3: iexp

The command CURVE is based upon the Bezier Curve function.

The Bezier Curve starts at x0,y0, and ends at x3,y3. The curve at x0,y0 is at a
tangent with a line from x0,y0 to x1,y1; and at x3,y3 is at a tangent with a
line between x3,y3 and x2,y2.

Example:

    x0=10
    y0=10
    x1=50
    y1=110
    x2=150
    y2=200
    x3=350
    y3=300
    LINE x0,y0,x1,y1
    LINE x2,y2,x3,y3
    CURVE x0,y0,x1,y1,x2,y2,x3,y3

--> Draws a sample Bezier Curve on the screen.

Memo: GFA computes the curve itself and draws it with VDI function
      v_pline(). GFA does not call VDI function v_bez() at all.
      The compiler uses twice as many iterations when drawing the curve.

v_bez()+