Igtampe.BasicRender 1.1.0

dotnet add package Igtampe.BasicRender --version 1.1.0
NuGet\Install-Package Igtampe.BasicRender -Version 1.1.0
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="Igtampe.BasicRender" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Igtampe.BasicRender --version 1.1.0
#r "nuget: Igtampe.BasicRender, 1.1.0"
#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 Igtampe.BasicRender as a Cake Addin
#addin nuget:?package=Igtampe.BasicRender&version=1.1.0

// Install Igtampe.BasicRender as a Cake Tool
#tool nuget:?package=Igtampe.BasicRender&version=1.1.0

BasicRender

The titular library that includes two static classes with a few useful functions:

Draw

Draw includes tools for drawing on screen. <br><br><b>Take note!</b><br> When asking for positions, these methods use LeftPos and TopPos, or the leftmost coordinate, and topmost coordinate of the object. <br><br><b>Also take note!</b><br> As of the most recent update, BasicRender supprots overscan. Making any requests that fall outside of the window will be rendered either partially, or not at all

Method Result
Sprite() Renders a character or bit of text with the specified color, and either at the current position, or a specified position
Block() Renders a block on screen of the specified color either at the current position, or a specified position
Box() Renders a box on screen of specified color, lenght, and width, at specified posotion
Row() Renders a row of the speicifed color of specified length, either at current or specified position
ClearLine() Clears a line with the console background color
CenterText() Centers text on the screen at current or speciifed row, with current or specified color

RenderUtils

Utilities that help in rendering stuff on screen. Though, they're also useful in general. |Method|Result| |-|-| |Sleep()|Holds execution of a program for the specified miliseconds| |Pause()|Holds execution of a program until the user hits a key| |Echo()|A shortcut to Console.Write() or Console.WriteLine() depending on if you specify to linebreak| |SetPos()|Sets the position of the console cursor on screen| |Color()| Sets the color of the cursor writer. <br><br><b>Take note!</b><br> The one parameter version of this modifies the foreground (Text) Color, but the second one has Background first! <br>This is to match the Windows command line's Color command| |Type()| "Types" text on screen one character at a time. Time between each character is either specified, or 5ms|

DrawThread

A Thread that can be used to coordinate drawing in multi-threaded console applications using BasicRender. Technically it can be used to do anything sequentially between multiple threads.

Method Result
AddDrawTask() Adds a task o the queue of pending tasks. Can also accept an Action and convert it to a Task
Start() Starts the DrawThread
StopAsync() Sends the stop signal. The thread will eventually get to it
Stop() Sends the stop signal and waits for the thread to actually stop

Cycler

A small itty bitty class to help cycling between different strings. For instance, for a spinner ("/", "-", "", "|"). Use Cycle() to advance the position on the cycle and return the next string in the array it holds.

SpecialChars

Collection of constants with special characters available on the console, including the box characters. Includes a small writeleine to test all the characters

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

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Igtampe.BasicRender:

Package Downloads
Igtampe.BasicGraphics

BasicGraphics is the first extension to BasicRender, making it easy to render graphics onto the console. Choose from either basic 16 color mode, or in BasicGraphic's own proprietary HiColor Mode, which uses the power of dithering to offer around 375 colors. For a full documentation, please see the GitHub Repo for BasicRender, or the included comments.

Igtampe.BasicFonts

BasicFonts is the latest extension to BasicRender. Levereging the power of DictionaryOnDisk, BasicGraphics, and BasicRender, large pre-made neatly packaged symbols can be drawn to the screen. For a full documentation, please see the GitHub Repo for BasicRender, or the included comments.

Igtampe.BasicLogger

BasicLogger is a *very very simple* logger which can output log files, and most importantly can log to the console using BasicRender.

Igtampe.BasicWindows

BasicWindows is an enhancement to Igtampe.BasicRender, which makes it easy to create, render, and manage user interactions via "windows" on the console. For a full documentation, please see the GitHub Repo for BasicRender, or the included comments.

Igtampe.BasicShapes

BasicShapes is a small geometry package for BasicRender, allowing you to quickly and easily draw lines, curves, and polygons made out of those lines and curves easily. It also allows you to translate and scale these polygons as needed.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 2,069 3/3/2022
1.0.0 1,327 4/29/2021