Skip to content

Instantly share code, notes, and snippets.

@barsukov
Created August 31, 2015 11:28
Show Gist options
  • Save barsukov/15f3a4b6c67675132a4e to your computer and use it in GitHub Desktop.
Save barsukov/15f3a4b6c67675132a4e to your computer and use it in GitHub Desktop.
image = new Image()
image.crossOrigin = "Anonymous"
image.src = 'here is url from server'
image.onload = ->
kit = new ImglyKit(
renderer: "canvas"
assetsUrl: "/assets"
image: image
container:$(".image_kit_start")
ui:
enabled: true
)
kit.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment