openrndr / org.openrndr.extensions / SingleScreenshot

SingleScreenshot

class SingleScreenshot : Screenshots

specialized version of the Screenshots extension that takes a single screenshot and exits

Constructors

<init>

SingleScreenshot()

specialized version of the Screenshots extension that takes a single screenshot and exits

Properties

outputFile

var outputFile: String

filename of the screenshot output

Inherited Properties

enabled

open var enabled: Boolean

key

var key: Int

the key that should be pressed to take a screenshot

multisample

var multisample: BufferMultisample

multisample settings

quitAfterScreenshot

var quitAfterScreenshot: Boolean

should the program quit after taking a screenshot?

scale

var scale: Double

scale can be se to be greater than 1.0 for higher resolution screenshots

Functions

setup

fun setup(program: Program): Unit

Inherited Functions

afterDraw

open fun afterDraw(drawer: Drawer, program: Program): Unit

beforeDraw

open fun beforeDraw(drawer: Drawer, program: Program): Unit