//doc ClutterColor shade(amount) IO_METHOD(IoClutterColor, shade) { ClutterColor result; double factor = CNUMBER(IoMessage_locals_numberArgAt_(m, locals, 0)); clutter_color_shade(&IOCCOLOR(self), factor, &result); return IoClutterColor_newWithColor(IOSTATE, result); }
/** * clutter_color_darken: * @color: a #ClutterColor * @result: (out caller-allocates): return location for the darker color * * Darkens @color by a fixed amount, and saves the changed color * in @result. */ void clutter_color_darken (const ClutterColor *color, ClutterColor *result) { clutter_color_shade (color, 0.7, result); }
/** * clutter_color_lighten: * @color: a #ClutterColor * @result: (out caller-allocates): return location for the lighter color * * Lightens @color by a fixed amount, and saves the changed color * in @result. */ void clutter_color_lighten (const ClutterColor *color, ClutterColor *result) { clutter_color_shade (color, 1.3, result); }