예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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);
 }