UNPKG

@zimjs/pizzazz

Version:

Pizzazz provides shapes, icons for the ZIM JavaScript Canvas Framework

30 lines (22 loc) 1.27 kB
![pizzazz](https://github.com/danzen/zim-pizzazz/assets/380281/3ba9536e-e580-42f9-a0f8-8eeb0c8c26d2) <p>ZIM Pizzazz helper module to add shapes, icons and patterns for the ZIM JavaScript Canvas Framework at https://zimjs.com. The documentation can be found at https://zimjs.com/docs.html under the helper modules.</p> ```javascript makeShape("cloud",white).center(); makeIcon("heart",red).center(); makePattern("slants").center().bot(); ``` ![image](https://github.com/danzen/zim-pizzazz/assets/380281/16d42def-57bd-49b2-ba12-e63a73900a74) <h2>CDN</h2> <p>ZIM and Pizzazz can be imported with JavaScript modules - see https://zimjs.com/code for template ```javascript import zim from "https://zimjs.org/cdn/016/zim_pizzazz"; ``` <h2>NPM</h2> <p>Or use the <a href=https://www.npmjs.com/package/@zimjs/pizzazz>@zimjs/pizzazz</a> NPM module - the code which is saved in this repository.</p> ```javascript import zim from "zimjs" import { makeShape, makeIcon, makePattern } from "@zimjs/pizzazz" ``` <h2>ZIM</h2> <p>ZIM is a general canvas framework with many conveniences, components and controls - code creativity!</p> <p>See the ZIM repository at https://github.com/danzen/zimjs for information on ZIM and open source license, etc.</p>