NOTE: This simple example works because pix is smart enough to

pixpy

submited by
Style Pass
2024-04-16 10:00:03

NOTE: This simple example works because pix is smart enough to "swap" the screen to automatically display what you have drawn, and then leave the window open and wait for the user to close the window, before the script ends.

The Float2 and Int2 classes acts like tuples of 2 elements, except allows for basic math operations. They are used to represents points and sizes throughout pixpy.

The act similar to pythons normal float and int, so for instance a true division between two Int2 will always be promoted to a Float2.

All images are actually just references into Open GL Textures.This means that it's easy to cheaply manipulate images without doing a lot of copying.

One way to think of it is that an image is like an array slice or array view; it is cheap to create another view into an existing image.

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

Leave a Comment
Related Posts