Skip to content

Commit cbe289d

Browse files
committed
Expose rgba properties of Color
1 parent 6c261b2 commit cbe289d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/paperjs/Styling/Color.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait Gradient extends js.Object {
2727

2828
@js.native
2929
@JSName("paper.Color")
30-
class Color(red: Double, green: Double, blue: Double, alpha: Double) extends js.Object {
30+
class Color(val red: Double, val green: Double, val blue: Double, val alpha: Double) extends js.Object {
3131
def this(gray: Double, alpha: Double) = this(0,0,0,0)
3232
def this(gradient: Gradient, origin: Point, destination: Point,
3333
highlight: Point = Point(0,0)) = this(0,0,0,0)

0 commit comments

Comments
 (0)