BlendMode

eu.joaocosta.minart.graphics.BlendMode
See theBlendMode companion trait
object BlendMode

Attributes

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

Members list

Type members

Classlikes

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.

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

Attributes

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
final case class AlphaTest(alpha: Int) extends BlendMode

Copy all pixels with alpha greater than the provided value

Copy all pixels with alpha greater than the provided value

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait BlendMode
class Object
trait Matchable
class Any
Show all
final case class ColorMask(mask: Color) extends BlendMode

Copy all pixels except the ones with the same value as the mask

Copy all pixels except the ones with the same value as the mask

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait BlendMode
class Object
trait Matchable
class Any
Show all
case object Copy extends BlendMode

Simply copy the pixel values

Simply copy the pixel values

Attributes

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