MotionScript

@motion-script/core


@motion-script/core / canLerpFill

Function: canLerpFill()

canLerpFill(a, b): boolean

Defined in: attributes/shape/fill/registry.ts:76

True when a and b can be interpolated into a single fill by lerpFill without throwing — i.e. they share a type with the same blend, or they're a color/gradient pair canCoerce can promote to one type.

Pairs that fail this (e.g. color↔image, image↔video, or same-type fills with differing blend modes) have no meaningful single-type in-between; lerpFillArray cross-fades them as two stacked layers instead.

Parameters

a

FillResolved

b

FillResolved

Returns

boolean