Skip to content

Commit 15deaee

Browse files
authored
Merge pull request #107 from sheshnathverma/devel
Make color structure public
2 parents 1927eab + 1e7ff8d commit 15deaee

File tree

1 file changed

+3
-3
lines changed
  • src/AngleSharp.Css/Values/Primitives

1 file changed

+3
-3
lines changed

src/AngleSharp.Css/Values/Primitives/Color.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace AngleSharp.Css.Values
1010
/// Represents a color value.
1111
/// </summary>
1212
[StructLayout(LayoutKind.Explicit, Pack = 1, CharSet = CharSet.Unicode)]
13-
struct Color : IEquatable<Color>, IComparable<Color>, ICssPrimitiveValue
13+
public struct Color : IEquatable<Color>, IComparable<Color>, ICssPrimitiveValue
1414
{
1515
#region Basic colors
1616

@@ -337,7 +337,7 @@ public static Color FromHwba(Double h, Double w, Double b, Double alpha)
337337
var green = 0.0;
338338
var blue = 0.0;
339339

340-
if (ratio < 1.0)
340+
if (ratio < 1.0)
341341
{
342342
w *= ratio;
343343
b *= ratio;
@@ -354,7 +354,7 @@ public static Color FromHwba(Double h, Double w, Double b, Double alpha)
354354
var v = 1.0 - b;
355355
var n = w + f * (v - w);
356356

357-
switch (p)
357+
switch (p)
358358
{
359359
default:
360360
case 6:

0 commit comments

Comments
 (0)