"contains" doubt in hexadecimal color value?

Hello, I have a small matrix of tiles, each one is a sprite
of a unique cast member that has an initial color assigned by a
movie script:
on setColorInitial me
--0000ff
sprite(1).color = color(#rgb 0,0,255)
hex0000ff = color (sprite(1).foreColor)
put hex0000ff.hexString()
--0033ff
sprite(2).color = color(#rgb 0,51,255)
hex0033ff = color (sprite(2).foreColor)
put hex0033ff.hexString()
--0066ff
sprite(3).color = color(#rgb 0,102,255)
hex0066ff = color (sprite(3).foreColor)
put hex0066ff.hexString()
--0099ff
sprite(4).color = color(#rgb 0,153,255)
hex0099ff = color (sprite(4).foreColor)
put hex0099ff.hexString()
--00ccff
sprite(5).color = color(#rgb 0,204,255)
hex00ccff = color (sprite(5).foreColor)
put hex00ccff.hexString()
--00ffff
sprite(6).color = color(#rgb 0,255,255)
hex00ffff = color (sprite(6).foreColor)
put hex00ffff.hexString()
end
Each tile is a button that when pressed it can change the
blend value of the other sprites. It sounds very easy, but the
problem is when I have a matrix of 100 tiles and each one is a
button! The blend occurrs in a predetermined way, that is to say if
tile "00ffff" is pressed then a predetermined amount of sprites
will remain with blend value 100 and all the others will change to
a blend value 20 for example.
Is there any way to use a "contains" that can predefine that
all the tiles that contains the hexadecimal color value "blablabla"
and "blablabla2" and "blablabla3" to change its blend value to 100
and all the others to change to 20. I know that "contains" works as
an operator in strings, but can I use it in this case, how?

1) First of all Swing related questions should be posted in the Swing forum
2) Quit creatting multiple postings on the same topic. You where already given an answer to this question in your other posting:
http://forum.java.sun.com/thread.jspa?threadID=744785
and you never bother to thank the person for the suggestion.
If you don't fully understand the suggestion then post a follow-up question in the same posting so everybody knows what has already been suggested.
3) Use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags when posting code so the code is readable. You should also use the "Preview" button to make sure your question is readable.
4) The same renderer is used by all cells, so of course it would be the same color for all cells. If you want different cells to be different colors then you need do add some condifions in the renderer to control when a cell should be a different color
5) You can always search the Swing forum for examples. Many have been posted.

Similar Messages

  • QTPro Could not save file "The movie contains an in correct time value"

    QT Pro 7.6.6 Could not save file “The movie contains an in correct time value”
    I’m exporting files out of Priemer Pro CS5 with the H.264 “vimeo HD settings” .mp4 files and the files look dull, low contrast and low color saturation, when played in QT10. From what I’ve read it’s a gamma problem with QT10. I also hear the files from FCP have the same problem, so it's not a Premiere Pro problem.
    The fix is to open the file in QT Pro, adjust the blend in the video track and re-save, however I try to save the file I get an error that says “The movie contains an in correct time value”
    Will QT Pro 7.6.6 allow me to save my file to .mp4 or only .mov files
    I’m on a MacPro 12 Core with 14gb memory
    OS 10.6.5
    Any suggestions?
    Thanks
    Mark

    Will QT Pro 7.6.6 allow me to save my file to .mp4 or only .mov files
    The "Save As..." option always saves a copy of the data to an MOV file container. Minor property changes will allow your to use the "Save" option which stores only the changed properties to the same file in its original file container. Unfortunately, major changes will automatically invoke the "Save As..." routines even though you selected the "Save" option. If you must place the content in an MP4 file container, you can use the "Save As..." option in QT Streamclip to re-save the "fixed" MOV file to an MP4 file container. However, note that extraneous track content may, if present, not be carried over to the MP4 container.

  • Photoshop hexadecimal colors problem

    I use hexadecimal colors in my html / css web design (eg. #214285).  When I use this color in Photoshop 8 it does not reproduce the exact color (Enhance / Adjust Color / Replace Color...and enter the hexa code).  Instead I have to play with the Hue, Saturation, Brightness settings and I can never seem to replicate the color exactly.  Is there someway to just enter the hexadecimal code as I do in HTML / CSS and not have to use H, S, B settings.  Can I disable those?  I understand that the hexadecimal settings are the just the RGB settings in photoshop, but I can't seem to get away from the H,S,B settings that wrecks my color replication.
    I'm a noob and I did spend quite a bit of time reading the adobe forums, photoshop help and book I have and I just can't seem to figure out how to use hexa codes only to represent color.  Please forgive me if this is a really elementary question.

    Hi Patrick,
    Have you tried using the Only web colors option on the bottom of the screen and then tried entering the hex values?

  • How to get the color value matching with HTML?

    Hello,
    I'd like to have the color value based on the HTML pattern using JS like InDesign file is having the value c=80,M=20,Y=40,K=20 and getting the HTML pattern as #29a37a during HTML export.
    Please advise to get the same type of value for all the colors in InDesign without doing HTML export using JS.
    Thanks,
    Praveen

    @Gejaraja – read the following to get an idea:
    Harbs
    Hexadecimal Swatches in InDesign
    http://in-tools.com/article/scripts-blog/hexadecimal-swatches-in-indesign/
    Uwe

  • How can I get scripting access to color values in the indexed Color Table?

    Hey all,
    I'm relatively new to Photoshop scripting, but I've just finished a script that helps my fiance with some very tedious tasks related to textile design.
    The last issue that I'm having is that the image I start with is indexed and has a very specific Color Table pallete ( 2-12 colors max + black and white, so 14 max total, sometimes as few as 2 ). Part of my script, I create a number of color chips and fill them with black currently... What I'd like is to be able to get a count of the colors in the Color Table and put the actual color values as hex into an 1 dimension array, so that I fill those black chips I've made with the actual colors from the Color Table.
    ( I don't know if it makes a difference but I'm converting the image to RGB mode at some point in the script, and back to Indexed Exact ).
    Can anyone please help me do this? Needs to be compatible with CS5 and CS6 ideally.
    Thanks!!

    Cheers for that, your code works but what had thrown me was that the collections appear to be empty - so I hadn't actually tried retrieving one, I just assumed I was looking in the wrong place.
    So if I do this in my Immediate window:
     App.Current.Resources.Count
     0
    Yet when I request it, I get one:
     App.Current.Resources["TitleTextStyle"]
     {Windows.UI.Xaml.Style}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.Style}
         BasedOn: {Windows.UI.Xaml.Style}
         IsSealed: false
         Setters: {Windows.UI.Xaml.SetterBaseCollection}
         TargetType: {Name = "TextBlock" FullName = "Windows.UI.Xaml.Controls.TextBlock"}
    Looking at the resources object itself, I get similar apparently empty collections:
     App.Current.Resources
     {Windows.UI.Xaml.ResourceDictionary}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.ResourceDictionary}
         Count: 0
         IsReadOnly: false
         Keys: Count = 0
         MergedDictionaries: {Windows.UI.Xaml.DependencyObject}
         Source: null
         ThemeDictionaries: {Windows.UI.Xaml.ResourceDictionary}
         Values: Count = 0

  • Placing images in Illustrator changes their color values-Why?

    I've been placing photoshop tiff files into Illustrator, and doing this seems to change the color values, when I sample them with the eyedropper tool. The images I made use a custom mix of CMYK rich black, with the K set to 100. In Illustrator, they appear to revert to the default 'Photoshop black", approx C75 M68 Y67 K90. This is not my intent of C70 M60 Y58 K100. The Illustrator document is CMYK mode, and I don't know why this is happening. The non-image items (vectors) in my illustrator file DO retain the color values I intended, however.
    Is this some kind of setting I can change in Illustrator? Will this discrepancy show up when this file goes to print? Please help! Thanks.

    WHen the image is not embedded, Illustrator samples the representation values. Those are handled by color management.

  • Preserving Black color values when converting color PDF to grayscale

    I opened a full colored PDF document (exported from InDesign using Profile: Euroscale Coated v2) in Photoshop and tried to convert it to grayscale (image > mode > grayscale) and noticed that the black color values changed. text for example that was 100% black in the PDF document became a screen of 91% black.
    is there a way to preserve color values when converting full color PDF documents to grayscale?
    or in other words WHICH is the correct way to convert full color PDF documents or full color InDesign files to grayscale?
    I am using Adobe CS 3, Acrobat 8 Professional, on Mac OS 10.5.5

    Before you open the PDF in Photoshop, set PS's Color Settings to Photoshop 5 Default Spaces. When you open the PDF set the Mode to Grayscale in the Import dialog. Just remember to reset your color settings when you're done.
    Edit: Also, if you want to match black percentages as well as 100% black, set the Photoshop Color Settings to Photoshop 5 Default Spaces with the Gray working space to Dot Gain 20%.

  • How do I input a specific color value for a shape?

    I've been trying to figure out why I cannot input a specific color that I want for a shape. I'm not just choosing a color that looks nice, I'm trying to match it to a solid color in the next clip. Ive tried to use the eye dropper to get the color from the next clip but I cannot copy anything outside of the color pallete provided. I know the value of the color (from 0-255 it's R:191, G:211, B:217) but all FCPX has is 0 - 1, which is some other kind of color value system I've never seen before. Does anyone know how I can put that specific color value into the shape generator?

    Click the color swatch to open the Apple color picker. This is common to all Mac apps.
    Click the second tab for color sliders. Change the popup to RGB.

  • Color Values

    How to I copy and paste the color valueson Kuler to a word document.  I know it can be done but how? Help

    Hello LRamacciotti,
    To get the color values,  in the theme detail view available next to the theme on selecting it, there is a button to view color values just above the More info/next info text. This will take you to the creation page where the color values are given towards the bottom in various color models. If you use a lot of hexvalues, we would recommend using kuler desktop which has a button to copy all hexvalues to the clipboard. You can download kuler desktop here. (It requires Adobe AIR)
    Kuler Team

  • Color values shift from Illustrator to Photoshop

    Hi there:
    Hopefully someone has an answer for me (my apologies if this has been addressed before)?
    When  I open up a EPS file in Illustrator CS5, the blacks read !00% for RGB. When  exported as a JPG, Photoshop CS5 reads it as 0-0-0. So far so good. But  when copy and paste the same EPS into a Photoshop files, as a smart  object, the values change to 4-7-7. I've tried that with other colors,  and it seems the color values shift when using as a smart object. Any  ideas on why and how to remedy this?
    I will also post in the Photoshop forum as well...
    Thanks,
    Lisa

    So I also had someone else reply in the Photoshop forum about this. Apparently, I need to be using the Adobe RGB (1998) color space on both applications in order for the numbers to reflect the correct color values.
    Not sure why it wouldn't do so in other color spaces (I had mine initially set to sRGB on both apps), and I'll need to see if this runs into any issues on our end.
    If you have any more insight, I would love to hear it. But thanks for your help!
    Lisa

  • The document contains no posting lines with value other than zero

    Hi!
    We are having problems posting a invoice in MIRO. When entering the PO number we receive the error message "The document contains no posting lines with value other than zero".
    What could be the problem?
    /Anders

    Hi!
    The GR_BASEDIV is set in the PO. The PO is replicated from SRM where this flag has been set for no reason. Only GR and IV are set and we have implemented a note 1155266 so that Confirmation-Related IV will not be set.
    How come it is set anyway?
    Sincerely
    Anders

  • Loupe not displaying color values Aperture 3.4

    I've been having issues with the color value feature of the loupe disappearing although 'display color values' is checked.  It will stop working after I've been using it for a few hours without incident.  Sometimes fix itself if I quit Aperture, most of the time this doesn't work.  All of the loupe's other functions seem to work normally, even as the color data is not displaying.  I have the issue while tethering and while editing/reviewing.  I use the color value feature often, so it's pretty obnoxious. 
    Camera is compatable, and all my software is up-to-date.
    Thanks for your help!

    What is your MacOS X version? Your profile signature (PowerBook, Mac OS X (10.4.11)) cannot be right, if you are using Aperture 3.4.
    Testing with Aperture 3.4.3 on MacOS X the color values will vanish, when I do not use the "Use Centered Loupe" option. With the "Centered Loupe" the values will always be shown. How is your Loupe set?
    Regards
    Léonie

  • Please, can I with help of Javascript change spot color values? for example by my color VARNISH with c:0,m:10,y:15,k:0 to make change to c:0,m:0,y:0,k:0? thank you

    Please, can I with help of Javascript change specific spot color values? for example, I have color named VARNISH with values c:0,m:10,y:15,k:0 and it would help me to make change to c:0,m:0,y:0,k:0 as a part of an action. Is it possible? Thank you

    Hi Kon Verter,
    you can change the values of your spot swatch, but you have to check many things before.
    e.g. you can do something like this:
    var Vcolor = app.activeDocument.swatches.getByName("Varnish");
    if (Vcolor.color.spot.colorType == ColorModel.SPOT && Vcolor.color.spot.spotKind == SpotColorKind.SPOTCMYK) {
        alert("Black value before: "+Vcolor.color.spot.color.black);
        Vcolor.color.spot.color.black= 0; // and so on
        alert("Black value after: "+Vcolor.color.spot.color.black);
    This will change the black value of the cmyk spot color with name Varnish to 0
    Have fun

  • Consistent RGB Color Values with Photoshop CS4: An Impossibility??

    What I want is very simple: I want the Photoshop files I am working on and the rendered PNGs in my browser to have the same color values. I don't care if my web images look the same color on other screens or anything like that. All I want is for the screenshots of PNGs my web browser to match the color values I have used in Photoshop. I've had it up to here with color shiftsthis did not used to be an issue in CS3.
    Moreover, if I save a file on my Mac, and a color value is, say, #cf4640, I want someone who opens the file on a Windows box to get the same color value for that pixel. Ditto for the images I have saved for the webI want the RGB values to be consistent. This does not seem like too much to ask, does it?
    Right now, I have turned all color management policies set to Off, working spaces are all set to Generics, and documents are set to "Don't Color Manage"my Windows colleagues also have these same settings. This used to work as expected in CS3we all got the same color values on the same files, and colors didn't shift when viewed in a browser.
    Once again, I don't care if the colors *look* the same from platform to platform or screen to screen. I just want consistent RGB values.
    Color management has never caused me anything but headachesleave my colors alone, Photoshop! I really really wish there was a "Work Like Photoshop 4" setting for color management.
    Does anyone have any ideas how I might solve my problems?
    Thanks very much.
    Oh, and, incidentally, I was originally thinking of calling Adobe about this; how foolish of me. I looked into it, and can I just say how fantastic it is that you have to pay extra money for actual first-party tech support on a $700 piece of software?

    The sounds/language analogy isn't really relevant to this problem, because it suggests transforming between two entirely different media. One medium: the medium of sound information, to another entirely different medium: the medium of thoughts and meanings. That's something that simply can't be done without an intermediate translation. That's not the case with color transforms in the RGB space, where it's just a matter of taking RGB values and pushing them through a matrix to produce other RGB values. That's the process that messes everyone up and creates all the confusing color output, and frankly it's an unnecessary process. Your assertion that the values in a source image have no meaning without an associated profile isn't entirely true. What if those source values were simply pushed directly though to the display? After all, a display simply renders 8 bits of R, 8 bits of G, and 8 bits of B for each pixel.
    I think the original poster has some very valid concerns. Sometimes we just want to set some color values, and know that everybody's display, on every platform, will render those color values the same way. As he said, they may not look identical to the eye, but the values going through that DVI cable will be setting that pixel to the same 24-bit value no matter what. That's how things would be if there were no such thing as color management. That's how things used to be long ago, and in many ways the world of color was far more predictable and less confusing back then.
    Here's my vision for a perfect world: color management doesn't exist in the RGB space. None. No such thing. Source RGB values in images get pushed right through to the display. The onus is on the display manufacturers to produce hardware that renders those values as consistently as possible. In the world of print, sure- color management is incredibly useful. But if only we could go back in time and keep color profiles out of our RGB, I believe we'd be much better off today.

  • Incorrect number of color values Error

    Hi All,
    I am getting an error stating "Incorrect number of color values was given" in the following Indesign Script.
    var currentPage = myDocument.pages.item(0);
    var myColor = myDocument.colors.add();
    myColor.colorValue = [82,60,0,0];
    var recFrame = currentPage.rectangles.add();
    recFrame.fillColor = myColor;
    Am getting the above mentioned error when the third line is executed. Kindly help.
    Thanks in advance,
    Anitha

    MichaelKazlow wrote:
    Ask in the InDesign forum.
    Hi,MichaelKazlow!Thank you wharimucs desing forum!Shared:(hungary)http://www.paladin9.5mp.eu,www.mozillafirefox.5mp.eu
    Hi vegh abel, im hungary!good  bye!HI HI HI!Happy New year 2010!Adobe happpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppy+zip file
    Hi vegh abel Im hungary!Good bye!
    Message was edited by: Végh Ábel

Maybe you are looking for

  • Open CL, what is it all about, really?

    Hi there, I have a menagerie of macs, and currently I have two workstations for FCPS and FCPX (both are installed and working fine). But both are using unsupported graphics cards according to this KB: http://support.apple.com/kb/HT4664. I have the  A

  • My ipod is not reconised by itunes or my pc

    can anyone tell me why my ipod is not reconised by my pc or by itunes.  i have the ipod in restore mode but thats all that happens as im trying to restore it due to my kids put the wrong pin number in and now says it is locked for 22 million hours. i

  • Configuration of internal sales representative in ECC 6.0

    Hi Friends I want to configure the role of internal sales representative in ECC 6.0, kindly let me know the steps for the same Thanx in advance shailesh

  • Playlist order - i can only get it in alphabetical order

    when i set up itunes on my pc i can only get the playlist SONGS in alphabetical order, either descending or ascending. is there a way that i can place my individual playlist songs in any order i want? thanx

  • Newbie to Hibernate

    Hello, I am starting to use Hibernate and am working on some examples in order to see it working. I am now working on this one-to-many example that is raising exceptions that I am not beeing able to get rid of nor have I found anything clear enough,