sar rework, improved

This commit is contained in:
Toastie 2024-11-27 22:38:06 +13:00
parent af71e88985
commit 3532554a13
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
30 changed files with 8417 additions and 569 deletions
src/EllieBot/Modules/Gambling

View file

@ -154,16 +154,16 @@ public partial class Gambling : GamblingModule<GamblingService>
{
var password = _service.GeneratePassword();
var img = new Image<Rgba32>(70, 35);
var img = new Image<Rgba32>(60, 30);
var font = _fonts.NotoSans.CreateFont(30);
var font = _fonts.NotoSans.CreateFont(25);
var outlinePen = new SolidPen(Color.Black, 1f);
var strikeoutRun = new RichTextRun
{
Start = 0,
End = password.GetGraphemeCount(),
Font = font,
StrikeoutPen = new SolidPen(Color.White, 3),
StrikeoutPen = new SolidPen(Color.White, 4),
TextDecorations = TextDecorations.Strikeout
};
// draw password on the image