NeoKolors.Common
0.25.22
See the version list below for details.
dotnet add package NeoKolors.Common --version 0.25.22
NuGet\Install-Package NeoKolors.Common -Version 0.25.22
<PackageReference Include="NeoKolors.Common" Version="0.25.22" />
<PackageVersion Include="NeoKolors.Common" Version="0.25.22" />
<PackageReference Include="NeoKolors.Common" />
paket add NeoKolors.Common --version 0.25.22
#r "nuget: NeoKolors.Common, 0.25.22"
#:package NeoKolors.Common@0.25.22
#addin nuget:?package=NeoKolors.Common&version=0.25.22
#tool nuget:?package=NeoKolors.Common&version=0.25.22
NeoKolors.Common
NeoKolors.Common library contains basic common tools, structures and classes for working with colors and ANSI escape sequences. It also offers some other helpful utilities.
Features
- 🌈 Color structures: Structures for storing, converting and manipulating colors.
- 🔨 Utility Classes: Things like
List2DorUInt24can simplify and boost the performance of the code. - 🚀 High Performance: Optimized code for speed and efficiency.
- 📦 Cross-Platform Support: Built to work seamlessly across frameworks like
net5.0,net8.0,.NET Standard 2.0, and more.
Getting Started
Installation
To use NeoKolors.Common, add a reference to the project in your solution. You can use one of the following methods:
NuGet CLI
Install-Package NeoKolors.Common
.NET CLI
dotnet add package NeoKolors.Common
Or, manually reference in a project using <PackageReference> in your .csproj file:
<ItemGroup>
<PackageReference Include="NeoKolors.Common" Version="0.25.20"/>
</ItemGroup>
Requirements
- .NET Targets:
net5.0and higher (explicit builds also fornet8.0andnet9.0) - .NET Standard Targets:
.NETStandard 2.0and higher - Programming Language: C# 12.0 or later
Main Classes
NKColor
NKColor structure combines the worlds of classic color data and console color data.
It is able to hold the classic 24-bit (+ 8-bit alpha channel) color, one of the predefined
console colors, the default console color, or it can be in state defining that the color
should be inherited (something like transparent).
NKConsoleColor
Enum NKConoleColor contains 256 colors. It basically extends the System.ConsoleColor enum
(although some values do not match). Apart from the basic 16 console colors, it also
contains a 6x6x6 RGB color cube and 24 grayscale colors.
NKStyle
Structure NKStyle contains data for string styling. It compresses 2 NKColor instances
(one for text, one for background) and a TextStyles instance into a single long making
it a pretty optimized data type.
TextStyles
Flag enum TextStyles contains six basic styles for text: bold, italic, underline, faint,
negative and strikethrough.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 was computed. |
| .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. |
-
.NETStandard 2.0
- JetBrains.Annotations (>= 2024.3.0)
- OneOf (>= 3.0.271)
- SkiaSharp (>= 3.116.1)
- System.IO (>= 4.3.0)
-
net5.0
- JetBrains.Annotations (>= 2024.3.0)
- OneOf (>= 3.0.271)
- SkiaSharp (>= 3.116.1)
- System.IO (>= 4.3.0)
-
net8.0
- JetBrains.Annotations (>= 2024.3.0)
- OneOf (>= 3.0.271)
- SkiaSharp (>= 3.116.1)
- System.IO (>= 4.3.0)
-
net9.0
- JetBrains.Annotations (>= 2024.3.0)
- OneOf (>= 3.0.271)
- SkiaSharp (>= 3.116.1)
- System.IO (>= 4.3.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on NeoKolors.Common:
| Package | Downloads |
|---|---|
|
NeoKolors.Console
basic console / logging utilites |
|
|
NeoKolors.Settings
Package Description |
|
|
NeoKolors.Tui
Package Description |
|
|
NeoKolors.Tui.Core
Package Description |
|
|
NeoKolors.Tui.Fonts
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.4.0-preview.4 | 99 | 11/15/2026 |
| 2026.4.0-preview.3 | 122 | 11/1/2026 |
| 2026.4.0-preview.2 | 113 | 10/30/2026 |
| 2026.4.0-preview.1 | 118 | 10/23/2026 |
| 2026.2.0-rc2 | 216 | 6/8/2026 |
| 2026.2.0-rc1 | 205 | 6/2/2026 |
| 2026.1.0-rc2 | 190 | 2/27/2026 |
| 2026.1.0-rc1 | 179 | 2/25/2026 |
| 1.0.0-rc1 | 578 | 7/24/2025 |
| 0.25.22 | 341 | 5/26/2025 |
| 0.25.20 | 481 | 5/13/2025 |
| 0.25.19.1 | 257 | 5/6/2025 |
| 0.25.18.1 | 304 | 5/4/2025 |
| 0.25.16 | 364 | 4/16/2025 |
| 0.25.14.2 | 375 | 4/2/2025 |
| 0.25.14.1 | 387 | 4/2/2025 |
| 0.25.14 | 376 | 4/1/2025 |
| 0.25.12 | 360 | 3/19/2025 |
| 0.25.10 | 323 | 3/3/2025 |
| 0.25.5 | 278 | 1/28/2025 |