Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1013910 // jsMandelbrotCreateCanvas

JavaX fragment (include)

static S jsMandelbrotCreateCanvas() {
  ret [[
  // Create Or Get Canvas
  var myCanvas = document.getElementById("apfelcanvas");
  if (myCanvas == null) {
    myCanvas = document.createElement("canvas");
    myCanvas.id = 'apfelcanvas';
    myCanvas.width=1280/4;
    myCanvas.height=720/4;
    document.body.appendChild(myCanvas);
  }
  var ctx = myCanvas.getContext("2d");
  ]];
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013910
Snippet name: jsMandelbrotCreateCanvas
Eternal ID of this version: #1013910/5
Text MD5: f2e897d210465dc91ec7646a9e39e811
Author: stefan
Category: javax / javascript
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-19 04:32:40
Source code size: 396 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 342 / 377
Version history: 4 change(s)
Referenced in: [show references]