[REBOL] Re: EVOScript
From: anton:lexicon at: 27-Nov-2002 17:11
I think Gabriele means that using colorize after
extend will stop extend working.
But if this is true he is wrong. :)
Have a look at this example:
img: to-image layout [box red effect [oval]]
view layout [
image (img/size + 40x40) img effect reduce [
'extend (img/size / 2) 40x40 'colorize 0.0.255
You can see that colorize and extend are both in effect.
Now remove the
Your original problem I think was that extend needs
two pair types (e.g 1x2 is a pair!).
The first pair is the offset to start the extending.
The second pair specifies how much to extend.
Another problem is that by using img/size/2 you
actually specified img/size/y, that is the height of
the image, which is an integer, not a pair, so it
would have been ignored by extend.
I am sure you meant img/size / 2, which would have
given half the size of the image, ie. the centre.
So in the above code I asked to extend the image
from the centre of the image 40 pixels in each direction,
horizontally and vertically.
And I also made sure that the size of the image
style in the layout was large enough to show
the extended image.