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)); } }
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: | 140 / 223 |
Version history: | 1 change(s) |
Referenced in: | [show references] |