Hi Ramesh,
At 06:08 09/02/2001, you wrote:
>from another sprite. The sprite(image) should not get filled by the color
>we pick, instead, it should adjust the tint of the other sprite according
>to the color we pick.
>
>I used copyPixels() function in the followig script but it does not give
>that tint effect of what we do to graphic symbols in flash
>
>---
>property pImage
>global gColorPicked
>
>on mouseUp me
> pImage = sprite(me.spriteNum).member.image
> pImage.copyPixels(pImage,pImage.rect, pImage.rect, [#colorg:gColorPicked,
>#blendLevel:100])
>end
Just do something like that : <! untested lingo>
on mouseUp me
pImage = sprite(me.spriteNum).member.image
colorDot = image(2,2,16)
colorDot.fill(rect(0,0,2,2), gColorPicked)
pImage.copyPixels(colorDot,\
pImage.rect,\
rect(0,0,2,2),\
[#blendLevel:100])
end -- mouseUp handler
and remember, blendLevel range is 0-> 255, and not 0->100like blend.
HTH,
Séb
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]