piRSquared

tilted ellipse

Apr 5th, 2021
424
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from PIL import Image, ImageDraw
  2. h, w, l, t = 1000, 1000, 100, 300
  3. img = Image.new("RGB", (h, w), "white")
  4. draw = ImageDraw.Draw(img)
  5. draw.ellipse((l, t, w - l, h - t), outline="black")
  6. img.rotate(45, Image.BILINEAR).resize((h // 2, w // 2), Image.ANTIALIAS).show()
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×