简体   繁体   中英

Zoom in and Zoom Out Pygame

So, I'm working with pygame in python 2.7.9 and I'm trying to make some kind of zoom, to view details of a fractal.

I can easily draw a Sierpinski triangle using polygons, my idea is to zoom a area of the triangle and see details of the depth without pixelation.

So far, I can zoom in but the surface gets pixelated

Is there anyway to do this?

Thanks.

First make a canvas and triangle with a big size and Zoom out. So when you zoom in, it won't get pixelated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM