Libraryless. Click here for Pure Java version (5205L/29K).
1 | sclass RasterBars > Animation { |
2 | LPair<IntRange, Int> streaks; |
3 | |
4 | *() {} |
5 | *(int *w, int *h, LPair<IntRange, Int> *streaks) {} |
6 | |
7 | void paint { |
8 | for (streak : streaks) |
9 | fillRect(g, 0, streak.a.start, w, l(streak.a), grayToColor(streak.b)); |
10 | } |
11 | } |
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: | 141 / 225 |
Version history: | 1 change(s) |
Referenced in: | [show references] |