Guest User

Draw context

a guest
Aug 29th, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. let draw = new DrawContext()
  2. draw.respectScreenScale=true
  3. draw.setFillColor(Color.darkGray())
  4.  
  5. draw.fillRect(new Rect(0,0,500,500))
  6.  
  7. let img = draw.getImage()
  8.  
  9. QuickLook.present(img, false)
Advertisement
Add Comment
Please, Sign In to add comment