MonoGame.GlowEffect 1.0.4

.NET Standard 2.0
dotnet add package MonoGame.GlowEffect --version 1.0.4
NuGet\Install-Package MonoGame.GlowEffect -Version 1.0.4
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="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
#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

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

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid monoandroid10.0
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Universal Windows Platform uap10.0.18362
Xamarin.iOS xamarinios xamarinios10
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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 199 12/28/2021
1.0.3 144 12/28/2021
1.0.2 244 5/19/2021
1.0.1 202 5/2/2021
1.0.0 179 4/12/2021