AlphaAdd

eu.joaocosta.minart.graphics.BlendMode.AlphaAdd
case object AlphaAdd extends BlendMode

Blends the surfaces using weighted adition: dstColor * (1-srcAlpha) + srcColor This behaves as normal alpha blending if the source uses premultiplied alpha.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait BlendMode
class Object
trait Matchable
class Any
Show all
Self type
AlphaAdd.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

def blend(src: => Color, dst: => Color): Color

Blends two colors

Blends two colors

Value parameters

dst

the color to blend into

src

the color to overlay

Attributes

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product