Plane

eu.joaocosta.minart.graphics.Plane$
See thePlane companion trait
object Plane

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Plane.type

Members list

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

Attributes

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 from (x, y) to a color

Attributes

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

Attributes

Deprecated methods

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

Attributes

Deprecated
true