framebuffer¶
- janim.render.framebuffer.qt_framebuffer_patch(ctx: Context)¶
Automatically obtains the GL object before
withand resets it afterwith(if it is a Qt Framebuffer), to ensure compatibility with Qt
- class janim.render.framebuffer.FrameBuffer(ctx: Context, pw: int, ph: int, rgb: tuple[float, float, float], transparent: bool)¶
Bases:
object- clear() None¶
- context()¶
- use(index: int) None¶
- unpremultiply() None¶
Convert the current FBO’s PMA content to straight alpha via GPU pass; write the result back
- read() bytes¶
- get_image() Image¶
- release() None¶