Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              const frame = new Frame("fit", 900, 850, purple, darker);
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 http://zimjs.com
    // see http://zimjs.com/learn.html for video and code tutorials
    // see http://zimjs.com/docs.html for documentation
    // see https://www.youtube.com/watch?v=pUjHFptXspM for INTRO to ZIM
    // see https://www.youtube.com/watch?v=v7OT0YrDWiY for INTRO to CODE

    // CODE HERE
	
	new pizzazz.makePattern({
        type:"slants",
        colors:white,
        size:50,
        cols:40,
        rows:35
    }).addTo().alp(.1);

    new Blob({
        borderColor:white,
        borderWidth:6,
        color:green,
        controlType:"straight", 
		points:"M220.284, 274.127 C222.69, 292.729 236.31, 327.393 222.104, 343.729 C199.204, 370.062 204.648, 299.718 205.313, 294.403 C206.37599999999998, 285.913 206.538, 234.938 186.057, 258.766 C184.554, 260.516 151.532, 316.948 149.545, 292.699 C148.943, 285.361 165.247, 263.296 156.07, 258.172 C145.273, 252.144 129.462, 266.782 122.903, 273.109 C118.864, 277 88, 308.363 84.866, 290.225 C81.299, 269.623 109.589, 261.834 122.985, 254.777 C133.129, 249.433 155.995, 238.545 154.779, 223.568 C154.115, 215.396 135.042, 213.398 129, 210.94 C97.966, 198.316 176.171, 199.402 160.49, 175.281 C151.785, 161.888 133.318, 160.47 123.697, 148.435 C114.608, 137.066 142.599, 137.991 147.305, 139.401 C165.688, 144.911 174.376, 144.194 180.763, 125.275 C185.332, 111.74 201.271, 101.134 201.022, 122.936 C200.963, 128.247 194.075, 156.565 204.61, 157.111 C217.97, 157.803 224.695, 133.092 227.11, 124.507 C230.276, 113.253 234.811, 76.297 254.02, 81.824 C269.047, 86.148 242.151, 128.931 244.391, 140.223 C250.991, 173.48 296.982, 116.8745 303.12, 111.026 C311.089, 103.41 324.251, 91.402 336.431, 96.705 C352.83, 103.845 351.81, 131.343 341.617, 142.953 C330.393, 155.737 256.125, 167.755 283.709, 195.747 C289.606, 201.732 326.715, 216.353 321.07, 227.267 C313.798, 241.327 288.523, 229.944 276.784, 232.905 C259.242, 237.334 270.387, 261.316 273.851, 271.943 C278.42, 285.957 275.291, 320.994 258.381, 294.742 C250.602, 282.665 254.705, 257.742 239.739, 250.72 C224.742, 243.687 218.352, 268.723 221.061, 279.048Z"})
            .addTo()
            .transformPoints("scale", 2)
            .sha();

    new Label({text:"ZIM - Blob with SVG input", color:white}).pos(30,30)
   
    stage.update(); // this is needed to show any changes
  
    // DOCS FOR ITEMS USED
	// https://zimjs.com/docs.html?item=Frame
	// https://zimjs.com/docs.html?item=Blob
	// https://zimjs.com/docs.html?item=Label
	// https://zimjs.com/docs.html?item=sha
	// https://zimjs.com/docs.html?item=pos
	// https://zimjs.com/docs.html?item=alp
	// https://zimjs.com/docs.html?item=addTo
	// https://zimjs.com/docs.html?item=transformPoints
	// https://zimjs.com/docs.html?item=zog
  
    // FOOTER
	
	// Please see a greeting message - then come visit us at ZIM https://zimjs.com
	createGreet();
	
    // call remote script to make ZIM Foundation for Creative Coding icon
    createIcon(); 

}); // end of ready
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console