CODE
TEMPLATE
Copy template to a text file on your computer, save as code.html and view in Browser.
older | convert | pizzazz | more | codepen
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ZIM - Code Creativity</title>
<!-- zimjs.com - JavaScript Canvas Framework -->
<script type="module">
import "https://zimjs.org/cdn/020/zim";
// See Docs under Frame for FIT, FILL, FULL, and TAG
new Frame(FIT, 1024, 768, light, dark, ready);
function ready() {
// given F (Frame), S (Stage), W (width), H (height)
// put code here
new Circle(100, purple)
.center()
.drag();
} // end ready
</script>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body></body>
</html>
TEMPLATE
Copy template to a text file on your computer, save as code.html and view in Browser.
newer | convert | pizzazz | more | codepen
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ZIM - Code Creativity</title>
<!-- zimjs.com - JavaScript Canvas Framework -->
<script src="https://zimjs.org/cdn/1.5/createjs.js"></script>
<script src="https://zimjs.org/cdn/020/zim_min.js"></script>
<script>
// See Docs under Frame for FIT, FILL, FULL, and TAG
const frame = new Frame(FIT, 1024, 768, light, dark);
frame.on("ready", () => {
const stage = frame.stage;
let stageW = frame.width;
let stageH = frame.height;
// put your code here
new Circle(100, purple)
.center()
.drag();
}); // end ready
</script>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body></body>
</html>
TEMPLATE
Copy template to a text file on your computer, save as code.html and view in Browser.
newer | older | convert | more | codepen
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ZIM - Code Creativity</title>
<!-- zimjs.com - JavaScript Canvas Framework -->
<script type="module">
import zim from "https://zimjs.org/cdn/020/zim_pizzazz";
// See Docs under Frame for FIT, FILL, FULL, and TAG
new Frame(FIT, 1024, 768, light, dark, ready);
function ready() {
// given F (Frame), S (Stage), W (width), H (height)
// put code here
// for more shapes, icons and patterns see
// https://zimjs.com/docs.html?item=pizzazz
makePattern("slants", series(fog, mist), 10, 50, 40).center();
new Button({
backing:makeShape("cloud", black),
rollBacking:makeShape("cloud", white),
icon:makeIcon("home", white),
rollIcon:makeIcon("home", black)
}).center().tap(()=>{zgo("https://zimjs.com")});
} // end ready
</script>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body></body>
</html>
TEMPLATE
Copy template to a text file on your computer, save as code.html and view in Browser.
newer | older | pizzazz | more | codepen
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ZIM - Code Creativity</title>
<!-- zimjs.com - JavaScript Canvas Framework -->
<script type="module">
import zim from "https://zimjs.org/cdn/019/zim";
// See Docs under Frame for FIT, FILL, FULL, and TAG
new Frame(FIT, 1024, 768, light, dark, ready);
function ready(frame, stage, stageW, stageH) {
// given F (Frame), S (Stage), W (width), H (height)
// but we have also collected frame, stage, stageW, stageH
// these are the variables we used in older versions of the template
// put code here
new Circle(100, purple)
.center()
.drag();
} // end ready
</script>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body></body>
</html>
CDN & NPM
MODULES
import "https://zimjs.org/cdn/020/zim" import "https://zimjs.org/cdn/020/zim_physics" import "https://zimjs.org/cdn/020/zim_game" import "https://zimjs.org/cdn/020/zim_three" import "https://zimjs.org/cdn/020/zim_socket" import "https://zimjs.org/cdn/020/zim_cam" import "https://zimjs.org/cdn/020/zim_pizzazz" import "https://zimjs.org/cdn/020/zim_chart"PACKAGES
https://npmjs.com/package/zimjs https://npmjs.com/package/@zimjs/physics https://npmjs.com/package/@zimjs/game https://npmjs.com/package/@zimjs/three https://npmjs.com/package/@zimjs/socket https://npmjs.com/package/@zimjs/cam https://npmjs.com/package/@zimjs/pizzazz https://npmjs.com/package/@zimjs/chartTEMPLATES
NPM Templates for Svelte, React, Angular, and VUETOOLS
MAIN
DISTILL - only minify functions used for app (tree shaking) ZAPPS - mobile PWA tool - make apps in five minutes WONDER - micro stats system ASSET LIST - provides file names in directory for Frame loading DOCTOR - gives links to Docs for items used in code BEAM - share code with others EDITOR - view, create, list, and share ZappsAI
CHAT BOT - first experimental ZIM AI Chatbot ZIM PROMPT - purchase base prompt for AI skills or projectsAPPS
EMITTER - visually build ZIM Emitter Code THRESHOLD - tool to test threshhold values EASE - see animation eases and create custom eases SLICER - load image and prepare n-slicing for borders TIMELINE - scrub animation timeline with trails EMOJIS - get Emoji code to use in ZIM Label textIN CODE
MONITOR - demonstration to monitor objects in code OUTLINE - shows origin, reg, and a border around bounds PLACE - method to visually place object (see console) PLACEREG - method to visually set registration point GRID - visualize percentage or x and y coordinates GUIDE - measure distance between objectsEXTERNAL
TYPESCRIPT - information about ZIM with Typescript ADOBE ANIMATE - exports to ZIM + tutorials TEXTURE PACKER - create SpriteSheets for ZIM CREATEJS - ZIM extends CreateJS - see site and docsLIBRARIES
ZIM SOCKET for Multiuser and ZIM GAME with LEADER and ISOMETRIC Boards
ZIM PHYSICS with integrated Box2D and ZIM THREE with three.js and VR!
ZIM PIZZAZZ for vectors and ZIM CAM for Webcam gesture tracking with ML5
ZIM BASE for database queries and ZIM CHART for plotting, clouds, and champs.
ARCHIVE
See the ARC for code features like accessibility and interactive animation. There is a help section and all the info above with lots of icons!
Code Archive
Code Archive