public static Sd.Fill ToFill(this Wg.Color input) { Sd.Fill fill = new Sd.Fill(); fill.BackgroundColor = input.ToDynamicColor(); return(fill); }
public static Sd.Color ToDynamicColor(this Wg.Color input) { Sd.Color color = new Sd.Color(); color.A = (byte)input.A; color.R = (byte)input.R; color.G = (byte)input.G; color.B = (byte)input.B; return(color); }
public static Sm.Color ToMediaColor(this Wg.Color input) { return(Sm.Color.FromArgb((byte)input.A, (byte)input.R, (byte)input.G, (byte)input.B)); }
public static string ToSVG(this Wg.Color input) { return("rgb(" + input.R + "," + input.G + "," + input.B + ")"); }
public static Dr.Color ToDrawingColor(this Wg.Color input) { return(Dr.Color.FromArgb(input.A, input.R, input.G, input.B)); }
public Modifier(Modifier modifier) { this.ModifierMode = modifier.ModifierMode; this.Value = modifier.Value; this.Color = new Wg.Color(modifier.Color); }