Skip to main content
Rive home page
Search...
⌘K
Ask AI
Support
Get Started
Get Started
Search...
Navigation
Scripting API
Renderer
Home
Editor
Scripting
App Runtimes
Game Runtimes
Feature Support
Tutorials
Case Studies
Community
Blog
Early Access
Scripting
Getting Started
Demos
Creating Scripts
Protocols
Data Binding
Script Inputs
Pointer Events
Debugging
Keyboard Shortcuts
Scripting API
Animation
Artboard
AudioEngine
AudioSound
AudioSource
BlendMode
Blob
Color
CommandType
Context
ContourMeasure
Converter
DataContext
DataValue
DataValueBoolean
DataValueColor
DataValueNumber
DataValueString
EnumValues
Gradient
GradientStop
Image
ImageFilter
ImageSampler
ImageWrap
Input
Layout
Listener
ListenerAction
Mat2D
Node
NodeData
NodeReadData
Output
Paint
PaintDefinition
PaintStyle
Path
PathCommand
PathData
PathEffect
PathMeasure
PointerEvent
Property
PropertyEnum
PropertyList
PropertyTrigger
PropertyViewModel
Renderer
StrokeCap
StrokeJoin
TransitionCondition
Trigger
Vector
ViewModel
ViewModel
On this page
Methods
drawPath
drawImage
drawImageMesh
clipPath
save
restore
transform
Scripting API
Renderer
Provides functions for drawing paths and images, managing clipping, and applying transforms during rendering.
Methods
drawPath
Draws the given path using the specified paint.
drawImage
Draws an image using the specified sampler, blend mode, and opacity.
drawImageMesh
Draws an image using mesh data defined by vertices, texture coordinates, and triangle indices.
clipPath
Restricts subsequent drawing to the area defined by the given path. Clipping remains in effect until the next restore call.
save
Saves the current rendering state, including transforms and clipping.
restore
Restores the most recently saved rendering state.
transform
Applies a transform to the current rendering state. Transforms are applied cumulatively until restored.
Was this page helpful?
Yes
No
Suggest edits
Raise issue
PropertyViewModel
StrokeCap
⌘I