Professional Documents
Culture Documents
)
Formula 2.
(
)
Formula 3.
<Formula 2> shows that the size coefficient of the child cell is in inverse
proportion to the ratio between the parent cell radius and the maximum cell
size, and the parent cell brightness of <Formula 1>. Here, the parent cell
brightness is the average value of (
Formula 7.
(
)
Formula 8.
( )
if < 0
( )
( )
3
)
elif < 066
( )
( )
3
)
else :
( )
( )
3
)
The child cell color (
) (
)|
1
Function random( ) creates a random number between 0 and 1.
8
When the color distant coefficient is obtained, the distance between the
parent cell and the child cell is calculated by
Formula 10.
( )
Here, basicDistance is the distance between the centers of the two cells.
Formula 11.
( )
If there is a large difference between the child cell color and the parent cell
color, the child cell is located far from the parent, and if there is a short
distance, the child cell is located near the parent. This is to place cells with
similar colors close and cells with contrasting colors far from one another, in
order to reduce the feel of contrast between the parent and the child. <Figure
13> shows a flow chart for calculating the displacement from the parent.
4.3. Morphological Expression of Cells
4.3.1. Shapes of Cells
In this algorithm, to draw a cell, a polygon expressed by <Formula 12> is
used. Specific polygons are defined by specifying the parameters
and in <Formula 12>. This algorithm uses four forms of cells. A
sequential number is assigned to each cell as a cell id, each time they are
created. If the cell id number modulo 4 is equals 0, the first cell form is drawn,
if the cell id number modulo 4 equals 1, the second form is drawn, and so on.
Formula 12.
1
{( cos ((
())) sin((
())))
}
In <Formula 12>, when a > b, it looks like an oval long in the direction of
the x axis, and when a < b, long in the direction of the y axis. Especially, larger
difference between a and b creates an extreme oval which looks like a line
segment.
4.3.2. Examples of Cell Shape
When the parameters are set as in <Formula 13>, we obtain a polygon as
shown in <Figure 14>.
Formula 13.
1
Fletcher Dunn, Ian Parberry (2001), 3D Math Primer for Graphics and Game Development,
CRC Press
9
{( cos((2))) ( sin(())) 0 00}
<Figure 15> shows the result of painting by overlaying 3,000 polygons of
this form.
Formula 14.
{(2 cos((5))) ( sin(())) 0 60}
As another example, a polygon drawn by <Formula 14> creates a polygon
as shown in <Figure 16>. When three different cell shapes are used and 1,200
polygons are overlaid, the result is <Figure 17>.
4.4. Blending of Cell Colors
When the proposed algorithm generates and draws numerous cells, many
cells are overlapped in position. In this case, the colors of the cells become
blended. In OpenGL programing, blending is performed automatically if the
blending function is set in advance. If the initial background image is given for
the frame buffer, each time a new image is drawn, the color blending between
the current frame buffer image and the newly drawn image takes place
according to the given blending function.
5. Conclusion
In this paper, we have described a painting algorithm that uses a simple cell
developmental mechanism. It is analogous to developmental mechanism in
which cells are divided and an individual creature is developed. The painting
algorithm proposes an intuitive algorithm that determines the color, size, and
displacement of a child cell relative to the parent cell, when the child cell is
divided from the parent cell.
In the beginning, we had some doubts that an interesting painting would be
generated by a development-based algorithm, but the result was surprising. An
extremely interesting paintings were by generating and combining basic shape
elements according to three simple decision rules. Although the algorithm is
basically automatic, the paintings were made with an active involvement of the
author in setting the parameters of the algorithm. In this sense, it is
differentiated from conventional automatically-generated paintings. It is a new
painting technique available to artists who know how to do computer
programming.
Figure 1. Aarons Line Drawing 1979
10
Figure 2. Kawaguchi Yoichiro, 1996, soft seaweed moving in the sea, or a result of
growth model algorithm that resembles swimming unicellular organism.
Figure 3. Mondrian, Composition with Lines, 1917
Figure 4. A. Michael Noll, Computer Composition with Lines, 1964.
Composition of Mondrians lines regenerated by a computer
11
Figure 5. A. Michael Noll, legend opposite, 1965.
Figure 6. A. Michael Noll, Kinetic Sculpture, 1960s.
Figure 7. Several Circles 1926.
12
Figure 8. Visual grammar of Several Circles. In this painting, the colors,
sizes, and relative distance among circles seem to be the most distinct attributes.
Figure 9. Tree structure of the algorithm. (1) the root cell divides cell 1 and takes it as its child.
Fig. : the root cell divides cell 2 and takes it as its cell along with cell 1. Also, cell 1 divides cell 3 and takes it as
its child; cell 3 and 2 do not have a child and nodes without a child are leaf nodes.
13
Figure 10. Deciding child cell radius
.
Figure 11. Calculation of brightness coefficient and child brightness
Figure 12. Calculation of child cell color.
14
Figure 13. Calculation of displacement from parent cell.
Figure 14. Expression of <Formula 13>
Figure 15. Result of painting by overlaying 3,000 polygons from <Formula13>
15
Figure 16. Polygon from <Fomrula14>
Figure 17. Result of painting by overlaying the polygon from <Formula 14> and
1,200 polygons of three different shapes
16
Artist/
System
Characteristics
Characteristics of
this study
Aaron by
Cohen
Automatic painting system using
the expertise of the artist
Line drawing with concrete forms
Although the artists
knowledge is used, the
painting is abstract and
geometric in form
Growth
Model by
Kawaguchi
Visualization of developmental
process of a life form
artificial life forms
Pure abstract painting
created only with forms
and colors
Geometric
abstract
automatic
painting by
Noll
Arbitrary recombination of
empirical knowledge of existing
artists
Simple geometric black and white
forms
Various geometric forms
and color combinations by
active involvement of the
artist
Table 1. Characteristics and Difference of Existing Studies.