mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-15 10:02:45 +00:00
Update latex example.
This commit is contained in:
parent
89f5e41479
commit
296b1b4956
2 changed files with 10 additions and 16 deletions
13
README.md
13
README.md
|
|
@ -165,14 +165,11 @@ latex_basic :: Ani ()
|
||||||
latex_basic = proc () -> do
|
latex_basic = proc () -> do
|
||||||
duration 2 -< ()
|
duration 2 -< ()
|
||||||
s <- signalOscillate 0 1 -< ()
|
s <- signalOscillate 0 1 -< ()
|
||||||
emit -< do
|
emit -< rect_ [width_ "100%", height_ "100%", fill_ "black"]
|
||||||
rect_ [width_ "100%", height_ "100%", fill_ "black"]
|
emit -<
|
||||||
g_ [transform_ $ translate 20 15] $
|
g_ [transform_ $ translate 20 15 <> " " <> scale 4 4] $ do
|
||||||
g_ [transform_ $ scale 4 4, stroke_ "white", fill_opacity_ "0", stroke_width_ "0.1"] $
|
g_ [stroke_ "white", fill_opacity_ "0", stroke_width_ "0.1"] text
|
||||||
text
|
g_ [fill_ "white", num_ fill_opacity_ s] text
|
||||||
g_ [transform_ $ translate 20 15] $
|
|
||||||
g_ [transform_ $ scale 4 4, fill_ "white", num_ fill_opacity_ s] $
|
|
||||||
text
|
|
||||||
where
|
where
|
||||||
text = latex "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}"
|
text = latex "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}"
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -331,13 +331,10 @@ latex_basic :: Ani ()
|
||||||
latex_basic = proc () -> do
|
latex_basic = proc () -> do
|
||||||
duration 2 -< ()
|
duration 2 -< ()
|
||||||
s <- signalOscillate 0 1 -< ()
|
s <- signalOscillate 0 1 -< ()
|
||||||
emit -< do
|
emit -< rect_ [width_ "100%", height_ "100%", fill_ "black"]
|
||||||
rect_ [width_ "100%", height_ "100%", fill_ "black"]
|
emit -<
|
||||||
g_ [transform_ $ translate 20 15] $
|
g_ [transform_ $ translate 20 15 <> " " <> scale 4 4] $ do
|
||||||
g_ [transform_ $ scale 4 4, stroke_ "white", fill_opacity_ "0", stroke_width_ "0.1"] $
|
g_ [stroke_ "white", fill_opacity_ "0", stroke_width_ "0.1"] text
|
||||||
text
|
g_ [fill_ "white", num_ fill_opacity_ s] text
|
||||||
g_ [transform_ $ translate 20 15] $
|
|
||||||
g_ [transform_ $ scale 4 4, fill_ "white", num_ fill_opacity_ s] $
|
|
||||||
text
|
|
||||||
where
|
where
|
||||||
text = latex "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}"
|
text = latex "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue