Documentation
¶
Overview ¶
This program reads data from any text file containing lines of the form x y code (code = 1: pen down; code = 0: pen up), and displays lines, all fitting into a given viewport. The file name is to be supplied as a program argument.
This program draws 30 arrows, flying counter-clockwise about the center of the screen.
Demonstration of the Cohen-Sutherland line-clipping algorithm.
Curve fitting using B splines ¶
Generation of a random curve.
Demonstration program for polygon filling. The name of an input file must be given as a program argument. This file must contain n pairs of pixel coordinates.
Demonstration program dealing with pixels.
This program draws n x n sets of squares, arranged as on a chess board.
Dividing a polygon into triangles.
Pythagoras' tree.
This program draws 50 squares inside each other.
Source Files
¶
- adjust.go
- arrows30.go
- clipdemo.go
- curvefit.go
- curvgen.go
- ex1-1.go
- ex1-2.go
- ex1-3.go
- ex1-4.go
- ex2-1.go
- ex2-2.go
- ex2-3.go
- ex2-4.go
- ex2-5.go
- ex3-1.go
- ex3-2.go
- ex3-3.go
- ex3-4.go
- ex3-5.go
- ex3-6.go
- ex3-7.go
- ex3-8.go
- ex4-1.go
- ex4-2.go
- ex4-3.go
- ex4-4.go
- fillprog.go
- gcdplot.go
- manysq.go
- polytria.go
- pytha.go
- squares.go