Transpiled version (11795L) is out of date.
1 | srecord noeq G22MeshGroup(L<G22Mesh> meshes) is MakesBufferedImage {
|
2 | public Rect bounds() {
|
3 | ret mergeRects(map(meshes, m -> m.bounds())); |
4 | } |
5 | |
6 | public int getWidth() { ret bounds().w; }
|
7 | public int getHeight() { ret bounds().h; }
|
8 | |
9 | public BufferedImage getBufferedImage() {
|
10 | var r = bounds(); |
11 | if (r == null) null; |
12 | ret new G22VisualizeMeshes( |
13 | widthAndHeight(r.x2(), r.y2()), meshes)!; |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035170 |
| Snippet name: | G22MeshGroup - multiple meshes on one screen |
| Eternal ID of this version: | #1035170/4 |
| Text MD5: | 6f1ce6c05426c96627a788c190613737 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-02 20:02:53 |
| Source code size: | 431 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 612 / 753 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |