Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.






                const frame = new Frame("fit", 1024, 768, black, "#555");
frame.on("ready", ()=>{ // ES6 Arrow Function - similar to function(){}
    zog("ready from ZIM Frame"); // logs in console (F12 - choose console)

    // often need below - so consider it part of the template
    let stage = frame.stage;
    let stageW = frame.width;
    let stageH = frame.height;

    // REFERENCES for ZIM at
    // see for video and code tutorials
    // see for documentation
    // see for INTRO to ZIM
    // see for INTRO to CODE

    // CODE HERE
	// ZIM Cat 01 - has launched with Generator() 
	// This provides draw and stamp call back functions 
	// and relative drawing code like Processing / P5js 
	// draw will animate.  You can use stamp to draw immediately 
	// Try it below by changing draw:gen to stamp:gen 
	// See for more examples
	// every five generations go to the next color
	const colors = series("#53d9d1", "#f27b9b", "#eb7132").every(5);

	// we will rotate by 5 degrees so only run the generator 360/5 for one full circle
	var g = new Generator({strokeColor:colors, strokeWidth:2, draw:gen, maxCount:360/5});
	function gen() {
		g.push() // remember that we are at the center
			.circle(200,0,150) // x,y,radius
			.circle(-40,0,5) // 200-40 in x (position relative from last spot)
			.circle(50,0,10) // 200-40+50 in x
			.circle(60,0,20) // 200-40+50+60 in x
		 .pop().rotate(5) // return to the center and rotate

	// to include a Teleporter in a ZIM app 
	// import
	// and pass in the URL of your CodePen page
	const url = "";
	const teleporter = new Teleporter(url).sca(.3).pos(30,20,LEFT,BOTTOM);
	// To include a Teleporter on your HTML page see this Pen for an example

    // FOOTER
    // call remote script to make ZIM Foundation for Creative Coding icon

}); // end of ready