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).

!7

html {
  new Matches m;
  if (flexMatchIC("* vs *", urldecode(dropPrefix("/", uri)), m)) {
    new CirclesAndLines cal;
    cal.imgZoom = 0.5;
    Circle a = cal.circle_autoVis($1, 0.23, 0.5);
    Circle b = cal.circle_autoVis($2, 0.77, 0.5);
    cal.arrow(a, "VS", b);
    BufferedImage img = cal.makeImage(600, 350);
    ret call(getMainBot(), "serveByteArray", toJPG(img), "image/jpeg");
  } else
    ret "woot";
}

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: 553 / 1418
Version history: 4 change(s)
Referenced in: [show references]