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

29
LINES

< > BotCompany Repo | #1014001 // Mandelbrot Coordinates

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (945L/7K).

!7

static double ratio = 16.0/9;

p {
  /*double x2 = -0.7+600*ratio/2900;
  double y2 = -0.6+600/2900;
  double x1 = -0.7;
  double y1 = -0.6;*/
  
  double lookAtX = -0.9849887222994085;
  double lookAtY = -0.270674014094884;
  
  double zoomStep = /*1-1e-3*/1-1e-2;
  
  int steps = 0, max = 1000;
  for (double w = 1.0; /*w > 0*/steps < max; w *= zoomStep) {
    ++steps;
    double h = w/ratio;
    double x1 = lookAtX-w;
    double x2 = lookAtX+w;
    double y1 = lookAtY-h;
    double y2 = lookAtY+h;
    //print(steps + ": "+ w);
    print(steps + ": "+ x1 + ", " + y1 + ", " + x2 + ", " + y2);
  }
  

}

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: 468 / 1060
Version history: 5 change(s)
Referenced in: [show references]