mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Fix valentine preset.
This commit is contained in:
parent
79e0ffda19
commit
4a0dff5f9b
2 changed files with 4 additions and 5 deletions
|
|
@ -641,7 +641,4 @@ valentine =
|
|||
o <- oscillate $ signal 0 1
|
||||
n <- oscillate $ signalSCurve 2 0.9 1.1
|
||||
emit $ scale n $ scale 2 $ withFillColor "white" $ withFillOpacity o txt
|
||||
|
||||
drawHeart = emit $ withFillColor "red" $ heartShape
|
||||
hex n = if n < 0x10 then "0" ++ showHex (round n) ""
|
||||
else showHex (round n) ""
|
||||
|
|
|
|||
|
|
@ -191,8 +191,10 @@ animation =
|
|||
emit $ scale n $ scale 2 $ withFillColor "white" $ withFillOpacity o txt
|
||||
|
||||
drawHeart = emit $ withFillColor "red" $ heartShape
|
||||
hex n = if n < 0x10 then "0" ++ showHex (round n) ""
|
||||
else showHex (round n) ""`;
|
||||
|
||||
heartShape =
|
||||
center $ rotateAroundCenter 225 $ mkPathString
|
||||
"M0.0,40.0 v-40.0 h40.0a20.0 20.0 90.0 0 1 0.0,40.0a20.0 20.0 90.0 0 1 -40.0,0.0 Z"`;
|
||||
|
||||
export default [
|
||||
{ name: "Examples"
|
||||
|
|
|
|||
Loading…
Reference in a new issue