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

17
LINES

< > BotCompany Repo | #1007546 // Circles And Lines Web Bot

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

Download Jar. Libraryless. Click here for Pure Java version (14187L/100K).

1  
!7
2  
3  
html {
4  
  L<S> triples = lines(params.get("triples"));
5  
  CirclesAndLines cal;
6  
  if (nempty(triples))
7  
    cal = webToCAL(webFromTriples(triples));
8  
  else {
9  
    cal = new CirclesAndLines;
10  
    Circle a = cal.circle_autoVis("Yo", 0.2, 0.5);
11  
    Circle b = cal.circle_autoVis("Yo-Yo", 0.8, 0.5);
12  
    cal.arrow(a, "ARROW", b);
13  
  }
14  
  
15  
  BufferedImage img = cal.makeImage(600, 400);
16  
  ret subBot_serveJPEG(img);
17  
}

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: #1007546
Snippet name: Circles And Lines Web Bot
Eternal ID of this version: #1007546/6
Text MD5: 20a7054830615de99c1f595edb76de4a
Transpilation MD5: 0da6b235a29df1be117dbafc43706134
Author: stefan
Category: javax / a.i. / html
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-20 01:39:23
Source code size: 424 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 934
Version history: 5 change(s)
Referenced in: [show references]