Skip to content

Commit 62cda45

Browse files
Merge pull request #135 from theBadT/float-for-color
RGB values for colors are now represented using floats
2 parents 9ba6da8 + 01a7b2e commit 62cda45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Protocol/Models/Color.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ public class Color
88
/// <summary>
99
/// The red component of this color in the range [0-1].
1010
/// </summary>
11-
public int Red { get; set; }
11+
public double Red { get; set; }
1212

1313
/// <summary>
1414
/// The green component of this color in the range [0-1].
1515
/// </summary>
16-
public int Green { get; set; }
16+
public double Green { get; set; }
1717

1818
/// <summary>
1919
/// The blue component of this color in the range [0-1].
2020
/// </summary>
21-
public int Blue { get; set; }
21+
public double Blue { get; set; }
2222

2323
/// <summary>
2424
/// The alpha component of this color in the range [0-1].
2525
/// </summary>
26-
public int Alpha { get; set; }
26+
public double Alpha { get; set; }
2727
}
2828
}

0 commit comments

Comments
 (0)