Replies: 1 comment
-
When performing various Cairo drawing operations, the data in the pixel_array will also be updated, as they share this data. surface = cairo.ImageSurface.create_for_data(
pixel_array,
cairo.FORMAT_ARGB32,
pw,
ph,
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Regarding a source code question): I would like to know how Cairo exports images within Manim.
I know that the image is initially generated based on self.camera.pixel_array, but I am unsure where self.camera.pixel_array gets updated after rendering with Cairo.
When does the self.camera.pixel_array get updated with the rendered image when using Cairo for rendering? Below are some locations where I've found the setting of pixel_array, however, I'm still unable to find how self.camera.pixel_array gets updated with the next frame during the rendering process.
Beta Was this translation helpful? Give feedback.
All reactions