diff --git a/hpc_index.html b/hpc_index.html index 5909c0e..b9959e2 100644 --- a/hpc_index.html +++ b/hpc_index.html @@ -56,7 +56,7 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } 77%7/9
50%4/8
70%85/121
  module reanimate-0.4.1.0-inplace/Reanimate.Effect -52%9/17
66%4/6
51%62/120
+52%9/17
66%4/6
53%67/125
  module reanimate-0.4.1.0-inplace/Reanimate.Internal.CubicBezier 23%20/86
7%2/26
30%102/337
@@ -128,5 +128,5 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } 100%6/6
50%1/2
95%43/45
  Program Coverage Total -30%247/802
15%131/827
29%4642/15831
+30%247/802
15%131/827
29%4647/15836
diff --git a/hpc_index_alt.html b/hpc_index_alt.html index 1f633c7..dd9efee 100644 --- a/hpc_index_alt.html +++ b/hpc_index_alt.html @@ -8,7 +8,7 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } - + @@ -128,5 +128,5 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } - +
moduleTop Level DefinitionsAlternativesExpressions
%covered / total%covered / total%covered / total
  module reanimate-0.4.1.0-inplace/Reanimate.Effect52%9/17
66%4/6
51%62/120
52%9/17
66%4/6
53%67/125
  module reanimate-0.4.1.0-inplace/Reanimate.ColorMap 100%14/14
60%3/5
99%1176/1180
15%3/20
0/0 14%7/49
  Program Coverage Total30%247/802
15%131/827
29%4642/15831
30%247/802
15%131/827
29%4647/15836
diff --git a/hpc_index_exp.html b/hpc_index_exp.html index 75b9b98..d5b2114 100644 --- a/hpc_index_exp.html +++ b/hpc_index_exp.html @@ -32,7 +32,7 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } 67%33/49
37%3/8
65%369/565
  module reanimate-0.4.1.0-inplace/Reanimate.Effect -52%9/17
66%4/6
51%62/120
+52%9/17
66%4/6
53%67/125
  module reanimate-0.4.1.0-inplace/Reanimate.Builtin.Images 57%4/7
25%1/4
48%24/49
@@ -128,5 +128,5 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } 0%0/1
0%0/4
0%0/61
  Program Coverage Total -30%247/802
15%131/827
29%4642/15831
+30%247/802
15%131/827
29%4647/15836
diff --git a/hpc_index_fun.html b/hpc_index_fun.html index 2695120..bf82e5f 100644 --- a/hpc_index_fun.html +++ b/hpc_index_fun.html @@ -38,7 +38,7 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } 57%4/7
25%1/4
48%24/49
  module reanimate-0.4.1.0-inplace/Reanimate.Effect -52%9/17
66%4/6
51%62/120
+52%9/17
66%4/6
53%67/125
  module reanimate-0.4.1.0-inplace/Reanimate.Morph.Linear 50%3/6
16%1/6
27%23/84
@@ -128,5 +128,5 @@ table.dashboard { border-collapse: collapse ; border: solid 1px black } 0%0/1
0%0/4
0%0/61
  Program Coverage Total -30%247/802
