C# 클래스 SadConsole.Ansi.Helpers

파일 보기 프로젝트 열기: Thraka/SadConsole

공개 메소드들

메소드 설명
AnsiAdjustColor ( Microsoft.Xna.Framework.Color input, bool bold ) : Microsoft.Xna.Framework.Color

Adjusts the provided color based on the Attribute_Bold value.

If the color provided is not an ansi color, dark or light, the passed in color will be returned.

AnsiConfigurePrintColor ( bool isBackground, int code, State ansiState ) : void

Sets the print appearance of the cursor based on the ANSI.SYS code provided.

AnsiJustNormalColor ( Microsoft.Xna.Framework.Color input ) : Microsoft.Xna.Framework.Color

Returns the a normal, dark, ansi color based on the ansi color provided.

If the color provided is not an ansi color, dark or light, the passed in color will be returned.

메소드 상세

AnsiAdjustColor() 공개 정적인 메소드

Adjusts the provided color based on the Attribute_Bold value.
If the color provided is not an ansi color, dark or light, the passed in color will be returned.
public static AnsiAdjustColor ( Microsoft.Xna.Framework.Color input, bool bold ) : Microsoft.Xna.Framework.Color
input Microsoft.Xna.Framework.Color The ansi color to adjust.
bold bool
리턴 Microsoft.Xna.Framework.Color

AnsiConfigurePrintColor() 공개 정적인 메소드

Sets the print appearance of the cursor based on the ANSI.SYS code provided.
public static AnsiConfigurePrintColor ( bool isBackground, int code, State ansiState ) : void
isBackground bool When true, changes the background color instead of the foreground.
code int The 0-7 color code.
ansiState State
리턴 void

AnsiJustNormalColor() 공개 정적인 메소드

Returns the a normal, dark, ansi color based on the ansi color provided.
If the color provided is not an ansi color, dark or light, the passed in color will be returned.
public static AnsiJustNormalColor ( Microsoft.Xna.Framework.Color input ) : Microsoft.Xna.Framework.Color
input Microsoft.Xna.Framework.Color An ansi color.
리턴 Microsoft.Xna.Framework.Color