blobs
Version:
Random blob generation and animation
27 lines (26 loc) • 619 B
TypeScript
export interface PathOptions {
size: number;
complexity: number;
contrast: number;
seed?: string;
}
export interface BlobOptions extends PathOptions {
color?: string;
stroke?: {
color: string;
width: number;
};
guides?: boolean;
}
declare const blobs: {
(options: BlobOptions): string;
editable(options: BlobOptions): XmlElement;
xml(tag: string): XmlElement;
};
export interface XmlElement {
tag: string;
attributes: Record<string, string | number>;
children: XmlElement[];
render(): string;
}
export default blobs;