Libraryless. Click here for Pure Java version (1388L/9K/31K).
!752 sbool error; static JFrame frame; // returns false if done, otherwise calls whenDone later static bool action(S s, final Runnable whenDone) { new Matches m; if "Bot shows color *" { showColor(colorFromText(m.unq(0))); false; } throw fail("unknown command: " + quote(s)); } svoid showColor(Color color) { if (frame == null) frame = showCenterFrame("Color Bot!", 200, 200); setFrameContents(frame, singleColorPanel(color)); }
Began life as a copy of #1003351
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003384 |
Snippet name: | Color Showing Bot Backend |
Eternal ID of this version: | #1003384/1 |
Text MD5: | 395e6efcec5cc295b2958b5c9f46723b |
Transpilation MD5: | 8544cdc1833c08bb1a088bebc478d21e |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-06-28 23:22:28 |
Source code size: | 480 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 573 / 1139 |
Referenced in: | #1003387 - Test Color Showing Bot Backend #1003389 - Color Showing Bot (works, just not for repetitions) #1003406 - Color Showing Bot v2 #1003415 - Pausing Backend |