on dcbe2fc help sign in
22 lines 623 B history raw
1Elm.Native.Graphics.Collage = {};
2Elm.Native.Graphics.Collage.make = function(elm) {
4 elm.Native = elm.Native || {};
5 elm.Native.Graphics = elm.Native.Graphics || {};
6 if (elm.Native.Graphics.Collage) return elm.Native.Graphics.Collage;
8 var newElement = Elm.Graphics.Element.make(elm).newElement;
9 var C = ElmRuntime.use(ElmRuntime.Render.Collage);
11 function collage(w,h,forms) {
12 return A3(newElement, w, h, {
13 ctor: 'Custom',
14 type: 'Collage',
15 render: C.render,
16 update: C.update,
17 model: {w:w, h:h, forms:forms}
18 });
19 }
20 return elm.Native.Graphics.Collage = { collage:F3(collage) };
22};