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
CPCanvas.type

Members list

Type members

Classlikes

Supported styles for the following methods:

Attributes

Source
CPCanvas.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

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.

Attributes

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.

Attributes

Source
CPCanvas.scala