setFxContext

fun StyleParameters.setFxContext(time: Double, frame: Int, resolution: Vector2)(source)

Sets the values of fxContextLibrary: the time in seconds, the number of the frame and the resolution of the image in pixels. For a shade style or a filter whose shader reads them or includes FX_CONTEXT_USE.