clay accepts any size canvas now
This commit is contained in:
@@ -60,9 +60,8 @@ var focused_textbox = null
|
|||||||
clay.behave = layout.behave;
|
clay.behave = layout.behave;
|
||||||
clay.contain = layout.contain;
|
clay.contain = layout.contain;
|
||||||
|
|
||||||
clay.draw = function draw(fn)
|
clay.draw = function draw(fn, size = [prosperon.camera.width, prosperon.camera.height])
|
||||||
{
|
{
|
||||||
var size = [prosperon.camera.width, prosperon.camera.height]
|
|
||||||
lay_ctx.reset();
|
lay_ctx.reset();
|
||||||
var root = lay_ctx.item();
|
var root = lay_ctx.item();
|
||||||
// Accept both array and object formats
|
// Accept both array and object formats
|
||||||
|
|||||||
Reference in New Issue
Block a user