Skip to content

m3tti/purescript-camanjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purescript Camanjs Wrapper

Tries to get the whole functionality of Camanjs canvas manipulation library into purescript.

JS Dependencies

You have to make sure camanjs.full has to be present in your distribution

CamanJs Homepage

Usage

Applying filters

main :: Effect Unit
main = launchAff $ do
    _ <- render 
      $ MainLayer 
        { elementId: "#lena" -- this is the canvas element id
        , filters: 
          [ Brightness 95 
          , Gamma 0.2        
          , Hue 22
          ]
        }

Register filters

main :: Effect Unit
main = do
   register 
     $ Kernel 
       { name: "test"
       , matrix: 
          [ 5, 5, 5
          , 5, 5, 5
          , 5, 5, 5
          ] 
       }

About

CamanJs purescript wrapper

Resources

Stars

Watchers

Forks

Packages

No packages published