Plane

object Plane
Companion:
class
class Object
trait Matchable
class Any
Plane.type

Value members

Concrete methods

def fromConstant(color: Color): Plane

Creates a plane from a constant color

Creates a plane from a constant color

Value parameters:
constant

constant color

def fromFunction(generator: (Int, Int) => Color): Plane

Creates a plane from a generator function

Creates a plane from a generator function

Value parameters:
generator

generator function

def fromSurfaceWithFallback(surface: Surface, fallback: Color): Plane

Creates a plane from a surface, filling the remaining pixels with a fallback color.

Creates a plane from a surface, filling the remaining pixels with a fallback color.

Value parameters:
fallback

fallback color

surface

reference surface

Creates a plane from a surface, by repeating that surface accross both axis.

Creates a plane from a surface, by repeating that surface accross both axis.

Value parameters:
surface

reference surface