Download Jar. Libraryless. Click here for Pure Java version (945L/7K).
1 | !7 |
2 | |
3 | static double ratio = 16.0/9; |
4 | |
5 | p { |
6 | /*double x2 = -0.7+600*ratio/2900; |
7 | double y2 = -0.6+600/2900; |
8 | double x1 = -0.7; |
9 | double y1 = -0.6;*/ |
10 | |
11 | double lookAtX = -0.9849887222994085; |
12 | double lookAtY = -0.270674014094884; |
13 | |
14 | double zoomStep = /*1-1e-3*/1-1e-2; |
15 | |
16 | int steps = 0, max = 1000; |
17 | for (double w = 1.0; /*w > 0*/steps < max; w *= zoomStep) { |
18 | ++steps; |
19 | double h = w/ratio; |
20 | double x1 = lookAtX-w; |
21 | double x2 = lookAtX+w; |
22 | double y1 = lookAtY-h; |
23 | double y2 = lookAtY+h; |
24 | //print(steps + ": "+ w); |
25 | print(steps + ": "+ x1 + ", " + y1 + ", " + x2 + ", " + y2); |
26 | } |
27 | |
28 | |
29 | } |
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: | #1014001 |
Snippet name: | Mandelbrot Coordinates |
Eternal ID of this version: | #1014001/6 |
Text MD5: | adceffcf51d66da90316f4a88021a2e2 |
Transpilation MD5: | bd2be7548f13e0eef6be63657db852d8 |
Author: | stefan |
Category: | javax / web |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-19 05:01:19 |
Source code size: | 641 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 469 / 1061 |
Version history: | 5 change(s) |
Referenced in: | [show references] |