2013-03-21 09:35:36 +00:00
|
|
|
|
|
|
|
Elm.Native.Graphics.Collage = function(elm) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
elm.Native = elm.Native || {};
|
|
|
|
elm.Native.Graphics = elm.Native.Graphics || {};
|
|
|
|
if (elm.Native.Graphics.Collage) return elm.Native.Graphics.Collage;
|
|
|
|
|
|
|
|
var newElement = Elm.Graphics.Element(elm).newElement;
|
2013-03-25 02:19:30 +00:00
|
|
|
var C = ElmRuntime.use(ElmRuntime.Render.Collage);
|
2013-03-21 09:35:36 +00:00
|
|
|
|
|
|
|
function collage(w,h,forms) {
|
2013-03-25 02:19:30 +00:00
|
|
|
return A3(newElement, w, h, {
|
|
|
|
ctor: 'Custom',
|
|
|
|
type: 'Collage',
|
|
|
|
render: C.render,
|
|
|
|
update: C.update,
|
|
|
|
model: {w:w, h:h, forms:forms}
|
|
|
|
});
|
2013-03-21 09:35:36 +00:00
|
|
|
}
|
|
|
|
return elm.Native.Graphics.Collage = { collage:F3(collage) };
|
|
|
|
|
|
|
|
};
|