Geo projections (#52)

Former-commit-id: bc6475b83149db308bf541f1a49b6a8e67729a81
This commit is contained in:
David Himmelstrup 2020-02-11 19:10:45 +08:00 committed by GitHub
commit cbfb95f9be
31 changed files with 1160 additions and 21 deletions

12
examples/doc_bonneP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth (bonneP (45/180*pi))

12
examples/doc_bottomleyP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth (bottomleyP (30/180*pi))

12
examples/doc_collignonP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth collignonP

12
examples/doc_eckert1P.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth eckert1P

12
examples/doc_eckert3P.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth eckert3P

12
examples/doc_eckert5P.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth eckert5P

View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth equirectangularP

12
examples/doc_faheyP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth faheyP

12
examples/doc_hammerP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth hammerP

12
examples/doc_lambertP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth lambertP

12
examples/doc_mercatorP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth mercatorP

12
examples/doc_mollweideP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth mollweideP

12
examples/doc_orthoP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth (orthoP 0 0)

12
examples/doc_sinusoidalP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth sinusoidalP

12
examples/doc_smallEarth.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.Builtin.Documentation
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ docEnv $ animate $ const $
scaleToSize screenWidth screenHeight $
embedImage smallEarth

12
examples/doc_wernerP.hs Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main (main) where
import Reanimate
import Reanimate.GeoProjection
import Reanimate.Builtin.Images
main :: IO ()
main = reanimate $ animate $
const $ scaleToSize screenWidth screenHeight $
embedImage $ project smallEarth wernerP