15%131/827
29%4642/15831
+30%247/802
15%131/827
29%4647/15836
diff --git a/reanimate-0.4.1.0-inplace/Reanimate.Animation.hs.html b/reanimate-0.4.1.0-inplace/Reanimate.Animation.hs.html index 6d5d655..a016622 100644 --- a/reanimate-0.4.1.0-inplace/Reanimate.Animation.hs.html +++ b/reanimate-0.4.1.0-inplace/Reanimate.Animation.hs.html @@ -21,7 +21,7 @@ span.spaces { background: white } 2 ( Duration 3 , Time 4 , SVG - 5 , Animation(..) -- TODO should this be exposed? The constructor is used directly in Effect.hs + 5 , Animation 6 -- * Creating animations 7 , mkAnimation 8 , animate diff --git a/reanimate-0.4.1.0-inplace/Reanimate.Effect.hs.html b/reanimate-0.4.1.0-inplace/Reanimate.Effect.hs.html index f405824..be63805 100644 --- a/reanimate-0.4.1.0-inplace/Reanimate.Effect.hs.html +++ b/reanimate-0.4.1.0-inplace/Reanimate.Effect.hs.html @@ -98,55 +98,56 @@ span.spaces { background: white } 79 80 -- | Modify the animation by applying the effect. If desired, you can apply multiple effects to single animation by calling this function multiple times. 81 applyE :: Effect -> Animation -> Animation - 82 applyE fn (Animation d genFrame) = Animation d $ \t -> fn d (d*t) $ genFrame t - 83 - 84 -- | Build an effect from an image-modifying function. This effect does not change as time passes. - 85 constE :: (Tree -> Tree) -> Effect - 86 constE fn _d _t = fn - 87 - 88 -- | Change image opacity from 0 to 1. - 89 fadeInE :: Effect - 90 fadeInE d t = withGroupOpacity (t/d) - 91 - 92 -- | Change image opacity from 1 to 0. Reverse of 'fadeInE'. - 93 fadeOutE :: Effect - 94 fadeOutE = reverseE fadeInE - 95 - 96 -- | Change stroke width from 0 to given value. - 97 fadeLineInE :: Double -> Effect - 98 fadeLineInE w d t = withStrokeWidth (w*(t/d)) - 99 - 100 -- | Change stroke width from given value to 0. Reverse of 'fadeLineInE'. - 101 fadeLineOutE :: Double -> Effect - 102 fadeLineOutE = reverseE . fadeLineInE - 103 - 104 -- | Effect of progressively drawing the image. Note that this will only affect primitive shapes (see 'pathify'). - 105 drawInE :: Effect - 106 drawInE d t = withFillOpacity 0 . partialSvg (t/d) . pathify - 107 - 108 -- | Reverse of 'drawInE'. - 109 drawOutE :: Effect - 110 drawOutE = reverseE drawInE - 111 - 112 -- | Change fill opacity from 0 to 1. - 113 fillInE :: Effect - 114 fillInE d t = withFillOpacity f - 115 where - 116 f = t/d - 117 - 118 -- | Change scale from 1 to given value. - 119 scaleE :: Double -> Effect - 120 scaleE target d t = scale (1 + (target-1) * t/d) - 121 - 122 -- | Move the image from its current position to the target x y coordinates. - 123 translateE :: Double -> Double -> Effect - 124 translateE x y d t = translate (x * t/d) (y * t/d) - 125 - 126 -- | Transform the effect so that the image passed to the effect's image-modifying - 127 -- function has coordinates (0, 0) shifted to the center of its bounding box. - 128 -- Also see 'aroundCenter'. - 129 aroundCenterE :: Effect -> Effect - 130 aroundCenterE e d t = aroundCenter (e d t) + 82 applyE fn ani = let d = duration ani + 83 in mkAnimation d $ \t -> fn d (d*t) $ frameAt (d*t) ani + 84 + 85 -- | Build an effect from an image-modifying function. This effect does not change as time passes. + 86 constE :: (Tree -> Tree) -> Effect + 87 constE fn _d _t = fn + 88 + 89 -- | Change image opacity from 0 to 1. + 90 fadeInE :: Effect + 91 fadeInE d t = withGroupOpacity (t/d) + 92 + 93 -- | Change image opacity from 1 to 0. Reverse of 'fadeInE'. + 94 fadeOutE :: Effect + 95 fadeOutE = reverseE fadeInE + 96 + 97 -- | Change stroke width from 0 to given value. + 98 fadeLineInE :: Double -> Effect + 99 fadeLineInE w d t = withStrokeWidth (w*(t/d)) + 100 + 101 -- | Change stroke width from given value to 0. Reverse of 'fadeLineInE'. + 102 fadeLineOutE :: Double -> Effect + 103 fadeLineOutE = reverseE . fadeLineInE + 104 + 105 -- | Effect of progressively drawing the image. Note that this will only affect primitive shapes (see 'pathify'). + 106 drawInE :: Effect + 107 drawInE d t = withFillOpacity 0 . partialSvg (t/d) . pathify + 108 + 109 -- | Reverse of 'drawInE'. + 110 drawOutE :: Effect + 111 drawOutE = reverseE drawInE + 112 + 113 -- | Change fill opacity from 0 to 1. + 114 fillInE :: Effect + 115 fillInE d t = withFillOpacity f + 116 where + 117 f = t/d + 118 + 119 -- | Change scale from 1 to given value. + 120 scaleE :: Double -> Effect + 121 scaleE target d t = scale (1 + (target-1) * t/d) + 122 + 123 -- | Move the image from its current position to the target x y coordinates. + 124 translateE :: Double -> Double -> Effect + 125 translateE x y d t = translate (x * t/d) (y * t/d) + 126 + 127 -- | Transform the effect so that the image passed to the effect's image-modifying + 128 -- function has coordinates (0, 0) shifted to the center of its bounding box. + 129 -- Also see 'aroundCenter'. + 130 aroundCenterE :: Effect -> Effect + 131 aroundCenterE e d t = aroundCenter (e d t)