Skip to content

MeshGradient

Renders a native animated color mesh from a grid of control points.

<MeshGradient ... />

Topics

Properties

Name Type Required Description
width number required Number of grid columns.
height number required Number of grid rows.
points table optional Normalized point coordinates in row-major order.
colors table optional Colors in row-major order.
animated boolean optional Animate interior points when true.

Platform notes

  • AppKit and UIKit.

Source: lua/ui/meshgradient.lua:7 (ns.MeshGradient)