Description Usage Arguments Value References Examples
Tessellation
creates a geometric pattern by the repetitive translation of an initial geometric object
1 | Tessellation(objects_list, colors, direction, separation, it)
|
objects_list |
A list composed by several geometric objects (mainly polygons created with |
colors |
Vector containing the colors for each of the objects of the initial geometric object |
direction |
Vector containing the xy-coordinates of the direction in which tessellation is being generated |
separation |
Number indicating the distance that separates any of the geometric objects in the repetitive pattern. This distance must be understood in the sense of a translation of the initial object. Indeed, this distance is only preserved in the direction of the chosen vector |
it |
Number of iterations to be performed for the construction of the tessellation |
None. It produces the plot of a repetitive pattern, usually known as a tessellation
http://mathworld.wolfram.com/Tessellation.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | x_min <- -6
x_max <- 6
y_min <- -2
y_max <- 10
CoordinatePlane(x_min, x_max, y_min, y_max)
Hexa <- CreateRegularPolygon(6, c(-3,0), 1)
Draw(Hexa, "purple")
Tri <- CreatePolygon(c(-3,-1), c(Hexa[4,1],-2), c(Hexa[1,1],-2))
Draw(Tri,"pink")
objects_list <- list(Tri, Hexa)
cols <- c("pink", "purple")
direction <- c(1,0)
separation <- 1.732051
it <- 3
Tessellation(objects_list, cols, direction, separation, it)
direction <- c(0,1)
separation <- 3
it <- 4
Tessellation(objects_list, cols, direction, separation, it)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.