Libraryless. Click here for Pure Java version (5872L/33K).
srecord RenderRecognizedBox(IRecognizedBox box) is Renderable { settable Color outerColor = Color.red; settable Color innerColor = Color.green; public void renderOn(Graphics2D g, int w, int h) { Rect r = box.bounds(); r = growRect(r); drawRect(g, innerColor, r); r = growRect(r); drawRect(g, outerColor, r); } }
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: | 169 / 281 |
Version history: | 4 change(s) |
Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |