mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-13 00:52:54 +00:00
Rewamp object effects.
This commit is contained in:
parent
7797585dc0
commit
755fb02c6c
13 changed files with 221 additions and 52 deletions
20
examples/doc_oDraw.hs
Executable file
20
examples/doc_oDraw.hs
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env stack
|
||||
-- stack runghc --package reanimate
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
module Main(main) where
|
||||
|
||||
import Reanimate
|
||||
import Reanimate.Scene
|
||||
import Reanimate.Builtin.Documentation
|
||||
import Control.Lens
|
||||
|
||||
main :: IO ()
|
||||
-- main = reanimate $ docEnv $ oDraw $
|
||||
-- withFillOpacity 1 $ withStrokeWidth (defaultStrokeWidth*0) $ center $ scale 2 $ latex "oDraw"
|
||||
main = reanimate $ docEnv $ scene $ do
|
||||
txt <- oNew $ withStrokeWidth 0 $ withFillOpacity 1 $
|
||||
center $ scale 4 $ latex "oDraw"
|
||||
oModify txt $ oEasing .~ id
|
||||
oShowWith txt oDraw
|
||||
wait 1
|
||||
oFadeOut txt 1
|
||||
Loading…
Reference in a new issue