rc3d.sketch">Canvas</a></span>&nbsp;<span class="element-name">onNewCanvas</span>()</div>
<div class="block"><span class="description-from-type-label">Description copied from class:&nbsp;<code><a href="../sketch/Surface.html#onNewCanvas()">Surface</a></code></span></div>
<div class="block">Allocate a canvas that will draw into this surface. We will cache this
 canvas, to return the same object to the caller multiple times. We
 take ownership, and will call unref() on the canvas when we go out of
 scope.</di