mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
MIssing file
This commit is contained in:
1 parent
6b3294ff7d
commit
a64cacbaf2
1 file changed
+50
-42
+50
-42
@@ -1,43 +1,51 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Artemis.Utilities;
|
using Artemis.Managers;
|
||||||
using MoonSharp.Interpreter;
|
using Artemis.Profiles.Lua.Modules.Brushes;
|
||||||
|
using Artemis.Utilities;
|
||||||
namespace Artemis.Profiles.Lua.Brushes
|
using MoonSharp.Interpreter;
|
||||||
{
|
|
||||||
[MoonSharpUserData]
|
namespace Artemis.Profiles.Lua.Modules
|
||||||
public class LuaBrushWrapper
|
{
|
||||||
{
|
[MoonSharpUserData]
|
||||||
public LuaColor GetColor(string hexCode)
|
public class LuaBrushesModule : LuaModule
|
||||||
{
|
{
|
||||||
return new LuaColor(hexCode);
|
public LuaBrushesModule(LuaManager luaManager) : base(luaManager)
|
||||||
}
|
{
|
||||||
|
}
|
||||||
public LuaColor GetColor(byte a, byte r, byte g, byte b)
|
|
||||||
{
|
public override string ModuleName => "Brushes";
|
||||||
return new LuaColor(a, r, g, b);
|
|
||||||
}
|
public LuaColor GetColor(string hexCode)
|
||||||
|
{
|
||||||
public LuaColor GetRandomColor()
|
return new LuaColor(hexCode);
|
||||||
{
|
}
|
||||||
return new LuaColor(ColorHelpers.GetRandomRainbowMediaColor());
|
|
||||||
}
|
public LuaColor GetColor(byte a, byte r, byte g, byte b)
|
||||||
|
{
|
||||||
public LuaSolidColorBrush GetSolidColorBrush(LuaColor color)
|
return new LuaColor(a, r, g, b);
|
||||||
{
|
}
|
||||||
return new LuaSolidColorBrush(color);
|
|
||||||
}
|
public LuaColor GetRandomColor()
|
||||||
|
{
|
||||||
public LuaLinearGradientBrush GetLinearGradientBrush(Dictionary<LuaColor, double> gradientColors,
|
return new LuaColor(ColorHelpers.GetRandomRainbowMediaColor());
|
||||||
double startX = 0.5, double startY = 0.0, double endX = 0.5, double endY = 1.0)
|
}
|
||||||
{
|
|
||||||
return new LuaLinearGradientBrush(gradientColors, startX, startY, endX, endY);
|
public LuaSolidColorBrush GetSolidColorBrush(LuaColor color)
|
||||||
}
|
{
|
||||||
|
return new LuaSolidColorBrush(color);
|
||||||
// TODO: Check default values
|
}
|
||||||
public LuaRadialGradientBrush GetRadialGradientBrush(Dictionary<LuaColor, double> gradientColors,
|
|
||||||
double centerX = 0.5, double centerY = 0.5, double originX = 0.5, double originY = 0.5)
|
public LuaLinearGradientBrush GetLinearGradientBrush(Dictionary<LuaColor, double> gradientColors,
|
||||||
{
|
double startX = 0.5, double startY = 0.0, double endX = 0.5, double endY = 1.0)
|
||||||
return new LuaRadialGradientBrush(gradientColors, centerX, centerY, originX, originY);
|
{
|
||||||
}
|
return new LuaLinearGradientBrush(gradientColors, startX, startY, endX, endY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Check default values
|
||||||
|
public LuaRadialGradientBrush GetRadialGradientBrush(Dictionary<LuaColor, double> gradientColors,
|
||||||
|
double centerX = 0.5, double centerY = 0.5, double originX = 0.5, double originY = 0.5)
|
||||||
|
{
|
||||||
|
return new LuaRadialGradientBrush(gradientColors, centerX, centerY, originX, originY);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user