I tried:
set coloroverlay of img "logo" to true
set coloroverlay of img "logo" to "255,255,255"
But nothing happens.
How to script color overlay color?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: How to script color overlay color?
Hi,LJE
All graphic effects are arrays and you can set each key of this array
or
Best regards
Jean-Marc
All graphic effects are arrays and you can set each key of this array
Code: Select all
set the colorOverlay["color"] of img "logo" to "255,0,0"
set the colorOverlay["opacity"] of img "logo" to 50
Code: Select all
put 255 into tOverlayProp ["opacity"]
put "2,5,18" into tOverlayProp ["color"]
set the coloroverlay of img 1 to tOverlayProp
Jean-Marc
https://alternatic.ch
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to script color overlay color?
If you look up "overlay" in the in-built Dictionary everything is explained.
In fact, to save yourself quite a lot of time, try to make the in-built Dictionary your first stop every time you have a question
However, it is extremely important to be clear about what you are searching for:
In fact, to save yourself quite a lot of time, try to make the in-built Dictionary your first stop every time you have a question

However, it is extremely important to be clear about what you are searching for: