Offset

@RequiresApi(value = 31)
data class Offset(val offsetX: Float, val offsetY: Float, val input: LithoRenderEffect? = null) : LithoRenderEffect

A LithoRenderEffect instance that will offset the drawing content by the provided x and y offset.

Parameters

offsetX

offset along the x axis in pixels

offsetY

offset along the y axis in pixels

input

target LithoRenderEffect used to render in the offset coordinates.

See RenderEffect.createOffsetEffect

Constructors

Link copied to clipboard
constructor(offsetX: Float, offsetY: Float, input: LithoRenderEffect? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRenderEffect(): RenderEffect

Creates a RenderEffect instance from this LithoRenderEffect.