MotionScript

@motion-script/core


@motion-script/core / lerpCornerStyle

Function: lerpCornerStyle()

lerpCornerStyle(from, to, t): CornerStyleResolved

Defined in: attributes/shape/corners/corner-style.ts:36

"Interpolates" corner styles by snapping at the midpoint — corner style is a discrete enum, so it switches at t = 0.5 rather than blending, matching the codebase's convention for discrete properties (see e.g. pixelate effect).

Parameters

from

CornerStyleResolved

to

CornerStyleResolved

t

number

Returns

CornerStyleResolved