-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.R
More file actions
37 lines (23 loc) · 978 Bytes
/
Copy pathmain.R
File metadata and controls
37 lines (23 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# INSTALL AND LOAD LIBRARY
install.packages("aRtsy")
library(aRtsy)
# TESTING SAVE ART IMAGE
saveArt <- canvas_strokes(colors = c("black", "white", "yellow", "blue"))
saveCanvas(saveArt, filename = "mySavedArt.png")
# TESTING RECMAN'S SEQUENCE
canvas_recaman(colors = colorPalette("klimt"), background = "white",
iterations = 1000, start = 50,
increment = 10, curvature = 5,
angle = 45, size = 0.1,
closed = FALSE)
# TESTING POLYLINES
canvas_polylines(colors = colorPalette("lava"), background = "white",
ratio = 0.6, iterations = 600,
size = 0.1, resolution = 800)
# TESTING NEBULA
canvas_nebula(colors = colorPalette("tuscany2"),
k = 60, n = 400, resolution = 1000)
# TESTING CIRCLE MAP
canvas_circlemap(colors = colorPalette("dark2"), left = 0,
right = 10, bottom = 0, top = 1,
iterations = 13, resolution = 1200)