# NOT RUN {
stimuli <- demo_stim()
# default 10-pixel padding
pad(stimuli, fill = "dodgerblue")
# }
# NOT RUN {
# change pad width and set fill
pad(stimuli, 2, fill = "dodgerblue")
# set top border to 10% height
# different colour for each image
pad(stimuli, 0.1, 1, 1, 1,
fill = c("hotpink", "dodgerblue"))
# }
Run the code above in your browser using DataLab