on 89efcef help sign in
23 lines 595 B history raw
2Elm.Native.Graphics.Collage = function(elm) {
3 "use strict";
5 elm.Native = elm.Native || {};
6 elm.Native.Graphics = elm.Native.Graphics || {};
7 if (elm.Native.Graphics.Collage) return elm.Native.Graphics.Collage;
9 var newElement = Elm.Graphics.Element(elm).newElement;
10 var C = ElmRuntime.use(ElmRuntime.Render.Collage);
12 function collage(w,h,forms) {
13 return A3(newElement, w, h, {
14 ctor: 'Custom',
15 type: 'Collage',
16 render: C.render,
17 update: C.update,
18 model: {w:w, h:h, forms:forms}
19 });
20 }
21 return elm.Native.Graphics.Collage = { collage:F3(collage) };
23};