Skip to content

Commit 02bc7dd

Browse files
committed
Restored RebeccaPurple in the MagickColors.
1 parent f08514a commit 02bc7dd

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

src/Magick.NET.Core/Colors/IMagickColors{TQuantumType}.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,11 @@ public partial interface IMagickColors<TQuantumType>
587587
/// </summary>
588588
IMagickColor<TQuantumType> Purple { get; }
589589

590+
/// <summary>
591+
/// Gets a system-defined color that has an RGBA value of #663399FF.
592+
/// </summary>
593+
IMagickColor<TQuantumType> RebeccaPurple { get; }
594+
590595
/// <summary>
591596
/// Gets a system-defined color that has an RGBA value of #FF0000FF.
592597
/// </summary>

src/Magick.NET/Colors/MagickColors.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,12 @@ public static MagickColor PowderBlue
710710
public static MagickColor Purple
711711
=> MagickColor.FromRgba(128, 0, 128, 255);
712712

713+
/// <summary>
714+
/// Gets a system-defined color that has an RGBA value of #663399FF.
715+
/// </summary>
716+
public static MagickColor RebeccaPurple
717+
=> MagickColor.FromRgba(102, 51, 153, 255);
718+
713719
/// <summary>
714720
/// Gets a system-defined color that has an RGBA value of #FF0000FF.
715721
/// </summary>
@@ -1562,6 +1568,12 @@ IMagickColor<QuantumType> IMagickColors<QuantumType>.PowderBlue
15621568
IMagickColor<QuantumType> IMagickColors<QuantumType>.Purple
15631569
=> Purple;
15641570

1571+
/// <summary>
1572+
/// Gets a system-defined color that has an RGBA value of #663399FF.
1573+
/// </summary>
1574+
IMagickColor<QuantumType> IMagickColors<QuantumType>.RebeccaPurple
1575+
=> RebeccaPurple;
1576+
15651577
/// <summary>
15661578
/// Gets a system-defined color that has an RGBA value of #FF0000FF.
15671579
/// </summary>

tests/Magick.NET.Tests/Colors/MagickColorsTests/TheProperties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void ShouldContainTheCorrectNumberOfColors()
2020
.Where(property => property.PropertyType == typeof(MagickColor))
2121
.Count();
2222

23-
Assert.Equal(142, colorCount);
23+
Assert.Equal(143, colorCount);
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)