October 2015
Beginner to intermediate
400 pages
14h 44m
English
The next program demonstrates basic usage of Go’s standard image packages, which we’ll use to create a sequence of bit-mapped images and then encode the sequence as a GIF animation. The images, called Lissajous figures, were a staple visual effect in sci-fi films of the 1960s. They are the parametric curves produced by harmonic oscillation in two dimensions, such as two sine waves fed into the x and y inputs of an oscilloscope. Figure 1.1 shows some examples.
Figure 1.1. Four Lissajous figures.
There are several new constructs in this code, including
const declarations, struct types, and composite literals. Unlike most ...