Toma wrote:
> While everyones talking about gradients, Ive a request... Id like to
> be able to create a gradient that goes from sollid white to alpha then
> clip an image to it so that the image fades away. Something like
> this...
>
> spectra {
> spectrum {
> name: "sp2";
> color: 255 255 255 255 1;
> color: 0 0 0 0 1;
> }
> }
> collections {
> group {
> name: "Test";
> parts {
> part {
> name: "base";
> type: GRADIENT;
> mouse_events: 0;
> description {
> state: "default" 0.0;
> gradient.spectrum: "sp2";
> fill.spread: 1;
> }
> }
> part {
> name: "chinaman";
> mouse_events: 0;
> type: IMAGE;
> clip_to: "base";
> description {
> state: "default" 0.0;
> image.image: ChinaManBeard.jpg" COMP;
> image.normal: "ChinaManBeard.jpg";
> }
> }
> }
> }
> }
>
> In this example I was trying to get this image to fade like the
> gradient does. If you clip the image to a normal RECT then fade the
> clip box it will fade the image too.
> Would be nice, but not essential. Im guessing the mechanics behind it
> are alot more complex than I comprehend...
> Toma
>
>
This is something very useful and indeed I would like to add this
ability to evas. I would add this as the ability to "mask" any object by
either an image or gradient object.
I *don't* want to add it via the current clipping mechanism. Why?
Because I implemented just that sometime back and ran into several semantic
and practical 'issues' that I truly don't like. I'd leave clipping as is -
clip to rectangles and ignore any transforms, corners, whatnot these objs
might have.. ie. a pure rectangular display region clipping mechanism.
The separate "mask" approach allows for a simpler, easier to optimize,
directly supported by most engines, and gives a powerful method since the
mask objects (images or gradients) can be transformed and/or filtered.
With it, you can get all the nifty 'new' reflection stuff that apple's
made famous recently, and a lot more such masking effects (eg. mask with
a buffer evas, indirectly, by masking with the associated image).
NB: This is somewhat similar to (though not exactly the same as)
fill and/or stroke "texturing" of vgfx objs with image or grad objects.
____________________________________________________________
Click to become a designer and quit your boring job.
http://thirdpartyoffers.juno.com/TGL2141/fc/Ioyw6i3l7MABetj9UMyNeM7OIM8bHr74HKPatHWDUwfP2rv45TmoDt/
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel