Repository navigation
How to disable anti-aliasing in Manim? #4902
Unanswered
adam-whittaker
asked this question in
Q&A
Replies: 1 comment
|
From a quick look through the codebase, it looks like the Cairo renderer exposes its antialias setting through from manim import *
import cairo
old_get_ctx = Camera.get_cairo_context
def get_cairo_context(self, pixel_array: np.ndarray):
ctx = old_get_ctx(self, pixel_array)
ctx.set_antialias(cairo.Antialias.NONE)
return ctx
Camera.get_cairo_context = get_cairo_context
class AntialiasTest(Scene):
def construct(self):
mob = Text("Hello World").scale(3)
self.add(mob) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I am trying to code a color-based filter that will be applied on top of manim renders, but it seems like the manim anti-aliasing is messing up my color detection.
All reactions