These Beautiful Images Are Created by Drawing Squares

In order to create beautiful images by drawing squares, it is very useful to use periodic functions. I have created the following images by drawing families of squares which are defined with trigonometric functions. At the end of this post you can see the mathematical descriptions of "16,000 Squares (3)" and "16,000 Squares (4)."

10,000 Squares (1)
2015-12-13-1450015462-5246327-10000_Squares_1.jpg

16,000 Squares (1)
2015-12-17-1450379298-1947411-16000_Squares_1.jpg

16,000 Squares (2)
2015-12-17-1450345800-2858865-16000_Squares_2.jpg

7,000 Squares
2015-12-16-1450289979-3254135-7000_Squares_1.jpg

6,000 Squares (1)
2015-12-15-1450195586-7759860-6000_Squares_1.jpg

6,000 Squares (2)
2015-12-15-1450207835-2791884-6000_Squares_2.jpg

10,000 Squares (2)
2015-12-13-1450019502-1743249-10000_Squares_2.jpg

10,000 Squares (3)
2015-12-14-1450124653-385195-10000_Squares_3.jpg

10,000 Squares (4)
2015-12-17-1450360518-7890436-10000_Squares_4.jpg

10,000 Squares (5)
2015-12-17-1450365401-9971589-10000_Squares_5.jpg

16,000 Squares (3)
2015-12-17-1450367321-4459788-16000_Squares_3.jpg
This image shows 16,000 squares. For each k=1, 2, 3, ... , 16000 the vertices of the k-th square are:

(X(k)-A(k), Y(k)-A(k)),
(X(k)+A(k), Y(k)-A(k)),
(X(k)+A(k), Y(k)+A(k)),
(X(k)-A(k), Y(k)+A(k)),

where

X(k)=sin(10πk/16000)(cos(18πk/16000))2,
Y(k)=(cos(14πk/16000))3,
A(k)=(1/400)+(1/25)(cos(64πk/16000)cos(192πk/16000))12+(1/70)(cos(192πk/16000)cos(384πk/16000))10+(1/120)(cos(384πk/16000)cos(1152πk/16000))10.

16,000 Squares (4)
2015-12-17-1450370383-4596064-16000_Squares_4.jpg
This image shows 16,000 squares. For each k=1, 2, 3, ... , 16000 the vertices of the k-th square are:

(X(k)-A(k), Y(k)-A(k)),
(X(k)+A(k), Y(k)-A(k)),
(X(k)+A(k), Y(k)+A(k)),
(X(k)-A(k), Y(k)+A(k)),

where

X(k)=sin(10πk/16000)(cos(14πk/16000))2,
Y(k)=cos(14πk/16000)(cos(10πk/16000))2,
A(k)=(1/400)+(1/12)(cos(14πk/16000)cos(42πk/16000))12+(1/30)(cos(96πk/16000)cos(192πk/16000))12+(1/60)(cos(192πk/16000)cos(384πk/16000))10.