mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-17 17:34:35 +08:00
add set color alpha shortcuts
This commit is contained in:
parent
809a04c8fb
commit
fe5142dbdc
@ -198,10 +198,18 @@ namespace DCFApixels
|
||||
{
|
||||
return new DrawHandler(GetCurrentDefaultDuration(), color);
|
||||
}
|
||||
public static DrawHandler Draw((Color color, float alphaMultiplier) color)
|
||||
{
|
||||
return new DrawHandler(GetCurrentDefaultDuration(), color.ToColor());
|
||||
}
|
||||
public static DrawHandler Draw(float duration, Color color)
|
||||
{
|
||||
return new DrawHandler(duration, color);
|
||||
}
|
||||
public static DrawHandler Draw(float duration, (Color color, float alphaMultiplier) color)
|
||||
{
|
||||
return new DrawHandler(duration, color.ToColor());
|
||||
}
|
||||
//public static DrawHandler Draw(float r, float g, float b, float a = 1f) //TODO
|
||||
|
||||
public readonly partial struct DrawHandler
|
||||
@ -221,8 +229,10 @@ namespace DCFApixels
|
||||
//ContextController = GetCurrenRenderContextController();
|
||||
}
|
||||
[IN(LINE)] public DrawHandler Setup(float duration, Color color) => new DrawHandler(duration, color);
|
||||
[IN(LINE)] public DrawHandler Setup(float duration, (Color color, float alphaMultiplier) color) => new DrawHandler(duration, color.ToColor());
|
||||
[IN(LINE)] public DrawHandler Setup(float duration) => new DrawHandler(duration, Color);
|
||||
[IN(LINE)] public DrawHandler Setup(Color color) => new DrawHandler(Duration, color);
|
||||
[IN(LINE)] public DrawHandler Setup((Color color, float alphaMultiplier) color) => new DrawHandler(Duration, color.ToColor());
|
||||
//[IN(LINE)]
|
||||
//private DrawHandler(float time, Color color, RenderContextController contextController)
|
||||
//{
|
||||
|
Loading…
Reference in New Issue
Block a user