vignettes/blueify.R

setGeneric("blueify",
           function(object, ...) {
               standardGeneric("blueify")
           })
setMethod("blueify", signature(object="PictureFill"),
          function (object, ...) {
              pathGrob(object@x, object@y, 
                       default.units="native",
                       gp=gpar(col=NA, 
                         fill=blueShade(object@rgb)), 
                       ...)
          })
setMethod("blueify", signature(object="PictureStroke"),
          function (object, ...) {
              polylineGrob(object@x, object@y, 
                           default.units="native",
                           gp=gpar(col=blueShade(object@rgb)), 
                           ...)
          })

Try the grImport package in your browser

Any scripts or data that you put into this service are public.

grImport documentation built on March 31, 2023, 6:57 p.m.