CPCanvas

object CPCanvas

Companion object with utility functions.

Companion:
class
Source:
CPCanvas.scala
class Object
trait Matchable
class Any

Type members

Classlikes

Supported styles for the following methods:

Value members

Concrete methods

def apply(w: Int, h: Int, bgPx: CPPixel): CPCanvas

Creates new canvas with given dimensions and background pixel.

Creates new canvas with given dimensions and background pixel.

Value parameters:
bgPx

Background pixel.

h

Height of the canvas.

w

Width of the canvas.

Source:
CPCanvas.scala
def apply(dim: CPDim, bgPx: CPPixel): CPCanvas

Creates new canvas with given dimension and background pixel.

Creates new canvas with given dimension and background pixel.

Value parameters:
bgPx

Background pixel.

dim

Dimension of the canvas.

Source:
CPCanvas.scala