ManimCommunity / ManimCommunity/manim

DecimalNumber with color BLACK not appearing on white background

Open
#3,026 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue:bug
Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

## Description of bug / unexpected behavior
With a white background, a DecimalNumber of color RED or GREEN will appear, but not with BLACK!

## How to reproduce the issue
```python
from manim import *

class ColorBug(Scene):
def construct(self):

self.camera.background_color=WHITE
num1 = DecimalNumber(3.1415, color=RED)
num2 = DecimalNumber(2.71828, color=BLACK)

self.play(FadeIn(num1))
self.play(FadeOut(num1))
self.wait()
self.play(FadeIn(num2))
self.play(FadeOut(num2))
self.wait()
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Python reproduction with a white camera background and compare the RED and BLACK DecimalNumber cases. Trace DecimalNumber's rendering and color handling to identify why BLACK is not visible. Done means a BLACK DecimalNumber appears on white as expected, with coverage for this regression if the existing test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.