forked from detsutut/chroma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.R
54 lines (43 loc) · 1.67 KB
/
main.R
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#workspace cleaning
remove(list = ls())
cat("\014")
library(chromaR)
allframes = getFrames()
clip = allframes[[14]]
framelines = lapply(allframes,function(x){groupframes(x,seconds = 1)})
framelines.summary = getSummary(framelines)
frap = plotTimeWindows(verbose = 1,
vivid = TRUE,
title = "Title Test",
subtitle = "Sub Test",
left = "Left Test")
p = plotFrameline(framelines,
vivid = TRUE,
verbose = 2,
timeScale = T,
summary = TRUE,
title = "Christopher Nolan",
subtitle = "Framelines")
p= plotTilesSummary(framelines.summary,
mode = "s",
verbose = 1,
title = "Love Death & Robots",
subtitle = "Saturation")
colorCircle(framelines[[1]],extra = TRUE)
temperature(framelines[[14]])
ggsave("bobo.png", plot = p, dpi = "retina",
device = "png", scale = 1.5, width = 6, height = 3)
for(i in 1:length(framelines.redux)){
p = colorCircle(framelines.redux[[i]],extra = TRUE)
dev.copy(png,file.path(framesPath,paste("circle",i,".png",sep="")))
dev.off()
}
extractFramePalette(paletteDim = 5)
bigframe = do.call("rbind",framelines)
bigframe$seconds=seq(from=bigframe$seconds[[1]],
to=length(bigframe$seconds)*(bigframe$seconds[[2]]-bigframe$seconds[[1]]),
by=(bigframe$seconds[[2]]-bigframe$seconds[[1]]))
plotFrameline(bigframe)
temperature(bigframe)
plotChannel(bigframe,"l",npoly = 1)
colorCircle(bigframe,extra = FALSE)