Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1014978 // drawPolygon

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10103L/56K).

1  
svoid drawPolygon(Graphics2D etc g, L<Pt> points, Color color) {
2  
  g.setColor(color);
3  
  g.drawPolygon(pointsX(points), pointsY(points), l(points));
4  
}

Author comment

Began life as a copy of #1014970

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: #1014978
Snippet name: drawPolygon
Eternal ID of this version: #1014978/4
Text MD5: 826dd9bef05dffcdc56e360c17bb5f67
Transpilation MD5: e20073c5b39a51c74cb78f2f28ee0baa
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-23 15:19:26
Source code size: 152 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 488 / 541
Version history: 3 change(s)
Referenced in: [show references]