mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add comment
This commit is contained in:
parent
1707958e0f
commit
97e4c25453
1 changed files with 5 additions and 1 deletions
|
@ -127,7 +127,11 @@ def get_fill_canvas(ctx) -> Tuple[Framebuffer, VertexArray, Tuple[float, float,
|
|||
# We'll paint onto a canvas with initially negative rgbs, and
|
||||
# discard any pixels remaining close to this value. This is
|
||||
# because alphas are effectively being used for another purpose,
|
||||
# and
|
||||
# and we don't want to overlap with any colors one might actually
|
||||
# use. It should be negative enough to be distinguishable from
|
||||
# ordinary colors with some margin, but the farther it's pulled back
|
||||
# from zero the more it will be true that overlapping filled objects
|
||||
# with transparency have an unnaturally bright composition.
|
||||
null_rgb = (-0.25, -0.25, -0.25)
|
||||
|
||||
simple_program = ctx.program(
|
||||
|
|
Loading…
Add table
Reference in a new issue