[Sugar-devel] xo colors & gradients
Bert Freudenberg
bert at freudenbergs.de
Mon Aug 23 17:21:41 EDT 2010
On 23.08.2010, at 23:07, Erik Blankinship wrote:
> I would like to use stroke_color as the basis for a gradient. For example: if stroke_color was #FF0000, I might want to generate #E60000 and #FF1A1A (darker and lighter, respectively). Maybe you can refer to me an activity icon which does this?
Can't do that. But you can use the stroke_color itself as one stop on the gradient, so you could e.g. fade from stroke_color to white.
To lighten or darken, just use a plain stroke/fill color, and layer a translucent white or black shape on top of it.
- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100823/a236323b/attachment.htm
More information about the Sugar-devel
mailing list