Libraryless. Click here for Pure Java version (14827L/102K).
!7 import java.awt.geom.*; module MakeHole > DynPrintLog { start { dm_afterVisualize(r makeHole); dm_afterUnvisualize(r unmakeHole); } void makeHole { Window mainWindow = getWindow(dm_desktopPane()); if (mainWindow == null) ret; Area shape = new Area(new Rectangle(0, 0, getWidth(mainWindow), getHeight(mainWindow))); Area inner = new Area(toRectangle(dm_bounds())); //Area inner = new Area(new Rectangle(100, 100, 100, 50); shape.subtract(inner); setWindowShape(mainWindow, shape); } void unmakeHole { setWindowShape(getWindow(dm_desktopPane()), null); } void cleanMeUp { unmakeHole(); } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020032 |
Snippet name: | See-Through Window [dev., so funny, but not really working yet] |
Eternal ID of this version: | #1020032/5 |
Text MD5: | 108e2200595066f40e0ad761ab2f6f64 |
Transpilation MD5: | 15fcbdfffa3eeaaf841d9399196870ac |
Author: | stefan |
Category: | javax / gui effects |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-04 16:16:19 |
Source code size: | 688 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 376 / 555 |
Version history: | 4 change(s) |
Referenced in: | -