hcb-geo-pattern
v1.1.0
Published
Create beautiful generative geometric background images from a string.
Maintainers
Readme
HCB-geo-pattern

This is a fork of the original @prescott/geo-pattern TypeScript library with one added feature: grayscale generation. It is specifically tailored for HCB Mobile and generates patterns that perfectly match the Ruby version of GeoPattern used in HCB (hackclub/hcb).
Live Demo
https://mooyoul.github.io/geo-pattern/
Getting Started
$ npm install hcb-geo-pattern --saveAPI
generate(params: GeneratePatternParams) => Promise<Pattern>
interface GeneratePatternParams {
input: string;
patterns?: string[];
color?: string;
baseColor?: string;
grayscale?: number;
}
interface Pattern {
background?: Background;
structure?: Structure;
width: number;
height: number;
toSVG(): string;
toDataURL(): string;
}Build
$ npm run buildCredits
geo-pattern was originally written by Jason Long.
License
See full license on mooyoul.mit-license.org
