Libraryless. Click here for Pure Java version (5872L/33K).
1 | srecord RenderRecognizedBox(IRecognizedBox box) is Renderable { |
2 | settable Color outerColor = Color.red; |
3 | settable Color innerColor = Color.green; |
4 | |
5 | public void renderOn(Graphics2D g, int w, int h) { |
6 | Rect r = box.bounds(); |
7 | r = growRect(r); |
8 | drawRect(g, innerColor, r); |
9 | r = growRect(r); |
10 | drawRect(g, outerColor, r); |
11 | } |
12 | } |
Began life as a copy of #1034560
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034562 |
Snippet name: | RenderRecognizedBox |
Eternal ID of this version: | #1034562/5 |
Text MD5: | fffd69d16c472615358c699bd9820d49 |
Transpilation MD5: | 20d59ddaf9f4ca6bb8860b36da7ac39e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-16 01:47:17 |
Source code size: | 353 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 281 |
Version history: | 4 change(s) |
Referenced in: | [show references] |