@@ -54,10 +54,11 @@ * @param red The red value of the color, between 0.0 and 1.0 * @param green The green value of the color, between 0.0 and 1.0 * @param blue The blue value of the color, between 0.0 and 1.0 * @param alpha The alpha value of the color, between 0.0 and 1.0 * @return A new color with the specified red, green, blue and alpha value + * @throw OFInvalidArgumentException One of the specified arguments is invalid */ + (instancetype)colorWithRed: (float)red green: (float)green blue: (float)blue alpha: (float)alpha; @@ -214,10 +215,11 @@ * @param green The green value of the color, between 0.0 and 1.0 * @param blue The blue value of the color, between 0.0 and 1.0 * @param alpha The alpha value of the color, between 0.0 and 1.0 * @return A color initialized with the specified red, green, blue and alpha * value + * @throw OFInvalidArgumentException One of the specified arguments is invalid */ - (instancetype)initWithRed: (float)red green: (float)green blue: (float)blue alpha: (float)alpha;