@motion-script/core / Fills
Variable: Fills
constFills:FillChain
Defined in: attributes/shape/fill/chain.ts:263
Entry point for building fill chains fluently.
An empty FillChain, so Fills.image(src) is new FillChain().image(src)
ā every builder's signature and documentation has one definition, on the
class, which is what an editor shows when you hover Fills.image. The chain
is immutable (each builder returns a new one), so sharing one empty instance
as the entry point is safe.
Example
node.fill = Fills.image('./bg.jpg', { opacity: 0.2 }).color('red', { opacity: 0.3 });