openrndr / org.openrndr.draw / renderTarget

renderTarget

fun renderTarget(width: Int, height: Int, contentScale: Double = 1.0, multisample: BufferMultisample = BufferMultisample.Disabled, session: Session? = Session.active, builder: RenderTargetBuilder.() -> Unit): RenderTarget (source)

build a RenderTarget

Parameters

width - positive non-zero width of the RenderTarget

height - positive non-zero height of the RenderTarget

multisample - determine if the RenderTarget uses multi-sampling, default is disabled

session - specify the session under which the RenderTarget should be created, default is Session.active