11

Progress - for the CodePen Timeline Challenge

 2 years ago
source link: https://codepen.io/danzen/pen/VwrzrRX
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

JS (Babel)

xxxxxxxxxx
const frame = new Frame("fit", 1024, 768, dark, 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 Label("PROGRESS",null,null,light).loc(30,35)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK