Someone knows how to change the background color on an animation?

94 Views Asked by At

I'm doing an animation with celluloid.Camera in Google Colab, for that it show the animation I'm using this code segment:

camera = Camera(fig)

# Create animation
anim = camera.animate()
# Inline display
HTML(anim.to_html5_video())

And I get this:

enter image description here

I've tried using the next lines:

fig, ax = plt.subplots(figsize=(12,8), facecolor='black')
fig.patch.set_facecolor('black')
ax.set_facecolor('black')

But it doesn't work. I want the entire background to be black.

0

There are 0 best solutions below