-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnr_blit_bulk.Rd
42 lines (40 loc) · 995 Bytes
/
nr_blit_bulk.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nr-blit.R
\name{nr_blit_bulk}
\alias{nr_blit_bulk}
\title{Multiple blit operations in a single call}
\usage{
nr_blit_bulk(dst, src, config)
}
\arguments{
\item{dst}{destination native raster}
\item{src}{list of native rasters}
\item{config}{data.frame of configuration information for each blit which
most contain: idx, x, y, xsrc, ysrc, w, h, hjust, vjust, draw_mode, draw}
}
\value{
None. \code{dst} modifief by-reference and returned invisibly.
}
\description{
Multiple blit operations in a single call
}
\examples{
nr <- nr_new(90, 90, 'grey60')
config <- data.frame(
idx = c(1, 2, 3, 4),
x = c(10, 10, 40, 40) + 15,
y = c(10, 40, 40, 10) + 15,
xsrc = 0L,
ysrc = 0L,
w = -1L,
h = -1L,
hjust = 0.5,
vjust = 0.5,
angle = c(0, 0, 0, pi/4),
scale = c(0.5, 1, 1, 1),
mode = draw_mode$respect_alpha,
render = TRUE
)
nr_blit_bulk(dst = nr, src = deer_sprites, config = config)
plot(nr, T)
}