mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
docs: remove deprecated config usage example
This commit is contained in:
parent
4d6a0db1e1
commit
e3d5b49a55
1 changed files with 0 additions and 19 deletions
|
@ -83,22 +83,3 @@ Its value is a dictionary, passed in as ``kwargs`` when initializing the ``Camer
|
||||||
to modify the value of the properties of the ``Camera`` class.
|
to modify the value of the properties of the ``Camera`` class.
|
||||||
|
|
||||||
So the nesting of the ``CONFIG`` dictionary **essentially** passes in the value as ``kwargs``.
|
So the nesting of the ``CONFIG`` dictionary **essentially** passes in the value as ``kwargs``.
|
||||||
|
|
||||||
Common usage
|
|
||||||
------------
|
|
||||||
|
|
||||||
When writing a class by yourself, you can add attributes or modify the attributes
|
|
||||||
of the parent class through ``CONFIG``.
|
|
||||||
|
|
||||||
The most commonly used is to modify the properties of the camera when writing a ``Scene``:
|
|
||||||
|
|
||||||
.. code-block:: python
|
|
||||||
|
|
||||||
class YourScene(Scene):
|
|
||||||
CONFIG = {
|
|
||||||
"camera_config": {
|
|
||||||
"background_color": WHITE,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
For example, the above dictionary will change the background color to white, etc.
|
|
Loading…
Add table
Reference in a new issue