From 1f9c151965123c0974d0ce1c2d0750cb11e18aff Mon Sep 17 00:00:00 2001 From: Lemmih Date: Sun, 6 Sep 2020 09:26:31 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=209d71d?= =?UTF-8?q?d9454df772fb54856411678416ceb9f433c=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/snippets.js | 2 +- reanimate-0.4.3.0-inplace/Reanimate.Scene.hs.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/playground/snippets.js b/playground/snippets.js index 8b5ba70..625579b 100644 --- a/playground/snippets.js +++ b/playground/snippets.js @@ -9,4 +9,4 @@ const snippets = [{"title": "Hello World","url": "https://reanimate.clozecards.c ,{"title": "Object Positions","url": "https://reanimate.clozecards.com/Mf4zcImo+I7/195.svg","code": "env =\n addStatic (mkBackground \"white\") .\n mapA (withStrokeColor \"black\")\n\nanimation :: Animation\nanimation = env $\n sceneAnimation $ do\n -- Configure objects\n txt <- newText \"Center\"\n top <- newText \"Top\"\n oModifyS top $ \n oTopY .= screenTop\n topR <- newText \"Top right\"\n oModifyS topR $ do\n oTopY .= screenTop\n oRightX .= screenRight\n botR <- newText \"Bottom right\"\n oModifyS botR $ do\n oTranslate .= (0, screenBottom+0.5)\n oRightX .= screenRight\n botL <- newText \"Bottom left\"\n oModifyS botL $ do\n oTranslate .= (0, screenBottom+0.5)\n oLeftX .= screenLeft\n topL <- newText \"Top left\"\n oModifyS topL $ do\n oTopY .= screenTop\n oLeftX .= screenLeft\n -- Show objects\n oShow txt\n wait 1\n switchTo txt top\n switchTo top topR\n switchTo topR botR\n switchTo botR botL\n switchTo botL topL\n switchTo topL txt\n\nswitchTo src dst = do\n fork $ oHideWith src oFadeOut\n oShowWith dst oFadeIn\n wait 1\n\nnewText txt =\n newObject $ scale 1.5 $ centerX $ latex txt\n"} ,{"title": "Camera","url": "https://reanimate.clozecards.com/Hcx00P+aeph/150.svg","code": "animation :: Animation\nanimation = docEnv $ mapA (withFillOpacity 1) $ sceneAnimation $ do\n cam <- newObject Camera\n\n txt <- newObject $ center $ latex \"Fixed (non-cam)\"\n oModifyS txt $ do\n oTopY .= screenTop \n oZIndex .= 2\n\n circle <- newObject $ withFillColor \"blue\" $ mkCircle 1\n cameraAttach cam circle\n circleRight <- oRead circle oRightX\n\n box <- newObject $ withFillColor \"green\" $ mkRect 2 2\n cameraAttach cam box\n oModify box $ oLeftX .~ circleRight\n boxCenter <- oRead box oCenterXY\n\n small <- newObject $ center $ latex \"This text is very small\"\n cameraAttach cam small\n oModifyS small $ do\n oCenterXY .= boxCenter\n oScale .= 0.1\n \n oShow txt\n oShow small\n oShow circle\n oShow box\n\n wait 1\n\n cameraFocus cam boxCenter\n waitOn $ do\n fork $ cameraPan cam 3 boxCenter\n fork $ cameraZoom cam 3 15\n \n wait 2\n cameraZoom cam 3 1\n cameraPan cam 1 (0,0)\n"} ]; -const playgroundVersion = "2020-09-05 (e8343)"; +const playgroundVersion = "2020-09-06 (9d71d)"; diff --git a/reanimate-0.4.3.0-inplace/Reanimate.Scene.hs.html b/reanimate-0.4.3.0-inplace/Reanimate.Scene.hs.html index 2277659..fd3bd10 100644 --- a/reanimate-0.4.3.0-inplace/Reanimate.Scene.hs.html +++ b/reanimate-0.4.3.0-inplace/Reanimate.Scene.hs.html @@ -417,7 +417,7 @@ span.spaces { background: white } 398 -- 399 -- @ 400 -- do var \<- 'simpleVar' 'mkCircle' 0 - 401 -- 'tweenVar' var 2 $ \val -> 'fromToS' val ('Reanimate.Constants.screenHeight'/2) + 401 -- 'tweenVar' var 2 $ \\val -> 'fromToS' val ('Reanimate.Constants.screenHeight'/2) 402 -- @ 403 -- 404 -- <<docs/gifs/doc_simpleVar.gif>> @@ -460,8 +460,8 @@ span.spaces { background: white } 441 -- @ 442 -- do v \<- 'newVar' 0 443 -- 'newSprite' $ 'mkCircle' \<$\> 'unVar' v - 444 -- 'tweenVar' v 1 $ \val -> 'fromToS' val 3 - 445 -- 'tweenVar' v 1 $ \val -> 'fromToS' val 0 + 444 -- 'tweenVar' v 1 $ \\val -> 'fromToS' val 3 + 445 -- 'tweenVar' v 1 $ \\val -> 'fromToS' val 0 446 -- @ 447 -- 448 -- <<docs/gifs/doc_unVar.gif>> @@ -582,7 +582,7 @@ span.spaces { background: white } 563 -- do s \<- 'fork' $ 'newSpriteA' 'Reanimate.Builtin.Documentation.drawBox' 564 -- v \<- 'newVar' 0 565 -- 'applyVar' v s 'rotate' - 566 -- 'tweenVar' v 2 $ \val -> 'fromToS' val 90 + 566 -- 'tweenVar' v 2 $ \\val -> 'fromToS' val 90 567 -- @ 568 -- 569 -- <<docs/gifs/doc_applyVar.gif>> @@ -645,7 +645,7 @@ span.spaces { background: white } 626 -- 627 -- @ 628 -- do s \<- 'fork' $ 'newSpriteA' 'Reanimate.Builtin.Documentation.drawCircle' - 629 -- 'spriteTween' s 1 $ \val -> 'translate' ('Reanimate.Constants.screenWidth'*0.3*val) 0 + 629 -- 'spriteTween' s 1 $ \\val -> 'translate' ('Reanimate.Constants.screenWidth'*0.3*val) 0 630 -- @ 631 -- 632 -- <<docs/gifs/doc_spriteTween.gif>> @@ -669,7 +669,7 @@ span.spaces { background: white } 650 -- @ 651 -- do s \<- 'fork' $ 'newSpriteA' 'Reanimate.Builtin.Documentation.drawBox' 652 -- v \<- 'spriteVar' s 0 'rotate' - 653 -- 'tweenVar' v 2 $ \val -> 'fromToS' val 90 + 653 -- 'tweenVar' v 2 $ \\val -> 'fromToS' val 90 654 -- @ 655 -- 656 -- <<docs/gifs/doc_spriteVar.gif>>