MonoGame.GlowEffect
1.0.12
dotnet add package MonoGame.GlowEffect --version 1.0.12
NuGet\Install-Package MonoGame.GlowEffect -Version 1.0.12
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.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.GlowEffect --version 1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MonoGame.GlowEffect, 1.0.12"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.12 // Install MonoGame.GlowEffect as a Cake Tool #tool nuget:?package=MonoGame.GlowEffect&version=1.0.12
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
Initialize and Load the GlowEffect
protected override void LoadContent()
{
GlowEffect.InitializeAndLoad(Content, GraphicsDevice);
// ...
}
Create a new Texture with glow
Color color = Color.Yellow;
int glowWidth = 20;
float intensity = 30;
float spread = 0;
float totalGlowMultiplier = 100;
bool hideTexture = false;
var textureWithGlow = GlowEffect.CreateGlow(myTexture, color, glowWidth, intensity, spread, totalGlowMultiplier, hideTexture);
Color textColor = Color.Black;
Color glowColor = Color.Yellow;
int glowWidth = 20;
float intensity = 30;
float spread = 0;
float totalGlowMultiplier = 100;
bool hideTexture = false;
var textGlow = GlowEffect.CreateGlowSpriteFont(arialSpriteFont, "My Text", textColor, glowColor, glowWidth, intensity, spread, totalGlowMultiplier, hideTexture);
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- MonoGame.Content.Builder.Task (>= 3.8.2.1105)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.