1 | static RGBImage rgbTurnLeft(RGBImage img) {
|
2 | int w = img.w(), h = img.h(); |
3 | RGBImage r = new RGBImage(h, w); |
4 | for y to w: for x to h: |
5 | r.setPixel(x, y, img.getPixel(w-1-y, x)); |
6 | ret r; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006373 |
| Snippet name: | rgbTurnLeft - rotate RGBImage 90° counter-clockwise |
| Eternal ID of this version: | #1006373/1 |
| Text MD5: | 85c04b1c2c7a81a5b90b0b911577b29d |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-29 22:13:18 |
| Source code size: | 199 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 728 / 712 |
| Referenced in: | [show references] |