From fd3721e0502fdec72e57a983717b4062a96378c4 Mon Sep 17 00:00:00 2001 From: xy-23 Date: Tue, 6 Aug 2019 21:05:37 +0800 Subject: [PATCH] new Text mobject --- manimlib/mobject/svg/text_mobject.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/manimlib/mobject/svg/text_mobject.py b/manimlib/mobject/svg/text_mobject.py index 31c443c0..e46626ba 100644 --- a/manimlib/mobject/svg/text_mobject.py +++ b/manimlib/mobject/svg/text_mobject.py @@ -23,7 +23,7 @@ class Text(SVGMobject): Params: ------- text :: - a str, the space(' ') in front or back and '\\n' and '\\t' will be ignored + a str, the space(' ') in front or back and '\\t' will be ignored(when there is only one line) Params(optional): ----------------- @@ -53,10 +53,7 @@ class Text(SVGMobject): stroke_color :: the same as color - - storke_opacity :: - a float - + t2c (text2color) :: a dict like {'text':color} or Accurate mode @@ -209,7 +206,7 @@ class Text(SVGMobject): ignores = [ 'color', 't2c', 'fill_color', 'fill_opacity', - 'stroke_color', 'storke_opacity' + 'stroke_color' ] for ignore in ignores: if kwargs.__contains__(ignore):