set alpha shortcuts

This commit is contained in:
DCFApixels 2025-04-08 18:25:45 +08:00
parent fe5142dbdc
commit 964ba7e3df

View File

@ -9,5 +9,10 @@ namespace DCFApixels.DebugXCore.Internal
self.a *= v; self.a *= v;
return self; return self;
} }
public static Color ToColor(ref this (Color color, float alpha) self)
{
self.color.a *= self.alpha;
return self.color;
}
} }
} }