mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Add Checkmark and Exmark
This commit is contained in:
@ -28,6 +28,25 @@ from manimlib.utils.space_ops import rotate_vector
|
|||||||
from manimlib.utils.space_ops import center_of_mass
|
from manimlib.utils.space_ops import center_of_mass
|
||||||
|
|
||||||
|
|
||||||
|
class Checkmark(TextMobject):
|
||||||
|
CONFIG = {
|
||||||
|
"color": GREEN
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
super().__init__("\\ding{51}")
|
||||||
|
|
||||||
|
|
||||||
|
class Exmark(TextMobject):
|
||||||
|
CONFIG = {
|
||||||
|
"color": RED
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
super().__init__("\\ding{55}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Lightbulb(SVGMobject):
|
class Lightbulb(SVGMobject):
|
||||||
CONFIG = {
|
CONFIG = {
|
||||||
"file_name": "lightbulb",
|
"file_name": "lightbulb",
|
||||||
|
Reference in New Issue
Block a user