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

11
LINES

< > BotCompany Repo | #1033729 // RasterBars

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

Libraryless. Click here for Pure Java version (5205L/29K).

sclass RasterBars > Animation {
  LPair<IntRange, Int> streaks;
  
  *() {}
  *(int *w, int *h, LPair<IntRange, Int> *streaks) {}
  
  void paint {
    for (streak : streaks)
      fillRect(g, 0, streak.a.start, w, l(streak.a), grayToColor(streak.b));
  }
}

Author comment

Began life as a copy of #1033728

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033729
Snippet name: RasterBars
Eternal ID of this version: #1033729/2
Text MD5: 5a6ad25ac53493a354a4a80adb3a683d
Transpilation MD5: 3ffa9cfce611b37a2e433f4ffef1f3a8
Author: stefan
Category: javax / gazelle v
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-30 22:28:47
Source code size: 267 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 142 / 225
Version history: 1 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)