CPCanvas

org.cosplay.CPCanvas$
See theCPCanvas companion class
object CPCanvas

Companion object with utility functions.

Attributes

Companion:
class
Source:
CPCanvas.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

Supported styles for the following methods:

Attributes

Source:
CPCanvas.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

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.

Attributes

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.

Attributes

bgPx

Background pixel.

dim

Dimension of the canvas.

Source:
CPCanvas.scala