JMykitta.ShinyConsole
2.0.0
dotnet add package JMykitta.ShinyConsole --version 2.0.0
NuGet\Install-Package JMykitta.ShinyConsole -Version 2.0.0
<PackageReference Include="JMykitta.ShinyConsole" Version="2.0.0" />
<PackageVersion Include="JMykitta.ShinyConsole" Version="2.0.0" />
<PackageReference Include="JMykitta.ShinyConsole" />
paket add JMykitta.ShinyConsole --version 2.0.0
#r "nuget: JMykitta.ShinyConsole, 2.0.0"
#:package JMykitta.ShinyConsole@2.0.0
#addin nuget:?package=JMykitta.ShinyConsole&version=2.0.0
#tool nuget:?package=JMykitta.ShinyConsole&version=2.0.0
ShinyConsole
Lightweight console coloring helpers published as the JMykitta.ShinyConsole NuGet package.
The github repository
contains an example project
that references the package: ShinyConsole.Example\ShinyConsole.Example.csproj.
Prerequisites
- .NET 10 SDK installed
- Visual Studio 2022/2026 or the
dotnetCLI
Install from NuGet
- Using the dotnet CLI (from repository root):
dotnet add package JMykitta.ShinyConsole --version 2.0.0
- Using the Package Manager Console in Visual Studio:
NuGet\Install-Package JMykitta.ShinyConsole -Version 2.0.0
- Using Visual Studio UI:
- Right-click the
ShinyConsole.Exampleproject → Manage NuGet Packages. - Browse for
JMykitta.ShinyConsoleand install version2.0.0.
- Right-click the
csproj reference (example)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JMykitta.ShinyConsole" Version="2.0.0" />
</ItemGroup>
</Project>
Quick Usage Example
using static ShinyConsole.Enums;
using ShinyConsole.ColorPallettes;
/* Demonstrate Rainbow */
// - Sequential Characters
Painter.Colorize("This text tests the coloring goes sequentially on the characters.", Prides.Rainbow);
PrintGap();
// - Random Characters
Painter.Colorize("This text tests the coloring goes randomly on the characters.", Prides.Rainbow, true);
PrintGap();
// - Sequential Words
Painter.Colorize("This text tests the coloring goes sequentially on the words.", Prides.Rainbow, false, ColorizationScope.Words);
PrintGap();
// - Random Words
Painter.Colorize("This text tests the coloring goes randomly on the words.", Prides.Rainbow, true, ColorizationScope.Words);
PrintGap();
/* Demonstrate Custom Pallette */
ConsoleColor[] customPallette = [ ConsoleColor.Magenta, ConsoleColor.Cyan, ConsoleColor.Yellow ];
Painter.Colorize("This text uses a custom pallette!", customPallette, true);
PrintGap();
/* Demonstrate Custom Pallette with Sentences */
string multiSentenceMessage = "This tests the coloring goes sequentially on the sentences. See how it changes? See how it changes again!?";
Painter.Colorize(multiSentenceMessage, National.Italian, false, ColorizationScope.Sentences);
PrintGap();
/* Demonstrate Custom Pallette with Paragraphs */
string multiParagraphMessage = "" +
"This tests the coloring goes sequentially on the paragraphs.\nSee how it stays the same even though this sentence is on a new line?\n\n" +
"But now, the paragraph shifted, so it changes colors!\r\n\r\n" +
"Let's try a few sentences in a row. No change yet! Looking good! :)\n\n";
Painter.Colorize(multiParagraphMessage, National.American, false, ColorizationScope.Paragraphs);
PrintGap();
Output:
General Notes
- The example project targets
net10.0. - Version 1.0.* is not supported. Please use Version 2.0.0+.
Release Notes
- Version 2.0.0:
- Complete refactor.
Shinyis nowPainter.- There are now premade color pallettes available in the
ShinyConsole.ColorPallettesnamespace, but you can also create your own custom pallettes by passing an array ofConsoleColorvalues to thePainter.Colorizemethod.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Version 2.0.0:
- Complete refactor.
- `Shiny` is now `Painter`.
- There are now premade color pallettes available in the `ShinyConsole.ColorPallettes` namespace,
but you can also create your own custom pallettes by passing an array of `ConsoleColor` values to the `Painter.Colorize` method.