HOME | DD

Published: 2023-08-25 04:16:13 +0000 UTC; Views: 166; Favourites: 1; Downloads: 0
Redirect to original
Description
Color Sweep Nr. 3, Quilt Pattern Nr. 2
Copyright (C) 2023 Laurence Finston
A PDF version of this animation and the GNU 3DLDF and TeX source code are available here: laurence-finston.de/#Color_Swe…
At the beginning of this video, the grid is shown. The next image shows the grid with the points and paths labelled. The image is shrunk so that the labels that lie outside the grid will fit inside the frame of the video. Points are labelled with `p_0', `p_1', etc., and paths are labelled with `q_0', `q_1', etc., in blue.
This video shows one possibility for traversing the grid and coloring each path. The path variables can be placed on a one-dimensional array (i.e., a vector) of paths in any order and the vector (an object of type `path_vector' in 3DLDF) can be traversed by means of a loop, e.g.:
path_vector pv;
pv += q0;
pv += q15;
pv += q3;
[etc.]
n := (size pv) - 1;
for i = 0 upto n:
[Do something]
endfor;
Since the subscripts of a vector in 3DLDF begin with 0, as is normal in computer programming, `size pv' would be one too many iterations of the loop.