MonoGame.GlowEffect 1.0.2

Install-Package MonoGame.GlowEffect -Version 1.0.2
dotnet add package MonoGame.GlowEffect --version 1.0.2
<PackageReference Include="MonoGame.GlowEffect" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.GlowEffect --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MonoGame.GlowEffect, 1.0.2"
#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.2

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

MonoGame.GlowEffect

<b>MonoGame.GlowEffect</b> 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.

How to use

Create a new Texture with glow

Color color = Color.Yellow;
float blurX = 30f;
float blurY =  30f;
float dist = 0f;
float angle = 0f;
float alpha = 1f;
float strength = 15f;
float inner = 0f;
float knockout = 0.5f;
float circleSamplingTimes = 12f;
float linearSamplingTimes = 7f;
var textureWithGlow = GlowEffect.CreateGlow(myTexture, color, blurX, blurY, dist, angle, alpha, strength, inner, knockout, circleSamplingTimes, linearSamplingTimes, GraphicsDevice);

Color textColor = Color.Black;
Color glowColor = Color.Yellow;
float blurX = 30f;
float blurY =  30f;
float dist = 0f;
float angle = 0f;
float alpha = 1f;
float strength = 15f;
float inner = 0f;
float knockout = 0.5f;
float circleSamplingTimes = 12f;
float linearSamplingTimes = 7f;
var textGlow = GlowEffect.CreateGlowSpriteFont(arialSpriteFont, "My Text", textColor, glowColor, blurX, blurY, dist, angle, alpha, strength, inner, knockout, circleSamplingTimes, linearSamplingTimes, GraphicsDevice);

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.2 135 5/19/2021
1.0.1 99 5/2/2021
1.0.0 82 4/12/2021