From: <jos...@ju...> - 2007-03-06 05:38:50
|
> > Is there any particular reason why the gradient type in edc > > is a string, instead of a keyword like the rest of the types? > > = > > when you write 'gradient {type: ', you can't write anything > > other than "linear" or "radial", right? So why isn't that > > statement parsed as 'type: LINEAR' or 'type: RADIAL'? > = Evas allows for "linear", "radial", "angular", "rectangular" and "sinusoidal" gradient types, and also two other types of linear gradients, "linear_diag" and "linear_codiag". > IIRC, the evas gradiant types are strings, so I just used these > directly in the edje format. I originally considered doing keywords, > but I was under the impression that the string type names existed > to allow future pluggable gradient types. So, using the strings > directly in edje would allow support for such things. > = I moved gradient types to being loadable modules (some time back now), so you can indeed 'plug-in' new ones.. it just hasn't made it to cvs yet for various reasons. > But, I'm not certain what the plan actually is/was. Grads in evas > are (unfortunately) not used a whole lot and have little > documentation. If pluggable grads isn't on the future feature list, > then I'm not opposed to codifying the grad types in edje. Well, edje actually can have its own degree of freedom in this respect. You could have 'built-in' types, and just add more if any are desired in particular.. but you'd either have to add specific properties/interfaces for describing their particulars, or go with strings that codify such, as evas now has. As to documenting them.. sure, as soon as we can decide on exactly what properties one wants for these.. The current set I picked as basic ones that gave 'natural' variability in the geometries, but there are others - eg. in the SVG spec, radial gradients allow for 'foci', something which we can add if desired. Conversely, if there are things people would like removed, or modified, then that could be done as well. And improvements, and whatnot. But frankly, I'd like someone else to pick this up if they wish.. I'm somewhat done with grads for the moment (except for a couple of pending/past patches), and have little time to get back to them right now. jose. |