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

3
LINES

< > BotCompany Repo | #1035964 // markPoint

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

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

1  
svoid markPoint(Graphics2D etc g, Pt etc p, Color color default Color.red, int size default 3) {
2  
  fillRect(g, color, p.x-size/2, p.y-size/2, size, size);
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035964
Snippet name: markPoint
Eternal ID of this version: #1035964/4
Text MD5: c5518689a2fd72314efeb8f525dd2f20
Transpilation MD5: 672486d0ad6eb7bd35b474e45d2fa15f
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-23 15:17:44
Source code size: 158 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 137 / 211
Version history: 3 change(s)
Referenced in: [show references]