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

15
LINES

< > BotCompany Repo | #1007604 // A-vs-B Circles And Lines Web Bot

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

Download Jar. Uses 616K of libraries. Click here for Pure Java version (7799L/56K).

1  
!7
2  
3  
html {
4  
  new Matches m;
5  
  if (flexMatchIC("* vs *", urldecode(dropPrefix("/", uri)), m)) {
6  
    new CirclesAndLines cal;
7  
    cal.imgZoom = 0.5;
8  
    Circle a = cal.circle_autoVis($1, 0.23, 0.5);
9  
    Circle b = cal.circle_autoVis($2, 0.77, 0.5);
10  
    cal.arrow(a, "VS", b);
11  
    BufferedImage img = cal.makeImage(600, 350);
12  
    ret call(getMainBot(), "serveByteArray", toJPG(img), "image/jpeg");
13  
  } else
14  
    ret "woot";
15  
}

Author comment

Began life as a copy of #1007546

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007604
Snippet name: A-vs-B Circles And Lines Web Bot
Eternal ID of this version: #1007604/5
Text MD5: 573efee67359be8d5e3fa11465c50109
Transpilation MD5: 80192603a56d199310b852f7230bc6dd
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-03-28 11:22:52
Source code size: 435 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 554 / 1420
Version history: 4 change(s)
Referenced in: [show references]