Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let draw = new DrawContext()
- draw.respectScreenScale=true
- draw.setFillColor(Color.darkGray())
- draw.fillRect(new Rect(0,0,500,500))
- let img = draw.getImage()
- QuickLook.present(img, false)
Advertisement
Add Comment
Please, Sign In to add comment