@weasel-js/paint
v1.4.3
Published
Paint vocabulary for weasel: FillStyle, Stroke, gradients, dashes. Plain data, no renderer.
Readme
@weasel-js/paint
Paint vocabulary for weasel: FillStyle, Stroke, gradients, dashes. Plain
data — nothing here draws anything.
Part of weasel, a domain-agnostic 2D scene-graph canvas kit for React. See the API reference.
Install
npm install @weasel-js/paintUsage
import type { FillStyle, Stroke } from '@weasel-js/paint';
const fill: FillStyle = { color: '#c0ffee' };
const stroke: Stroke = { paint: { color: '#000' }, width: 2, join: 'round' };