Skip to content
master
Go to file
Code

Latest commit

GENERATOR UPDATES
https://codepen.io/zimjs/pen/XWjrmoQ
Added a noise() function to the Generator that does ZIM Noise simplex
methods automatically choosing 1D-4D.
This returns a number from 0 to 1 (matching Processing/P5js) as opposed
to -1 to 1.
Added a seed parameter to Generator to set the Noise seed if desired.
Added resetup(), redraw() and restamp() methods to Generator
To call the setup, and start the draw and stamp functions again
This is very cool with stamp as we can animate through stamped pictures
to basically animate the Generator
-- beyond just doing the draw animation - see
https://codepen.io/zimjs/pen/XWjrmoQ
Added clear and reset methods to Generator
The clear() method will clear the image but keep the transforms
The reset() method will reset the transforms, set to startX and startY
and reset color, strokeColor and strokeWidth
These can also be called through resetup(), redraw() and restamp()
Still need to update these in GitHub and NPM... soon.

PATCHES
Added cache as a STYLE function - thanks Disco Drama for the inspiration

STYLE = {cache:true} // will cache all DisplayObjects - or cache
individual types, etc.
Fixed Dial press to jump to value when dial rotated
Remembered to update the version... this is new to ZIM Cat... takes some
getting used to.
Fixed ZIM Multi-asset Object - bug in multiple loads now fixed - thanks
Netanela
Also adjusted Multi-asset Object so if filename is the same as a
previous filename
this file gets the path added to its id.
Adjusted alp() to set any object with a tag property so the opacity of
the tag is set
This means a textArea.alp(.5) will actually set the alpha of the HMTL
tag as well
This does not work with textArea.alpha = .5 - only with the .alp() -
Thanks Cajoek for prompting.
Updated ZIM Sprite to work with multiple spritesheets for one Sprite -
Thanks Netanela for the suggestion.
95ace34

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

ZIM

npm GitHub

JavaScript Canvas Framework - Code Creativity!
https://zimjs.com

A consistent, complete, simple and colorful Canvas Framework that provides quick visual results. ZIM is great for learning to code but also powerful for professionals to make games, apps, art and more for desktop and mobile!

Please see the About section for why we use ZIM to make Interactive Media.
https://zimjs.com/about.html

Examples

There are many examples of things to be made with ZIM in the banner sections on the ZIM site
Here is the main example section including CodePen examples - we hope you like them!
https://zimjs.com/examples.html

Coding in ZIM looks like this:

new Rectangle(50, 50, green).center().drag(); // for a centered draggable rectangle!

new MotionController(new Emitter(), "mousemove"); // for a particle emitter following the mouse

const squiggle = new Squiggle().loc(100, 100); // wavy line with Bezier handles
new Circle(20, pink).addTo().animate({path:squiggle}, 1000); // animate along a squiggle

new Button(200, 70, "TRY ME")
  .pos(30,30,RIGHT,BOTTOM) 
  .tap(()=>{zgo("https://zimjs.com");}); // go to URL
  

Getting Started

Copy the template on the Code page into an editor like Atom and view results in any Browser.
https://zimjs.com/code.html

ZIM CODEPEN TOPIC
https://codepen.io/topic/zim/

ZIM LAB - lets you code in the browser and has a few examples to add and view
https://zimjs.com/lab.html

ZIM LEARN has many code and video tutorials including:

ZIM Bits - 64 common techniques, ZIM Capture, What IZ tutorials, ZIM Badges, Code Zero and more!
https://zimjs.com/learn.html

ZIM SKOOL is great for learning with 8 full lessons including in Browser code examples.
https://zimjs.com/skool.html and for kids https://zimjs.com/kids.html - like Magic!

LEARN JAVASCRIPT WITH CREATIVE CODING
https://zimjs.com/learnjavascript.html

ZIM TIPS has a listing of the elegant ways we code in ZIM
https://zimjs.com/tips.html

ZIM DOCS has all the Classes and Functions broken down by module - expand the topics
to see descriptions, examples, methods, properties, events, source, bits, vids, demos and more!
https://zimjs.com/docs.html

ZIM NPM - here is some information on optionally using ZIM with Node Package Manager:
https://zimjs.com/npm.html

ZIM TYPESCRIPT - here is some information on optionally using ZIM with TypeScript:
https://zimjs.com/typescript.html

Issues & Community

You are welcome to add issues here but we tend to use Slack at for issues and support
We would love to see you there!
https://zimjs.com/slack

An easy view of updates can be found here:
https://zimjs.com/updates.html

Dependencies

ZIM is powered by the robust CreateJS Library and adds many conveniences, components and controls.
Cheers to Grant, Lanny and the CreateJS Team!
https://createjs.com

Authors

  • Inventor Dan Zen
    Canadian New Media Awards Programmer of the Year 2008
    Hamilton Arts Awards for Media Arts 2017
    http://danzen.com - Museum of Interactive Works

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Acknowledgments

  • Thanks to the folks here and on Slack with reports, requests and enthusiasm!
  • Thanks Sheridan College and the Interactive Media Post Grad Program for the testing grounds!
  • Thanks to family for keeping me active in the "real world"
  • Thanks for giving us a STAR on GitHub!
You can’t perform that action at this time.