Colors

org.nlogo.awt.Colors
object Colors

Attributes

Source
Colors.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Colors.type

Members list

Value members

Concrete methods

def AWTColorToHex(c: Color): String

Converts a java.awt.Color to a 6-digit hex string suitible for HTML/CSS tags. *

Converts a java.awt.Color to a 6-digit hex string suitible for HTML/CSS tags. *

Attributes

Source
Colors.scala
def colorize(s: String, c: Color): String

Wraps a string with HTML font tag for color. *

Wraps a string with HTML font tag for color. *

Attributes

Source
Colors.scala
def mixColors(c1: Color, c2: Color, mix: Double): Color

Mixes the rgb components of two colors.

Mixes the rgb components of two colors.

Value parameters

mix

the proportion, from 0 to 1, of the first color in the mix.

Attributes

Returns

a new color with red = mix*(c1.red) + (1-mix)*c2.red, etc.

Source
Colors.scala