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

4
LINES

< > BotCompany Repo | #1033754 // polygonFillingDemo - shows how Graphics2D paints a polygon (exclusive in right/bottom points)

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

Libraryless. Click here for Pure Java version (14623L/90K).

static ImageSurface polygonFillingDemo() {
  ret pixelatedZoomedImageSurface(renderShape(Color.green, PrecisePolygon(
  1, 1, 3, 1, 3, 3, 1, 3), 4, 4));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033754
Snippet name: polygonFillingDemo - shows how Graphics2D paints a polygon (exclusive in right/bottom points)
Eternal ID of this version: #1033754/2
Text MD5: 7b1f75184b7d1830f3c16b0bfa086497
Transpilation MD5: 21d540063f7ef815e1787655208c974f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-01 22:31:31
Source code size: 157 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 70 / 116
Version history: 1 change(s)
Referenced in: [show references]