Download Jar. Libraryless. Click here for Pure Java version (5867L/39K).
!7 import java.awt.font.*; import java.awt.geom.*; p-awt { JPanel panel = singleColorPanel(Color.RED); new JWindow w; w.add(panel); w.setVisible(true); TextLayout tl = new TextLayout("PERV ALERT", w.getFont().deriveFont(Font.BOLD, 50f), ((Graphics2D) w.getGraphics()).getFontRenderContext()); Rectangle2D r = tl.getBounds(); print("Bounds: " + r); new AffineTransform tx; tx.translate(0, r.getHeight()); Shape outline = tl.getOutline(tx); //w.setShape(new Ellipse2D.Double(0,0,500,500)); centerWindow(w, iceil(r.getWidth()), iceil(r.getHeight())); //blinkWindowUsingShape(w, outline); w.setShape(outline); blinkWindowUsingLocation(w); }
Began life as a copy of #1013337
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013339 |
Snippet name: | Blinking Red Text Spike v2 (also suboptimal) |
Eternal ID of this version: | #1013339/12 |
Text MD5: | f66591f998ab2c8fcc90b045bf8eb868 |
Transpilation MD5: | 295ed00756f5089655ebd569c0750432 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-02 23:10:11 |
Source code size: | 698 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 484 / 1133 |
Version history: | 11 change(s) |
Referenced in: | #1013346 - Blinking Red Text Spike v1 (suboptimal) #1013348 - Blinking Red Text Spike v3 [OK] |