Dynamensions.ColorPalleteGenerator 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dynamensions.ColorPalleteGenerator --version 1.0.2                
NuGet\Install-Package Dynamensions.ColorPalleteGenerator -Version 1.0.2                
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="Dynamensions.ColorPalleteGenerator" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dynamensions.ColorPalleteGenerator --version 1.0.2                
#r "nuget: Dynamensions.ColorPalleteGenerator, 1.0.2"                
#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 Dynamensions.ColorPalleteGenerator as a Cake Addin
#addin nuget:?package=Dynamensions.ColorPalleteGenerator&version=1.0.2

// Install Dynamensions.ColorPalleteGenerator as a Cake Tool
#tool nuget:?package=Dynamensions.ColorPalleteGenerator&version=1.0.2                

Dynamensions Color Pallete Generator

A quick and simple color pallet generator. Give it the number of colors needed, and it will produce a pallet. There is also an option to include black or include white in the pallet.

The pallet is generated by creating the red, green, and blue, then halves the process (128 red, then 128 green, then 128 blue, etc....) and repeats until the number of colors is reached.

Example

C#

// Create a list of colors using RGB. Great for charts or presentations that use bright distinct colors.
List<string> colors = ColorPalleteGenerator.CreateUniqueEvenlyDistrutedColorsUsingRGB(20);

// Create a list of colors using HSV. Great for color pickers.
List<string> colors = ColorPalleteGenerator.CreateUniqueEvenlyDistrutedColorsUsingHSV(20);

VB.NET

' Create a list of colors using RGB. Great for charts or presentations that use bright distinct colors.
Dim colors As List(Of String) = ColorPalleteGenerator.CreateUniqueEvenlyDistrutedColorsUsingRGB(20)

' Create a list of colors using HSV. Great for color pickers.
Dim colors As List(Of String) = ColorPalleteGenerator.CreateUniqueEvenlyDistrutedColorsUsingHSV(20)

Note: There are no exception handling so that the error can bubble up. Error handling is left up to the host of this library.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Dynamensions.ColorPalleteGenerator:

Package Downloads
Dynamensions.ColorPicker.Maui

A simple to use color picker for .NET Maui.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 167 5/13/2024
1.2.2.1 83 5/13/2024
1.2.2 82 5/12/2024
1.2.1 78 5/12/2024
1.2.0 89 5/12/2024
1.1.0 90 5/11/2024
1.0.2 89 5/10/2024
1.0.1 94 5/9/2024
1.0.0 99 5/9/2024