Skip to content

Instantly share code, notes, and snippets.

@mankyKitty
Created January 10, 2016 09:17
Show Gist options
  • Save mankyKitty/3d6c0af12847b713da0f to your computer and use it in GitHub Desktop.
Save mankyKitty/3d6c0af12847b713da0f to your computer and use it in GitHub Desktop.
Purescript FFI shenanigans
exports.drawImageFinalForm = function(ctx) {
return function(elem) {
return function(dx) {
return function(dy) {
return function(dw) {
return function(dh) {
return function(sx) {
return function(sy) {
return function(sw) {
return function(sh) {
return function() {
ctx.drawImage(elem, dx, dy, dw, dh, sx, sy, sw, sh);
return ctx;
};
};
};
};
};
};
};
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment