mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-09 15:12:21 +00:00
20 lines
447 B
Haskell
Executable file
20 lines
447 B
Haskell
Executable file
#!/usr/bin/env stack
|
|
-- stack runghc --package reanimate
|
|
module Main(main) where
|
|
|
|
import Reanimate
|
|
import Reanimate.Builtin.Documentation
|
|
import Reanimate.Scene
|
|
import Control.Lens
|
|
|
|
main :: IO ()
|
|
main = reanimate $ docEnv $ scene $ do
|
|
cam <- newObject Camera
|
|
circ <- newObject $ Circle 2
|
|
oModifyS circ $
|
|
oContext .= withFillOpacity 1 . withFillColor "blue"
|
|
oShow circ
|
|
|
|
cameraAttach cam circ
|
|
cameraZoom cam 2 2
|
|
cameraZoom cam 2 1
|