Rop.Drawing.Colors
1.0.4
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package Rop.Drawing.Colors --version 1.0.4
NuGet\Install-Package Rop.Drawing.Colors -Version 1.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rop.Drawing.Colors" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rop.Drawing.Colors --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rop.Drawing.Colors, 1.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rop.Drawing.Colors as a Cake Addin #addin nuget:?package=Rop.Drawing.Colors&version=1.0.4 // Install Rop.Drawing.Colors as a Cake Tool #tool nuget:?package=Rop.Drawing.Colors&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Rop.Drawing.Colors
Features
Rop.Drawing.Colors is a group of structs and helpers to work with GDI+ colors
Structs
/// Colors in Float Values
public struct ColorF;
/// Colors in HSL Values
public struct ColorHSL;
Color
helper
Helper class relative to Colors
public static Color DeltaHSL(this Color c, float deltah = 0, float deltas = 1, float deltal = 1);
public static ColorF Contrast(this ColorF c, float cont = 0.25f);
public static Color Contrast(this Color c, float cont = 0.25f);
public static ColorF DeltaHSL(this ColorF c, float deltah = 0, float deltas = 1, float deltal = 1);
public static Color MixColors(this Color c, Color n, float a = 0.5f);
public static bool IsTOrEmpty(this Color c);
public static Color IfTOrEmpty(this Color c, Color def);
public static double ColorDistance(Color e1, Color e2);
public static ColorF Solid(this ColorF a);
public static ColorF PreMult(this ColorF a);
public static ColorF Blend(ColorF a, ColorF b, Func<float, float, float> operation, bool premult = true);
public static ColorF BlendMix(ColorF a, ColorF b, Func<float, float, float> operation, float weightb = 1, bool premult = true);
public static ColorF Blend(ColorF a, ColorF b, Func<float, float, float, float> operation);
public static ColorF Multiply(ColorF a, ColorF b, float weightb = 1);
public static ColorF Screen(ColorF a, ColorF b, float weightb = 1);
public static ColorF Normal(ColorF a, ColorF b);
public static ColorF Add(ColorF a, ColorF b, float weightb = 1);
public static ColorF Sub(ColorF a, ColorF b, float weightb = 1);
public static ColorF Mix(ColorF a, ColorF b, float weightb = 1);
public static ColorHSL Blend(ColorHSL a, ColorHSL b, Func<float, float, float> operationH, Func<float, float, float> operationS, Func<float, float, float> operationL);
public static ColorHSL BlendMix(ColorHSL a, ColorHSL b, Func<float, float, float> operationH, Func<float, float, float> operationS, Func<float, float, float> operationL, float weightb = 1);
public static ColorHSL Hue(ColorHSL a, ColorHSL b, float weightb = 1);
public static ColorHSL Saturation(ColorHSL a, ColorHSL b, float weightb = 1);
public static ColorHSL Luminosity(ColorHSL a, ColorHSL b, float weightb = 1);
public static ColorF Hue(ColorF a, ColorF b, float weightb = 1);
public static ColorF Saturation(ColorF a, ColorF b, float weightb = 1);
public static ColorF Luminosity(ColorF a, ColorF b, float weightb = 1);
public static Color Hue(Color a, Color b, float weightb = 1);
public static Color Saturation(Color a, Color b, float weightb = 1);
public static Color Luminosity(Color a, Color b, float weightb = 1);
(C)2022 Ramón Ordiales Plaza
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- System.Drawing.Common (>= 6.0.0)
-
.NETStandard 2.1
- System.Drawing.Common (>= 6.0.0)
-
net6.0
- System.Drawing.Common (>= 6.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Rop.Drawing.Colors:
Package | Downloads |
---|---|
Rop.Winforms.ColorSets
Helper classes for GDI+ Colors and KeyValueControls |
|
Rop.Winforms.Jedi
Create simple powerfull winform controls |
|
Rop.Winforms7.ColorSets
Helper classes for Winforms 7 |
GitHub repositories
This package is not used by any popular GitHub repositories.