Code Monkey home page Code Monkey logo

texteffects's Introduction

TextEffects

A wide variety of unique text effects for your C# console applications, all simplified in this library!

I feel like this is useless but yeah... I made a C# Library B)

Installation Instructions

Visual Studio Code

1. Download and extract zip file.

2. Place the .DLL file in your project file, preferably in a DLL folder.

3. Reference the .DLL in the .CSPROJ file

    <ItemGroup>
     <Reference Include="TextEffects">
       <HintPath>..\Dlls\TextEffects.dll</HintPath>
     </Reference>
    </ItemGroup>

Visual Studio 2022

1. Download and extract zip file.

2. Place the .DLL file in your project file, preferably in a DLL folder.

3. Reference the .DLL in the Reference Manager.

image

Documentation

Target Language: C#

Target Framework: .NET 6.0 (LTS)

Usage

Make sure to include the library before proceeding any further.

using TextEffects;

Typewriter

All instances -

Typewriter.Type();
Typewriter.TypeLine();
Typewriter.List();
Typewriter.TypeList();

Type, TypeLine

This is a simple effect that will allow you to easily integrate a typewritten animation.

Typewriter.Type(message, typeSpeed);
Typewriter.TypeLine(message, typeSpeed);

The 'message' must be defined using a String.

The 'typeSpeed' parameter can only be defined using an Int type. As the name suggests, with this you can adjust the typing speed of the message.

Example 001

Code -

Typewriter.Type("Hello World!", 75);

Output -

Hello World!

Example 002

Code -

Typewriter.TypeLine("Hello World!", 75);

Output -

H
e
l
l
o

W
o
r
l
d
!

List, TypeList

Similarly to Typeline, this effect types out .

Typewriter.Typeline(effect, message, typeSpeed);

The 'message' must be defined using a String[].

The 'typeSpeed' parameter can only be defined using an Int type. As the name suggests, with this you can adjust the typing speed of the message.

Example 003

Code -

string[] myList =
{
    "1. Hello World!",
    "2. This is a list!",
    "3. It is typed by each letter and then line!",
    "Goodbye for now..."
};
Typewriter.Type(myList, 75);

Output -

1. Hello World!
2. This is a list!
3. It is typed by each letter and then line!
Goodbye for now...

Example 004

Code -

string[] myList =
{
    "1. Hello World!",
    "2. This is a list!",
    "3. It is typed by each line!",
    "Goodbye for now..."
};
Typewriter.TypeList(myList, 75);

Output -

1. Hello World!
2. This is a list!
3. It is typed by each line!
Goodbye for now...

Animation

All instances -

Animation.Spinner();

Spinner

The spinner can be easily defined with just one short line and is suitable for when in the need

Animation.Spinner(type, animSpeed, rotations);

The 'type' parameter must be defined using an Int.

The 'animSpeed' parameter can only be defined using an Int type. As the name suggests, with this you can adjust the animation speed of the spinner.

The 'rotations' parameter, defined using an Int type, it sets the amount of rotations needed.

Example 003

Code -

Animation.Spinner(0, 100, 50);

Output -

/-\\|

texteffects's People

Contributors

bialas0 avatar

Stargazers

Matthew avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.