-
Notifications
You must be signed in to change notification settings - Fork 0
/
loom tablet final.R
83 lines (59 loc) · 2.43 KB
/
loom tablet final.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
library(loomeR)
#use constant speed model
loom1 <- constant_speed_model(
screen_distance = 20, # How far from the screen is your observing specimen?
frame_rate = 30, # Frame rate you want the final animation to be
speed = 500, # Speed of the simulated oncoming object
attacker_diameter = 50, # Diameter of the simulated oncoming object
start_distance = 5000) # Starting distance of the simulated oncoming object
setwd('C:/Users/Maria Kuruvilla/Documents/QERM/fish project/loom tablet final')
looming_animation(loom1,
frame_number = TRUE,
frame_number_size = 2,
width = 976,
height = 610,
frame_number_tag = "A",
filename = "animation_01",
pad = 600)
looming_animation(loom1,
frame_number = TRUE,
frame_number_size = 2,
width = 976,
height = 610,
frame_number_tag = "B",
filename = "animation_02",
pad = 180)
looming_animation(loom1,
frame_number = TRUE,
frame_number_size = 2,
width = 976,
height = 610,
frame_number_tag = "C",
filename = "animation_03",
pad = 180)
looming_animation(loom1,
frame_number = TRUE,
frame_number_size = 2,
width = 976,
height = 610,
frame_number_tag = "D",
filename = "animation_04",
pad = 180)
looming_animation(loom1,
frame_number = TRUE,
frame_number_size = 2,
width = 976,
height = 610,
frame_number_tag = "E",
filename = "animation_05",
pad = 180)
looming_animation(loom1,
frame_number = TRUE,
frame_number_size = 2,
width = 976,
height = 610,
frame_number_tag = "F",
filename = "animation_06",
pad = 600)
setwd('C:/Users/Maria Kuruvilla/Documents/QERM/fish project/loom tablet final')
system("ffmpeg -y -safe 0 -f concat -i mylist.txt -c copy complete.mp4")