1 | static S jsMandelbrotCreateCanvas() {
|
2 | ret [[ |
3 | // Create Or Get Canvas |
4 | var myCanvas = document.getElementById("apfelcanvas");
|
5 | if (myCanvas == null) {
|
6 | myCanvas = document.createElement("canvas");
|
7 | myCanvas.id = 'apfelcanvas'; |
8 | myCanvas.width=1280/4; |
9 | myCanvas.height=720/4; |
10 | document.body.appendChild(myCanvas); |
11 | } |
12 | var ctx = myCanvas.getContext("2d");
|
13 | ]]; |
14 | } |
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: | 561 / 601 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |