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

16
LINES

< > BotCompany Repo | #1025100 // floatArraysToBWImageColumns

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3035L/19K).

static BWImage floatArraysToBWImageColumns(int h, L<float[]> l) {
  int w = lengthLevel2_gen(l);
  if (w == 0) null;
  int x = 0;
  BWImage img = new(w, h);
  for (float[] a : l) {
    int ww = l(a);
    for xx to ww: {
      float f = a[xx];
      for y to h:
        img.setPixel(x+xx, y, f);
    }
    x += ww;
  }
  ret img;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025100
Snippet name: floatArraysToBWImageColumns
Eternal ID of this version: #1025100/4
Text MD5: e3f20ea030e0d4391eca7bca5b9a0372
Transpilation MD5: 8d905c56cb5d51fc715b51cfb779e00e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-05 15:41:13
Source code size: 345 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 262 / 350
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)