Decompiled source of ColorLib v3.1.0

plugins/ColorLib/ColorLib.dll

Decompiled a day ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("Quest_Play")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCopyright("Copyright © 2025 Quest-play")]
[assembly: AssemblyDescription("The library includes 146 color HEX codes and allows you to convert RGB to HEX.")]
[assembly: AssemblyFileVersion("3.1.0.0")]
[assembly: AssemblyInformationalVersion("3.1.0+28a76b2f3af3156cb7ebb65911eac186429da497")]
[assembly: AssemblyProduct("ColorLib")]
[assembly: AssemblyTitle("ColorLib")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/Quest-play/ColorLib")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("3.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace ColorLib
{
	public class LibColorHelper
	{
		public static string WrapInColor(string text, Colors color)
		{
			return $"<color=#{color:X6}>{text}</color>";
		}

		public static string FromHex(string hex, string text)
		{
			return $"<color=#{hex}>{text}</color>";
		}

		public static string FromRgb(byte r, byte g, byte b, string text)
		{
			return $"<color=#{r:X2}{g:X2}{b:X2}>{text}</color>";
		}
	}
	public enum Colors
	{
		Red = 16711680,
		IndianRed = 13458524,
		LightCoral = 15761536,
		Salmon = 16416882,
		DarkSalmon = 15308410,
		LightSalmon = 16752762,
		Crimson = 14423100,
		FireBrick = 11674146,
		DarkRed = 9109504,
		Pink = 16761035,
		LightPink = 16758465,
		HotPink = 16738740,
		DeepPink = 16716947,
		MediumVioletRed = 13047173,
		PaleVioletRed = 14381203,
		Orange = 16753920,
		DarkOrange = 16747520,
		Coral = 16744272,
		Tomato = 16737095,
		OrangeRed = 16729344,
		Green = 35328,
		DarkGreen = 25600,
		LightGreen = 9498256,
		PaleGreen = 10025880,
		MediumSeaGreen = 3978097,
		SeaGreen = 3050327,
		ForestGreen = 2263842,
		LimeGreen = 3329330,
		Lime = 65280,
		SpringGreen = 65407,
		MediumSpringGreen = 64154,
		LightSeaGreen = 2142890,
		MediumAquamarine = 6737322,
		GreenYellow = 11403055,
		Chartreuse = 8388352,
		LawnGreen = 8190976,
		YellowGreen = 10145074,
		OliveDrab = 7048739,
		Olive = 8224000,
		DarkOliveGreen = 5597999,
		DarkSeaGreen = 9419919,
		DarkCyan = 35723,
		Teal = 32125,
		Blue = 255,
		MediumBlue = 205,
		DarkBlue = 139,
		LightBlue = 11393254,
		SkyBlue = 8900331,
		DeepSkyBlue = 49151,
		DodgerBlue = 2003199,
		Aqua = 65535,
		LightCyan = 14745599,
		Cyan = 65535,
		PaleTurquoise = 11529966,
		Aquamarine = 8388564,
		Turquoise = 4251856,
		MediumTurquoise = 4772300,
		DarkTurquoise = 52945,
		CadetBlue = 6266528,
		SteelBlue = 4620980,
		LightSteelBlue = 11584734,
		PowderBlue = 11591910,
		LightSkyBlue = 8900346,
		CornflowerBlue = 6591981,
		MediumSlateBlue = 8087790,
		RoyalBlue = 4286945,
		Navy = 128,
		MidnightBlue = 1644912,
		Yellow = 16776960,
		LightYellow = 16777184,
		LemonChiffon = 16775885,
		LightGoldenrodYellow = 16448210,
		PapayaWhip = 16773077,
		Moccasin = 16770229,
		PeachPuff = 16767673,
		Khaki = 15787660,
		DarkKhaki = 12433259,
		Gold = 16766720,
		PaleGoldenrod = 15657130,
		LightGoldenrod = 15654274,
		DarkGoldenrod = 12092939,
		Purple = 8388736,
		Lavender = 15132410,
		Thistle = 14204888,
		Plum = 14524637,
		Violet = 15631086,
		Orchid = 14315734,
		Magenta = 16711935,
		MediumOrchid = 12211667,
		MediumPurple = 9662683,
		BlueViolet = 9055202,
		DarkViolet = 9699539,
		DarkOrchid = 10040012,
		DarkMagenta = 9109643,
		Indigo = 4915330,
		SlateBlue = 6970061,
		DarkSlateBlue = 4734347,
		White = 16777215,
		Snow = 16775930,
		Honeydew = 15794160,
		MintCream = 16121850,
		Azure = 15794175,
		AliceBlue = 15792383,
		GhostWhite = 16316671,
		WhiteSmoke = 16119285,
		Seashell = 16774638,
		Beige = 16119260,
		OldLace = 16643558,
		FloralWhite = 16775920,
		Ivory = 16777200,
		AntiqueWhite = 16444375,
		Linen = 16445670,
		LavenderBlush = 16773365,
		MistyRose = 16770273,
		Brown = 10824234,
		DarkBrown = 6636321,
		Cornsilk = 16775388,
		BlanchedAlmond = 16772045,
		Bisque = 16770244,
		NavajoWhite = 16768685,
		Wheat = 16113331,
		Burlywood = 14596231,
		Tan = 13808780,
		RosyBrown = 12357519,
		SandyBrown = 16032864,
		Goldenrod = 14329120,
		DarkGoldenRod = 12092939,
		Peru = 13468991,
		Chocolate = 13789470,
		SaddleBrown = 9127187,
		Sienna = 10506797,
		Maroon = 8388608,
		Gray = 8421504,
		DimGray = 6908265,
		LightGray = 13882323,
		Gainsboro = 14474460,
		DarkGray = 11119017,
		Silver = 12632256,
		LightSlateGray = 7833753,
		SlateGray = 7372944,
		DarkSlateGray = 3100495
	}
}