/// <summary> /// Retrives the unwrapped Revit color. /// </summary> /// <param name="color">A wrapped Revit color.</param> /// <returns name="Revit color">A Revit color.</returns> public static RevitColor UnwrapColor(ColorWrapper color) { return(color.revitColor); }
/// <summary> /// Converts the Revit color into a Dynamo Core Color. /// </summary> /// <param name="color">A wrapped Revit color</param> /// <returns name="dynamoColor">A Dynamo Core Color.</returns> public static DynColor ToDynamoColor(ColorWrapper color) { return(DynColor.ByARGB(255, color._red, color._green, color._blue)); }
/// <summary> /// Get the Greem component of the color. /// </summary> /// <param name="color">A wrapped Revit color.</param> /// <returns name="green">The green component.</returns> public static int Green(ColorWrapper color) { return(color._green); }
/// <summary> /// Get the Blue component of the color. /// </summary> /// <param name="color">A wrapped Revit color.</param> /// <returns name="blue">The blue component.</returns> public static int Blue(ColorWrapper color) { return(color._blue); }
/// <summary> /// Get the Red component of the color. /// </summary> /// <param name="color">A wrapped Revit color.</param> /// <returns name="red">The red component.</returns> public static int Red(ColorWrapper color) { return(color._red); }