Verified Commit 6ffaa3ba authored by Soren's avatar Soren

Fix up errors

parent 9dd43530
......@@ -20,11 +20,6 @@ object Color {
def apply[C: ColorFormat](c: C): Color = ColorImpl(c)
def unapply[C: ColorFormat](arg: Color): Option[C] = arg match {
case ColorImpl(c: C) => Some(c)
case _ => None
}
def rgb(red: Double, green: Double, blue: Double): Color = {
Color(RGBFormat(red, green, blue))
}
......
......@@ -80,7 +80,7 @@ package object implicits {
}
implicit def asAWT[C](c: Color[C]): awt.Color = {
implicit def asAWT[C](c: Color): awt.Color = {
val r = c.rgb
new awt.Color((r.red * 255).toInt, (r.green * 255).toInt, (r.blue * 255).toInt)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment