Uses 3874K of libraries. Click here for Pure Java version (5968L/42K/149K).
1 | !7 |
2 | |
3 | static int delay = 500; |
4 | |
5 | p-substance {
|
6 | showFrame(jcanvas(f makeImage, delay)); |
7 | } |
8 | |
9 | static BufferedImage makeImage(final int w, final int h) {
|
10 | ret renderImage(w, h, func(int x, int y) {
|
11 | ret x < w/2 != y < h/2 ? Color.red : Color.blue; |
12 | }); |
13 | } |
Began life as a copy of #1007280
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: | #1007286 |
| Snippet name: | Test jcanvas [WORKS] |
| Eternal ID of this version: | #1007286/5 |
| Text MD5: | 17b9c946d8130e58a2cd50fd3e4d917c |
| Transpilation MD5: | 371c75614809bb413a306785b3dfae7b |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-14 22:50:04 |
| Source code size: | 264 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 743 / 919 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |