Hey Number 5: sprite(1).color = rgb(random(1,255), random(1,255), random(1,255)) This way you get a random number between 1 and 255.
-Natalia -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Hines Sent: 28. januar 2002 06:20 To: lingoL Subject: <lingo-l> Colouring sprites Since I didn't get any feedback regarding my battle with sprite colouring I thought I'd post it again. Please can someone help, especially with number 5! Thanks. I have a few questions about sprite/member colours: 1) If a vector/shape member is filled/stroked a certain colour with the foreground/background colour chips, will that member colour always display the same on another computer/platform? 2) If a vector/shape member or bitmap sprite's colour is set via lingo, will the choosen colour be the same on all computers/platforms? (especially when using paletteIndex() 3) Will using rgb() opposed to paletteIndex() always display the intended colour as the same on all computers/platforms? 4) If an 8-bit member is displayed on a 16-bit or higher colour-depth monitor will the member display in its correct colours if the 8-bit palette it conforms to is not used? (ie. since the monitor obviously has enough colours available to match the intended member colours) 5) I'm also having problems with setting a bitmap sprite to a random colour repeatedly via lingo. Using either of the following two statements only seems to change the sprite's colour to varying shades of the same colour. sprite(1).color = rgb(random(255), random(255), random(255)) sprite(1).color = paletteIndex(random(255)) Can someone please let me know of a more reliable way to do this? Perhaps I'm using the wrong sprite colour property? Thanks, Drekinn "It's not a bug, it's a random feature." [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
