
Here's the postings so far.
steve10 wrote:Can Colors & Patterns from the Inspector be used with pngs? What about the associated code?
The other effects in the Inspector seem to work with pngs, but I can't get Colors & Patterns to work. Could someone please confirm?
Steve
Now I'm only more confused! Here's some text extracted from the dictionary about colors:hanson wrote:Hi Steve,
please have a look at the dictionary page "color" for more information on where the 8 colors are used. I think this will answer the question for you.
Thanks,
Hanson
colors
Type: property
Syntax:
set the colors of object to colorsList
Objects (or Types): card,stack,group,field,button,graphic,scrollbar,player,image
The colors of an image contains as many lines as there are colors used in the image. The colors of all other objects contains eight lines, some of which may be empty.
Comments:
For objects other than images, you can set all these colors individually; the colors property simply provides a shorter method of dealing with all of them at once. Each line of the colors corresponds to one of the following color properties:
Line 1: the foregroundColor
Line 2: the backgroundColor
Line 3: the hiliteColor
Line 4: the borderColor
Line 5: the topColor
Line 6: the bottomColor
Line 7: the shadowColor
Line 8: the focusColor
This text from the dictionary is typical of the different types of color properties:
foregroundColor
Type: property
Syntax:
set the backgroundColor of object to {empty | colorName | RGBColor}
set the backgroundColor of [chunk of] field to {empty|colorName|RGBColor}
Objects (or Types): card,stack,group,field,button,graphic,scrollbar,player,image
From this it seems that the color properties should work similarly on images and objects, the only difference being that images have unlimited colors and graphics have 8 defined color types. It works as expected for graphics, but seems to do nothing to images. This is my code:
Code: Select all
on mouseenter
set the foregroundcolor of me to "60,130,200"
set the shadowcolor of me to "200,130,100"
end mouseenter
Steve