Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
9
Task/Draw-a-pixel/R/draw-a-pixel.r
Normal file
9
Task/Draw-a-pixel/R/draw-a-pixel.r
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
disp_h <- 240
|
||||
disp_w <- 320
|
||||
mat <- matrix(0, nrow = disp_w, ncol = disp_h)
|
||||
mat[100, 100] <- 1
|
||||
png("DrawPixel-R.png", disp_w, disp_h)
|
||||
op <- par(mar = rep(0, 4), mai = rep(0, 4))
|
||||
image(mat, col = c("white", "red"), useRaster = TRUE, axes = FALSE)
|
||||
par(op)
|
||||
dev.off()
|
||||
Loading…
Add table
Add a link
Reference in a new issue