| ... |
... |
@@ -6,7 +6,7 @@ MUMIE offers to embed CindyJS in your content, or create standalone CindyJS cont |
| 6 |
6 |
If you created a visualisation with the program [Cinderella](https://cinderella.de), it is straight forward to incorporate the corresponding HTML into your tex-file in webMiau. |
| 7 |
7 |
|
| 8 |
8 |
|
| 9 |
|
-Example: |
|
9 |
+Example (in [WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2Fvisualizations-with-cindyJS%2Fart_center_of_gravity.src.tex)): |
| 10 |
10 |
|
| 11 |
11 |
``` |
| 12 |
12 |
\begin{cindyJS}[default]{CSCanvas} |
| ... |
... |
@@ -18,12 +18,10 @@ Example: |
| 18 |
18 |
{name: "S", type: "Free", pos: [1,1 , 1], color: [1.0, 1.0, 0.0], labeled: true} |
| 19 |
19 |
]}} |
| 20 |
20 |
\begin{cindyscript}{csinit} |
| 21 |
|
- S.x=(A.x+B.x+C.x)/3; |
| 22 |
|
- S.y=(A.y+B.y+C.y)/3; |
|
21 |
+ S.xy=(A.xy+B.xy+C.xy)/3; |
| 23 |
22 |
\end{cindyscript} |
| 24 |
23 |
\begin{cindyscript}{csmove} |
| 25 |
|
- S.x=(A.x+B.x+C.x)/3; |
| 26 |
|
- S.y=(A.y+B.y+C.y)/3; |
|
24 |
+ S.xy=(A.xy+B.xy+C.xy)/3; |
| 27 |
25 |
\end{cindyscript} |
| 28 |
26 |
|
| 29 |
27 |
\end{cindyJS} |
| 30 |
28 |
|