mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Depend on reanimate-svg >= 0.13
This commit is contained in:
parent
7d16bc79b0
commit
e9a2bd3bd0
9 changed files with 54 additions and 35 deletions
13
examples/doc_simpleIcon.hs
Executable file
13
examples/doc_simpleIcon.hs
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env stack
|
||||
-- stack runghc --package reanimate
|
||||
module Main(main) where
|
||||
|
||||
import Reanimate
|
||||
import Reanimate.External
|
||||
import Codec.Picture.Types
|
||||
|
||||
main :: IO ()
|
||||
main = reanimate $ staticFrame 1 $
|
||||
let icon = "cplusplus" in mkGroup
|
||||
[ mkBackgroundPixel (promotePixel $ simpleIconColor icon)
|
||||
, withFillOpacity 1 $ simpleIcon icon ]
|
||||
Loading…
Reference in a new issue