Skip to content

Commit

Permalink
add bg = "transparent" to make transparent pngs
Browse files Browse the repository at this point in the history
  • Loading branch information
rtanglao committed Nov 16, 2016
1 parent cee11f2 commit 02cf7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2016-11-13/make-radial-one-colour-image.R
Expand Up @@ -28,7 +28,7 @@ main <- function() {
degree_index = 90
for(row in 1:nrow(colours)) {
filename = sprintf("%7.7d-%s", row, gsub("txt", "png", basename(args[1])))
png(file=filename, width=1024, height=1024, res=72)
png(file=filename, width=1024, height=1024, res=72, bg = "transparent")
plot(0, xlim=c(1,5), ylim=c(1,5), main="", xlab="", ylab="", type="n", axes=F)
draw.radial.line(0,2,deg= degree_index, center=c(3,3), col= colours[row,], expand = FALSE, lwd = 30)
dev.off()
Expand Down

0 comments on commit 02cf7f1

Please sign in to comment.