case class Colour(red: Byte, green: Byte, blue: Byte, name: Option[String]) extends Product with Serializable
Simple RGB colour abstraction with additional colour comparison methods.
- red
red component
- green
green component
- blue
blue component
- name
optional name
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Colour
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Colour(red: Byte, green: Byte, blue: Byte, name: Option[String])
create a new RGB colour definition
create a new RGB colour definition
- red
red component
- green
green component
- blue
blue component
- name
optional name
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val blue: Byte
-
def
canEqual(that: Any): Boolean
- Definition Classes
- Colour → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
delta_to(that: Colour): Double
Calculates a vector distance between two colours.
Calculates a vector distance between two colours.
- that
colour which is used as a base for this calculation
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Colour → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val green: Byte
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
pixel: Int
Returns ImageJ's pixel colour for an RGB colour.
- val red: Byte
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toJson: JObject
Serialises RGB colour representation to a JSON object.
-
def
toString(): String
- Definition Classes
- Colour → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )