
Last chance! 50% off unlimited learning
Sale ends in
DrawCircle(x = 0, y = x, radius = 1, rot = 0, nv = 100,
border = par("fg"), col = par("bg"), lty = par("lty"),
lwd = par("lwd"), plot = TRUE)
NA
(or also NULL) means
do not fill, i.e., draw transparent rectangles, unless density is specified."solid"
.TRUE
the structure will be plotted. If FALSE
only the points are
calculated and returned. Use this option if you want to combine several geometric
structures to a polygon.polygon
, DrawRegPolygon
, DrawEllipse
, DrawArc
, DrawAnnulus
Canvas(xlim=c(-5,5))
DrawCircle( radius=4:1, col=c("white","steelblue2","white","red"), lwd=3, nv=300)
x <- seq(-3,3, length.out=18)
par(bg="black")
plot( x=c(-5,5), y=c(-5,5), asp=1, type="n", xaxt="n", yaxt="n", xlab="", ylab="")
sapply( (0:12) * pi/6, function(theta) {
xy <- Rotate( x, y=0, theta=theta )
DrawCircle( x=xy$x, y=xy$y, radius=2.4, border="white", col="transparent" )
} )
Canvas(bg="lightgrey", main="Yin ~ Yang")
DrawCircle(col="white")
clip(0, 2, 2, -2)
DrawCircle(col="black")
clip(-2, 2, 2, -2)
DrawCircle(y = c(-0.5,0.5), radius = 0.5, col=c("black","white"), border=NA)
DrawCircle(y = c(-0.5,0.5), radius = 0.1, col=c("white","black"), border=NA)
DrawCircle(col=NA)
Run the code above in your browser using DataLab