MonoGame.GlowEffect 1.0.4

Install-Package MonoGame.GlowEffect -Version 1.0.4
dotnet add package MonoGame.GlowEffect --version 1.0.4
<PackageReference Include="MonoGame.GlowEffect" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.GlowEffect --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MonoGame.GlowEffect, 1.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoGame.GlowEffect as a Cake Addin
#addin nuget:?package=MonoGame.GlowEffect&version=1.0.4

// Install MonoGame.GlowEffect as a Cake Tool
#tool nuget:?package=MonoGame.GlowEffect&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MonoGame.GlowEffect

MonoGame.GlowEffect is a library to generate glow for Texture2D in MonoGame. We also support Sprite Font. We use a shader effect to generate the Glow effect.

Nuget package

There is a nuget package avaliable here https://www.nuget.org/packages/MonoGame.GlowEffect/.

How to use

Create a new Texture with glow

Color glowColor = Color.White;
GlowType glowType = GlowType.GlowAndTexture;
int size = 10;
float strength = 0.3f;
float alphaIncreaser= 0.5f;
float alphaReducer = 0.15f;
float alphaDistance = 0.2f;
var textureGlow = GlowEffect.GlowEffect.CreateGlow(texture, glowColor, size, strength, alphaIncreaser, alphaReducer, alphaDistance, GraphicsDevice, glowType);

Color textColor = Color.Black;
Vector2 textScale = new Vector2(0.85f);
Color glowColor = Color.White;
GlowType glowType = GlowType.GlowAndTexture;
int size = 10;
float strength = 0.3f;
float alphaIncreaser= 0.5f;
float alphaReducer = 0.15f;
float alphaDistance = 0.2f;
var textGlow = GlowEffect.GlowEffect.CreateGlowSpriteFont(cooperBlackSpriteFont, text, textColor, glowColor, textScale, size, strength, alphaIncreaser, alphaReducer, alphaDistance, GraphicsDevice, glowType);

License

MIT

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 56 12/28/2021
1.0.3 47 12/28/2021
1.0.2 154 5/19/2021
1.0.1 114 5/2/2021
1.0.0 92 4/12/2021