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

8
LINES

< > BotCompany Repo | #1032174 // fillPrecisePolygon

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

Libraryless. Click here for Pure Java version (3256L/18K).

1  
svoid fillPrecisePolygon(Graphics2D etc g, L<DoublePt> points, Color color) {
2  
  g.setColor(color);
3  
  g.fill(PrecisePolygon(points));
4  
}
5  
6  
svoid fillPrecisePolygon(Graphics2D etc g, L<DoublePt> points) {
7  
  g.fill(PrecisePolygon(points));
8  
}

Author comment

Began life as a copy of #1014970

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032174
Snippet name: fillPrecisePolygon
Eternal ID of this version: #1032174/3
Text MD5: b559b5528290201cfa55d11d50c5dd01
Transpilation MD5: 34f21f9762dafd4635f24264f4ebc0b2
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-17 14:33:59
Source code size: 243 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 177 / 264
Version history: 2 change(s)
Referenced in: [show references]