Rop.Drawing.Colors 1.0.4

.NET 6.0 .NET Standard 2.0
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
#r "nuget: Rop.Drawing.Colors, 1.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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

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
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 358 10/9/2022
1.0.3 945 3/29/2022
1.0.2 228 3/21/2022
1.0.1 515 3/20/2022