Skip to main content

Documentation Index

Fetch the complete documentation index at: https://rive-accessibility.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Defines how image sampling is performed when scaling or transforming the image.
  • bilinear
  • nearest
See ImageSampler for usage.
function init(self: DrawImage, context: Context): boolean
  self.myImage = context:image('myImage')
  self.sampler = ImageSampler(
    'clamp',
    'clamp',
    'bilinear'
  )

  return true
end