Navigation for the ZIM JavaScript Canvas Framework

AboutExamplesLearnEditorCodeDocsDevsGold
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

About ZIM - the free, open source JavaScript Canvas Framework for coding creativity - this pic shows many icons of colorful ZIM expamples

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/chart

TEMPLATES

NPM Templates for Svelte, React, Angular, and VUE

TOOLS

About ZIM - the free, open source JavaScript Canvas Framework for coding creativity - this pic shows many icons of colorful ZIM expamples

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 Zapps

AI

CHAT BOT - first experimental ZIM AI Chatbot ZIM PROMPT - purchase base prompt for AI skills or projects

APPS

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 text

IN 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 objects

EXTERNAL

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 docs
LIBRARIES

ZIM SOCKET for Multiuser and ZIM GAME with LEADER and ISOMETRIC Boards

ZIM Socket makes SocketIO easy for multiuser on the JavaScript Canvas. ZIM Game - leader board, isometric board, dialog, meter, etc.

ZIM PHYSICS with integrated Box2D and ZIM THREE with three.js and VR!

ZIM Physics with integrated Box2D for forces, torque, collision, bouyancy, etc. ZIM Three Library to work with three.js on the JavaScript Canvas.

ZIM PIZZAZZ for vectors and ZIM CAM for Webcam gesture tracking with ML5

ZIM Pizzazz for vecter shapes, icons, patterns, paths. ZIM Cam - Access Web Cam for Memes, Hand, Gesture, Face Tracking with ML5

ZIM BASE for database queries and ZIM CHART for plotting, clouds, and champs.

ZIM Base - Database Simplified - Easy PHP MySQLi Queries. ZIM Chart - Bar, Plot, Line, Pie, Growth, Radar, Live Graphs and Charts.  Word Cloud, Championship Brackets
ARCHIVE
Description
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