openrndr / org.openrndr.extensions / Screenshots

Screenshots

open class Screenshots : Extension

an extension that takes screenshots when key (default is spacebar) is pressed

Constructors

<init>

Screenshots()

an extension that takes screenshots when key (default is spacebar) is pressed

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

afterDraw

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

beforeDraw

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

setup

open fun setup(program: Program): Unit

Inheritors

SingleScreenshot

class SingleScreenshot : Screenshots

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