Name

importLibrary

Examples
settings <- function() {
    importLibrary("peasycam")
    size(200, 200, P3D)
}

setup <- function() {
    cam = PeasyCam$new(processing, 100)
    cam$setMinimumDistance(50)
    cam$setMaximumDistance(500)
}

draw <- function() {
    rotateX(-0.5)
    rotateY(-0.5)
    background(0)
    fill(255, 0, 0)
    box(30)
    pushMatrix()
    translate(0, 0, 20)
    fill(0, 0, 255)
    box(5)
    popMatrix()
}
Description The keyword importLibrary is used to load a library into a Processing sketch. A library is one or more classes that are grouped together to extend the capabilities of Processing.
Syntax
	importLibrary(libraryName)
Parameters
libraryNamestring: the name of the library to load (e.g. "pdf")
Creative Commons License