Skip to content

Tag: python-imaging-library

How to make a circle using PIL?

As the title says I want to draw a circle in PIL but the output isn’t a circle The output: https://i.stack.imgur.com/qlYmD.png Code: I want to know how can I fix this problem. Answer To draw a circle of radius 50 with center at (150,150): To the ellipse you have to provide Two points to define the bound…

pyOpenGL 2D Image drawn skewed

I am trying to draw a 2d image in OpenGL using pillow to load the image, but when I render it in OpenGL, the image is skewed. This is the original image: Loading.png This is the code: Result As you can see, the result is a skewed image, I don’t know why this is happening, and I can’t see the