Simon Says Bot - color change issue

Hi,
I'd like to create an app that can play the internet game Simon Says ...
I have a pretty good idea of the algorithm but lack some vital skills.
This is what i got so far...
package org.kodejava.example.awt;
import java.awt.Color;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.event.InputEvent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Bot {
     public static void main(String[] args) throws NumberFormatException,
               IOException, AWTException {
          InputStreamReader isr = new InputStreamReader(System.in);
          BufferedReader in = new BufferedReader(isr);
          Robot robot = new Robot();
          ArrayList<Integer> volgorde = new ArrayList<Integer>();
          // TODO Auto-generated method stub
          System.out.println("tot hoeveel wil je gaan?");
          int tot = Integer.parseInt(in.readLine());
          int o = 10;
          try {
               Thread.sleep(5000); // do nothing for 5000 miliseconds (5 second)
          } catch (InterruptedException e) {
               e.printStackTrace();
          // 515 - 360
          robot.mouseMove(515, 360);
          // Press the mouse button #1.
          robot.mousePress(InputEvent.BUTTON1_MASK);
          robot.mouseRelease(InputEvent.BUTTON1_MASK);
          System.out.println("1");
          try {
               Thread.sleep(2000); // do nothing for 5000 miliseconds (5 second)
          } catch (InterruptedException e) {
               e.printStackTrace();
          System.out.println("2");
          Color rood = robot.getPixelColor(480, 370); // 500-400
          Color blauw = robot.getPixelColor(480, 580); // 500-520
          Color geel = robot.getPixelColor(690, 580); // 670-520
          Color groen = robot.getPixelColor(690, 370); // 670-400
          for (int i = 1; i < tot + 1; i++) {
               System.out.println("test?");
               int a = 0;
               int b = 0;
               do {
                    System.out.println("Do While");
                    if (!(rood.getBlue() < (robot.getPixelColor(480, 370).getBlue() + o)
                              && rood.getBlue() > (robot.getPixelColor(480, 370)
                                        .getBlue() - o)
                              && rood.getGreen() < (robot.getPixelColor(480, 370)
                                        .getGreen() + o)
                              && rood.getGreen() > (robot.getPixelColor(480, 370)
                                        .getGreen() - o)
                              && rood.getRed() < (robot.getPixelColor(480, 370)
                                        .getRed() + o)
                              && rood.getRed() > (robot.getPixelColor(480, 370)
                                        .getRed() - o))) {
                         volgorde.add(1);// rood
                         b++;
                         a = 1;
                         System.out.println("rood");
                         try {
                              Thread.sleep(500); // do nothing for 5000 miliseconds (5 second)
                         } catch (InterruptedException e) {
                              e.printStackTrace();
                    if (!(groen.getBlue() < (robot.getPixelColor(690, 370).getBlue() + o)
                              && groen.getBlue() > (robot.getPixelColor(690, 370)
                                        .getBlue() - o)
                              && groen.getGreen() < (robot.getPixelColor(690, 370)
                                        .getGreen() + o)
                              && groen.getGreen() > (robot.getPixelColor(690, 370)
                                        .getGreen() - o)
                              && groen.getRed() < (robot.getPixelColor(690, 370)
                                        .getRed() + o)
                              && groen.getRed() > (robot.getPixelColor(690, 370)
                                        .getRed() - o)) && a != 1) {
                         volgorde.add(2);// groen
                         b++;
                         a = 1;
                         System.out.println("groen");
                         try {
                              Thread.sleep(500); // do nothing for 5000 miliseconds (5 second)
                         } catch (InterruptedException e) {
                              e.printStackTrace();
                    if (!(geel.getBlue() < (robot.getPixelColor(690, 580).getBlue() + o)
                              && geel.getBlue() > (robot.getPixelColor(690, 580)
                                        .getBlue() - o)
                              && geel.getGreen() < (robot.getPixelColor(690, 580)
                                        .getGreen() + o)
                              && geel.getGreen() > (robot.getPixelColor(690, 580)
                                        .getGreen() - o)
                              && geel.getRed() < (robot.getPixelColor(690, 580)
                                        .getRed() + o)
                              && geel.getRed() > (robot.getPixelColor(690, 580)
                                        .getRed() - o)) && a != 1) {
                         volgorde.add(3);// geel
                         b++;
                         a = 1;
                         System.out.println("geel");
                         try {
                              Thread.sleep(500); // do nothing for 5000 miliseconds (5 second)
                         } catch (InterruptedException e) {
                              e.printStackTrace();
                    if (!(blauw.getBlue() < (robot.getPixelColor(480, 580).getBlue() + o)
                              && blauw.getBlue() > (robot.getPixelColor(480, 580)
                                        .getBlue() - o)
                              && blauw.getGreen() < (robot.getPixelColor(480, 580)
                                        .getGreen() + o)
                              && blauw.getGreen() > (robot.getPixelColor(480, 580)
                                        .getGreen() - o)
                              && blauw.getRed() < (robot.getPixelColor(480, 580)
                                        .getRed() + o)
                              && blauw.getRed() > (robot.getPixelColor(480, 580)
                                        .getRed() - o)) && a != 1) {
                         volgorde.add(4);// blauw
                         b++;
                         a = 1;
                         System.out.println("blauw");
                         try {
                              Thread.sleep(500); // do nothing for 5000 miliseconds (5 second)
                         } catch (InterruptedException e) {
                              e.printStackTrace();
                    a = 0;
               } while (b < i);
               System.out.println("kleur verandering gevonde");
               for (int y = 0; y < i; y++) {
                    try {
                         Thread.sleep(1000); // do nothing for 1000 miliseconds (1
                         // second)
                    } catch (InterruptedException e) {
                         e.printStackTrace();
                    switch (volgorde.get(y)) {
                    case 1:
                         robot.mouseMove(500, 400);
                         robot.mousePress(InputEvent.BUTTON1_MASK);
                         robot.mouseRelease(InputEvent.BUTTON1_MASK);
                         System.out.println("rood click");
                         break;
                    case 2:
                         robot.mouseMove(670, 400);
                         robot.mousePress(InputEvent.BUTTON1_MASK);
                         robot.mouseRelease(InputEvent.BUTTON1_MASK);
                         System.out.println("groen click");
                         break;
                    case 3:
                         robot.mouseMove(670, 520);
                         robot.mousePress(InputEvent.BUTTON1_MASK);
                         robot.mouseRelease(InputEvent.BUTTON1_MASK);
                         System.out.println("geel click");
                         break;
                    case 4:
                         robot.mouseMove(500, 520);
                         robot.mousePress(InputEvent.BUTTON1_MASK);
                         robot.mouseRelease(InputEvent.BUTTON1_MASK);
                         System.out.println("blauw click");
                         break;
               }volgorde.clear();
               try {
                    Thread.sleep(400); // do nothing for 1000 miliseconds (1
                    // second)
               } catch (InterruptedException e) {
                    e.printStackTrace();
          try {
               Thread.sleep(400); // do nothing for 1000 miliseconds (1
               // second)
          } catch (InterruptedException e) {
               e.printStackTrace();
          robot.mousePress(InputEvent.BUTTON1_MASK); //press wrong button to ende game and save score ...
          robot.mouseRelease(InputEvent.BUTTON1_MASK);
          robot.mousePress(InputEvent.BUTTON1_MASK);
          robot.mouseRelease(InputEvent.BUTTON1_MASK);
          robot.mousePress(InputEvent.BUTTON1_MASK);
          robot.mouseRelease(InputEvent.BUTTON1_MASK);
}it can handle a sequence of about 9 clicks long ... after that it doesn't detected all the color changes correctly and therefor waits for another change wich doesn't come ...
is there anyway to speed up the change detection ? anyone know a faster algorithm than my 'do-while' function?
help would be appreciated.
Thnx in Advance,
a rookie with an idea.
Edited by: tooster on Sep 13, 2009 7:37 PM

This won't speed it up, but I suggest making your code a lot cleaner by making use of this class (I haven't tested it):
public class ColorRange {
   private Color min, max;
   public ColorRange(Color min, Color max) {
      this.min = min; this.max = max;
   public boolean contains(Color c) {
      return c.getGreen() >= min.getGreen() && c.getGreen() <= max.getGreen() &&
         c.getRed() >= min.getRed() && c.getRed() <= max.getRed() &&
         c.getBlue() >= min.getBlue() && c.getBlue() <= max.getBlue();
//...SNIP...
ColorRange blue, red, green, yellow; //initialize these
//...SNIP...
   if ( blue.contains(robot.getPixelColor(640,480) ) {Furthermore, I would introduce constants for your sample locations:
Point blueLoc = new Point(640, 480); //etcEdited by: endasil on 14-Sep-2009 10:21 AM

Similar Messages

  • Enter event  field color change issue

    I'm trying to make a script that will change the color of a field's content area when the user enters it (either through clicking or tabbing to the field). It seems simple enough to do, but I haven't been able to get it working.
    I downloaded the sample .pdf file that describes how to do this at: http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/FieldFillColor.pdf
    Push the button, the colors change. Seems to work fine, right? Except for the horrible, horrible period in the color definition, of course. Publishing a 2 line script with a bug as an EXAMPLE? For shame.
    But, when you move the code to the Enter event, the caption changes color, but the content area does not... until you LEAVE the text box, at which point it DOES change color. This doesn't make any sense to me. Is there something undocumented going on here that I don't know about, or is this just another bug?

    This won't speed it up, but I suggest making your code a lot cleaner by making use of this class (I haven't tested it):
    public class ColorRange {
       private Color min, max;
       public ColorRange(Color min, Color max) {
          this.min = min; this.max = max;
       public boolean contains(Color c) {
          return c.getGreen() >= min.getGreen() && c.getGreen() <= max.getGreen() &&
             c.getRed() >= min.getRed() && c.getRed() <= max.getRed() &&
             c.getBlue() >= min.getBlue() && c.getBlue() <= max.getBlue();
    //...SNIP...
    ColorRange blue, red, green, yellow; //initialize these
    //...SNIP...
       if ( blue.contains(robot.getPixelColor(640,480) ) {Furthermore, I would introduce constants for your sample locations:
    Point blueLoc = new Point(640, 480); //etcEdited by: endasil on 14-Sep-2009 10:21 AM

  • HP T790 color plot issues

    Very often while making color plots with our HP T790  plotter, the color will change on one single plot.  For instance, last week I was plotting some high quality aerial photos.  Starting out the plot was perfect and the color was great.  Then about half way through the plot, some of the colors changed.  On the aerial, the soil started out being exactly how it should have been, a nice brown.  Then it changed to pink.  
    I have also noticed the same thing on some AutoCAD plots.  A plant symbol started out green as it should be then turned to a bluish teal color.  
    Does anyone have any idea?  It almost seems like the plotter got tired during the plot as the color started out great then changed to something wrong.  
    Thanks!

    This forum is focused on consumer level products.  For the Designjet you may have better results posting in the HP DesignJet forum here, that is where the DesignJet experts can be found.
    It sounds to me that there is an issue with your yellow print.  There may be air in the ink supply lines or low on yellow ink.  Someone in the Desigjnet forum should be able to provide some specific troubleshooting steps.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Edit in PS, upload to the web. Colors changed??

    So I have an issue that I don't understand . It's probably something that I should know about but will ask .
    So I edited my picture in LR then I choose > Edit in Photoshop.
    All well. PS opens and I edit in PS. Then I save my image on my PC as a JPG.
    Then I want to upload it to a site certain site. And once the photo is uploaded the colors are all different.  Not sligtly but let's say I selected Old Polar as a preset . It will be like that in PS but on the web it looks like for example blue became closer to dark grey . Or other colors changed.
    When I edit first in LR . Save it to my computer . Then open it in PS it works fine. But I don't want to do that .
    What am I doing wrong ??
    Thanks for the help.

    Also check those Edit In preferences for color space. While in Photohsop check your color settings too*. Once there, if Edit In isn't providing sRGB, you can use the Convert to Profile command and select sRGB or use Save for Web. There are good reasons not to set the Edit In preferences for sRGB.
    *http://digitaldog.net/files/Photoshop_Color_Settings.mov

  • Color change when exported

    Using Lr4.1 on PC w/ win7pro laptop with external NEC multisync mmonitor-calibrated,  I've taken Raws made LR adjustments, then imported 3-10 images into photoshop layers for masking, merges, few if any color changes.  Then save as all layers as a psd, then flatten the psd and save as a tiff.  When I open in LR for any other minor tweaks, sharpening, dust spots, and do an export into SRGB or Adobe rgb, the colors are terrible.  Look nothing like what I see in LR.  I've heard people have minimal issues, but I am having major changes,  many times the collors will become dull and flat or very saturated when viewed.  As an architectural photographer I need these colors close to what I took.   If I edit in CR into PS I don't have this problem.  I assume its related to the prophoto RGB color changing, but I really don't know what's going on with the color space.  The color will appear different from my laptop monitor to the NEC by a lot which I understand a pro monitor will show more colors, but the color space shift is making a lot of work done in LR useless if I have to redo it all in CR.  How can I get LR to export the colors I see in LR into a srgb jpg and Adobe tiff?
    Thanks

    Lots of steps here:
    "Using Lr4.1 on PC w/ win7pro laptop with external NEC multisync mmonitor-calibrated,  I've taken Raws made LR adjustments, then imported 3-10 images into photoshop layers for masking, merges, few if any color changes."
    How do you get them into PS?  What do you mean by "imported 3-10 images into photoshop"?  Do you mean you use "Edit in.." from LR, and choose "Open as layers in Photoshop..."?
    "Then save as all layers as a psd, then flatten the psd and save as a tiff."
    How does it look in PS?
    "When I open in LR for any other minor tweaks, sharpening, dust spots"
    How do you open in LR?  The normal process, after "Edit in..." is that you save in PS, and the image is automatically stacked in LR against the original (or one of the originals, if you open several by "Open as layers in Photoshop...").  How does it look now?
    "and do an export into SRGB or Adobe rgb, the colors are terrible.  Look nothing like what I see in LR." 
    Only now they look terrible?  They looked OK in LR originally, OK in PS, OK when back in LR, but when you export they look bad - is that right?  And as Victoria says, how are you viewing the exported images? 
    "I assume its related to the prophoto RGB color changing, but I really don't know what's going on with the color space." 
    It certainly shouldn't be due to colour space changing.  The whole point of colour management is that it deals with this. 
    Final points:  you say your monitor is calibrated.  You do mean calibrated and profiled with a hardware instrument (Spyder, Colormunki etc)?
    And, color settings in Photoshop, they should look something like this:
    Choice of working space should be ProPhoto RGB, Adobe RGB or sRGB, but not a monitor or printer profile.  Policies should all be "Preserve" and I recommend all the "Ask When" boxed be checked (so you are warned of mismatches). 

  • I think I solved my time changing issues- hope this helps

    Hey everyone, I think I've had some success with my time changing issues. I originally posted this to another user as a follow up to her question, but I'm reposting it here. Hope it helps:
    "msteinny,
    So i went to the apple store to meet with an apple genius to ask him why my phone's time kept moving up 1 hour everytime I synced my phone. Well he said that he's never seen this problem before, and after a trying a reset and restore he let me exchange my phone. The problem is that when I went to sync my new phone the problem still persisted. They told me it was probably something to do with my computer and its time zone settings.
    So I get home and click on my computers clock in the bottom right hand corner to bring up the date and time properties and sure enought my time is correct, the date is correct and the time zone is correct (Eastern Daylight Time). So I look through the different tabs (Date & Time, Time Zone, Internet Time). The first thing I tried to do was to change where my computer syncs its internet time. It was originaly set on NIST time. I then switched it to Windows time, but this didn't do anything. My clock would still change when I synced to itunes. The next thing I tried was fideling around in the Time Zone tabs. I noticed that the box that says "Automatically adjust clock for daylight savings" was unchecked, so I checked it and my computer's time jumped an hour ahead. So I left the box checked but moved my clock one hour back (to the correct time), clicked on apply and left it at that. I synced my iPhone and voila! The time didn't change! It stayed on the correct time! To to make a long story short, make sure that you computer's clock is set on "automatically adjust clock for daylight savings changes, make sure your time zone is correct, and that the time is right when that box is checked. I hope this helps you. I'm glad I got a new phone out of the deal;)
    Chris P. "

    As I mentioned in my post, whenever I checked that box the time would be incorrect. It would move up an hour. I've messed with this along time ago, way before I got my iphone. I think this had something to do with the daylight savings change that was implemented this year or last year. I dont remember if I never tried correcting it before, or if I couldn't, but this time I didn't have any problems correcting it. Anyway, since I couldn't correct it back then, I just left the box uncheck and decided that I would change the time manually when the next time change occurs. But it seems to work fine now so all is well.

  • Colors changing on my calendar

    What is Apple doing about supporting its clients with information on fixing the problem of colors changing on iCal?
    Is this even on their radar?

    This is actually not about the colors changing.  The colors change but it's because the appointments are being assigned randomly (it seems) to another calender like, Home, Work, Birthday.  If you uncheck the calender it will cause the events to disappear.  Check the calender again and the events reappear.
    I don't know how the other calenders got turned on and how they linked to only some events.  If you click on Calender in the upper right you'll see what is checked.  try unchecking and see if your appointments disappear.  So for Apple, please correct this issue.

  • Outlook 2010 Calendar Category Colors Changing

    We have a user who is using Oulook 2010. He assings colors to calendar items he creates. When someone sends him a calendar appointment, he assigns it a color as well. Anywhere from immediately to about 5 minutes, the color changes on its own to a lighter
    version of the assigned color. For example, he assigns an appointment to red and it's changed to the lighter red color.
    His colors do not change when he creates appointments for himself. The colors do change when someone else sends him a calendar invite, from both inside and outside the organization.

    Hi,
    I have a few questions for you regarding your issue:
    1. Can you reproduce this issue with all of your users or just this one user?
    2. Does this happen with all colors (for example does blue change to light blue and so on)?
    3. When the color changes does the category change also?
    I look forward to your response.
    Regards,
    HARVEYY - MSFT

  • Looking for a better solution to the "Save for web" color shift issue

    Ok, everyone who has fussed much with photoshop and "Save For Web" knows about the color shift issue. If you want your colors to look right after you "save for web", you have to work in the sRGB colorspace, and have Proof Colors checked (soft proofing on) and the proof color setup set to Monitor RGB, otherwise what you get looks terrible when displayed in a browser.
    But of course if you are editing for print, this is exactly what you DON'T want to do. Well, I work in both. In fact, often the same images, and I want them to appear as close as reasonably possible in both print and web formats, and without a lot of fussing on my part. And I'm pickiest about the print mode, since I have the most control there, so that's the way I want to edit by default.
    Nothing new here.
    Now comes the interesting part (in my mind, anyway). Obviously there is a known remapping -- because PhotoShop DOES it when you select Proof Colors. So the inverse mapping must also be known (with some gamut issues, but I'm not concerned with those, because, after all, I'm VIEWING it on a monitor anyway!). What I want is a plug-in that automatically applies that inverse mapping so that, when I do a Save For Web, I end up with the colors I've been viewing all the time when setting the shot up in print mode. Then, too, I don't have to worry about what mode I'm in when I'm editing -- it just fixes it when doing a save-for-web.
    Again, I want to edit in my normal print mode (typically ProPhoto colorspace, and with soft-proofing off or set to the printer/medium combination I expect to use), then do a single operation (might be a multi-step action) to "screw up" my colors so that when I then do a "Save-For-Web", the resulting image, when viewed on the average color-stupid browser, looks like the image I've been seeing in Photoshop.
    Anyone know of such a beast?   I would gladly pay for a plug-in that really works and fixes the problem.
    And if you have other solutions, I'm interested, but the absolute requirement is that it I do one single edit pass for my colors for both print and web use, and I get what I see on the screen in PS on both the prints and on the web display (i.e., working in sRGB/Monitor RGB mode all the time won't cut it). And PREFERABLY, let me do all my editing work in the ProPhoto (or at least AdobeRGB) colorspace so I have a gamut closer to what the printer can do.
    Anyone got a decent solution for this?

    Chris
    I spent all day Googling and doing side by side comparisons of my old and new systems.
    My display is a Dell U2410. It has several presets, including sRGB and Adobe RGB. I've been using sRGB.
    On my OLD system, (Win XP, PsCS2, DwCS4) there seems to be no distinction between color managed and non color managed apps, even on this wide gamut display. I could capture (digital camera) in Adobe RGB, open and edit in PsCS2, save as .psd, convert to CMYK for print, or convert to sRGB for SFW. All images looked identical and they printed and displayed perfectly. I thought this was normal, and seemed logical. This also seems to be the source of my incorrect assumptions. I was trying to get my new machine to behave like my old one.
    So I get this new machine (Windows 7, PsCS5, DwCS5) and now (still in sRGB display mode) all color managed apps appear de-saturated. Non color managed apps are OK. If I switch the display to Adobe RGB, color managed apps are OK, but non color managed apps are way too saturated. From my investigation, I believe this is normal behavior on a wide gamut display. I've tried changing the Control Panel > Display > Screen Resolution > Advanced settings > Color Management options, but to no avail. Either I'm missing something, or Windows 7 is doing color management differently.
    It seems my only option now is to use Adobe RGB display setting for Ps, etc. and switch to sRGB for Dw and non color managed apps. Or, have 2 separate files for print and web. I've Googled 'til my eyes are numb and still not sure I'm getting this. Any enlightenment would be greatly appreciated.
    Finally, I don't see an edit function here, so I can't remove my previous incorrect reply. Moderator, please feel free to do so.
    Thanks

  • Color changes when creating PDF in Acrobat X Standard

    I'm printing to PDF from Word 2010 by using Acrobat X Standard.  Here are the two issues:
    I have overlaid two text boxes (different colors) on top of each other.  The overall image should be blue on top and bottom with tan in the middle.  When I print to PDF in Word, the PDF is perfect; however, when I print to the printer, the blue on the bottom changes to purple, while the blue on top is correct.  Again, this is the same blue text box, so I don't know why the color changes.
    Also, the tan is a darker shade than what the PDF shows.
    Is this a printer issue or PDF settings issue?
    I'm new to using Acrobat, so any step-by-step help is very much appreciated!
    Thank you.

    Create Adobe PDF is a (by default) a LOSSLESS operation where Acrobat processes the Word graphics data directly into PDF.   Printing is a LOSSY operation that first has Word convert Word->”printer spool”, then the printer driver (Adobe PDF) converts that “printer spool” into Postscript, and then Distiller converts the Postscript into PDF.   As you might imagine, you get MUCH higher quality and fidelity results from the former.
    Have you verified that you are using the same color management settings in the printer from both Word and Acrobat?  Is the Konica configured for Postscript, PCL, other?  There are SO MANY possible options that could be impacting your configuration…

  • Making a color changer in Flash?

    If anyone can help me. I'm trying to do something similar to
    this color selector.
    http://www.chevrolet.com/silverado/colors/
    Using simple code I can make the colors change, I just don't
    know how they made the "wipe" or any other transition for that
    matter when changing color.
    any ideas?

    "Mr_Interweb" <[email protected]> wrote in
    message news:e43qn9$obc$[email protected]..
    >I have no idea what's up with that loader. I tried it out
    on 6 different
    > computers today on windows and mac. It was working this
    afternoon. The only
    > thing I can find is that my loader is getting cached in
    IE when I cleared out
    > the cache things worked fine. If things are still fishy
    after a cache clear or
    > trying in out in Firefox, try skipping the preloader:
    >
    >
    http://ultimatewindowtinting.com/tinting-tool/tinter.swf
    >
    > The app will scale weird in the browser without the
    loader, but you can at
    > least see it.
    >
    > By the way, thank you for telling me about the errors
    you found with that
    > loader. It is the most bizarre issue I have ever seen.
    That's very interesting how you got that color selector to
    work. good one!
    I took a look at the code in your preloader. One thing that
    is not right is that you are looping back to frame 2 where the
    onEnterFrame is created. That means that you are creating
    another onEnterFrame with every loop, (or wrecking the original
    one).
    I found that if I put your file tinter.swf in my cache, then
    the preloader ended and the main file ran. If tinter.swf wasn't in
    the
    cache then the preloader just gets stuck.
    Seems like the loadMovieNum is failing.
    Anyway, instead of that you might want to do something like
    this to make sure that you don't initialize onEnterFrame more than
    one
    time..
    if(!initialized)
    initialized = true; // block this init code next time
    loadMovieNum("tinter.swf", 2);
    this.onEnterFrame = function () // add 'this' here
    ... etc
    tralfaz

  • Image Colors Change in Bridge Preview Window

    I edited some images first in Camera Raw and then Photoshop (CS5), all working in sRGB color space, and saved them as JPEGs.  If I select one of these images in the Bridge content pane, minimize the Bridge window, then maximize the Bridge window, the image appears correctly in the Bridge content pane but the colors are incorrect in the Bridge preview pane.  If I resize the view in the content pane, the image colors in the preview pane get corrected within a couple seconds.  Likewise, if I click on another image and then back, the image colors are correct in the preview pane, but if I again minimize then maximize the Bridge window, the image colors in the preview pane are incorrect again.
    Windows Explorer displays the image colors correctly.  ZoomBrowserEX (browser software provided with Canon camera) displays the same image (same file) with incorrect colors.  When I upload these JPEGs to my web photohosting site (PictureTrail), the images appear there with incorrect colors.  That is where this issue becomes most problematic because with the colors being off, the images are useless for posting to online forums or classifieds.
    It seems that the color in the JPEG is being read differently by different software, and is even being read differently under different circumstances within Photoshop (Bridge).  Is there a setting somewhere that I need to change?  Or some other issue?  Thanks.....

    I have a fair understanding of color profiles and color management.  My monitor is a Dell UltraSharp U3011 set to the factory-calibrated sRGB display mode.
    What makes me certain that this is not a simple matter of different color management in different applications is that Bridge is displaying the same JPEG file/image in two panes on the screen simultaneously and the colors do not match.  Furthermore, the incorrect colors in the preview pane image change to the correct colors if I resize the thumbnails in the content pane, or click on another image and then back; and the colors in the preview pane go back to incorrect if I minimize then maximize the Bridge window.  Seems to me that there must be something within that JPEG that is being interpreted differently in different circumstances that results in the "two versions" displayed within the same application (Bridge) on the same screen at the same time, and that other apps are interpreting one way or the other.
    Message was edited by: BoaMorph1
    Exploring a bit further, I've realized that the same color display issue exists with the original JPEGs from my camera (Canon T1i, shooting in sRGB color space).  So it seems the issue did not originate with settings etc. in Photoshop.... but Photoshop (Bridge) IS displaying "two versions" on same screen at same time, and so must be doing something different with the JPEG info in one pane vs. the other.

  • Text color changes when more than one color is used in the same paragraph in a bulleted list

    I work in a print shop on designers' files preparing them for print. Machine I use is an iMac, plenty of RAM, running Tiger 10.4. Here is my problem: A PC user sent us an InDesign CS3 file. A portion of the text is styled as a bulleted list with character color and bullet (the solid circle) defined as (default) black. However, the style is over-ridden on the bullet and first two words following the bullet with a spot color red, which is present in the Swatches palette (PMS 186). The remainder of the sentence stays black. The text somehow lost this override, and instead of keeping the 2 different colors all the text changed to black. This seems to have occurred when I saved the file on my machine. When I go back and open the original file the text is still colored both red and black. I think that the file was originally an InDesign CS2 file, and could even have been a Indd version 1 or Quark file. Why did the color change with no user intervention? Also, I can't understand why, when the first 2 words are highlighted and changed to red, the bullet also changes to red. (That is good, of course, because that is what we want, but I don't understand how that happens when the character style is black, and I can't even highlight the bullet itself). I sure would appreciate any ideas anyone has on this, I have to try to explain why we printed the text in black when it was supposed to be red and black!

    thanks Alan and Bob. Nothing has explained the loss of color so far.
    Alan, I will suggest to the designer that she use a nested style. I wonder if that will make the styling more stable moving accross the different platforms.
    Bob, I feel like you may have thought, as I did, that hundreds of saves and saved-as and many different applications would have damaged the file, but as you could see by the History, the file was fairly fresh.
    There is a very outside chance that I wiped out the style overides by command click but I am really careful and I doubt it.
    So I'll thank you both again and check back each day, perhaps this will happen to someone else and become an issue. I have tried to repeat my actions and cause the error again but to no avail.

  • Colors changes on screen

    OK guys I have a question? I just started to notice that I every time I press the menu key or even the a  green phone key there are waves of color on the screen. Its almost like putting your finger on a plasma screen and watching the colors change.
    but it only wants to do it when on certain times, not all the time!
    what can I do to prevent from a major problem?

    sounds like it could be a display issue
    try removing the battery with power on and then replace... wait for reboot
    >>>>>>>>>>>>>>>>>>>>>>>>~
    Hope I was able to help
    If you have received information that has helped you out, please give them Kudos.
    If your problem has been solved, please click on the post that resolved the issue

  • Camera Raw 4.6 Color Conversion Issues

    I'm using CS3. In the Camera Raw 4.6 import window the color looks great. When I get the image into Photoshop the color looks horrible. I know it's the color profile that Raw is assigning. My question... is there a way to disable the color profile conversion coming from Camera Raw?
    I've always had great results without using profiles and now this alters my color. I've even tried to go in and force the image to use a different color profile but at this point the damage has been done by the camera raw plugin.

    "I've been doing professional color correction for about 15 years and know how to use the programs without the use of color profiles."
    You're always using profiles no matter what, both a source and and destination for everything from your monitor to working RGB, CMYK and Lab to output profiles for proofing and print.
    You need good profiles to define the hardware devices and color spaces. Without them, it's all only a guess.
    "When I say "great color", I mean to say Photoshop doesn't adjust my color with profiles because I have profiles disabled."
    There's not really a way to disable profiles in Photoshop. You can sort of turn them off, but the default profiles in your Color Settings dialog are still in effect no matter what. In fact, you can't even display in image in RGB or CMYK without at least two profile, and more often three.
    Just having profile in the loop doesn't mean that Photoshop will "adjust" your colors. Photoshop will only do what you tell it to do.
    "My monitor is corrected and I have no need to use profiles since I understand UCR & GCR conversion for printing."
    You monitor is corrected? How? Have you calibrated it? After the calibration Photoshop needs, you guessed it, a monitor profile, in order to properly display your images. And how to you get from the RGB of your digital captures to the CMYK you need for offset? Yeah. Profiles. Even if you're using the archaic and outdated Custom CMYK to set your total ink and black generation, you are still in effect, using profiles. You are using the parameters defined there in the same way custom measurement are used in ProfileMaker to generate a custom ICC profile. It's just not as accurate.
    "Also, when I have something printed somewhere I have them disable their profiles to provide true color. And I also force acrobat to use my color maps when building pdfs so my printer has no need for conversion of any kind."
    How you do know you've made the right conversion for that printer. Most printer just ignore embedded profiles anyway, but including proper output profiles can enable them to display the files correctly on their calibrated screens, and for the more advanced printers, that embedded profile can allow them to use Device Link Profiles to convert your files to custom press or proofing profiles.
    "My complaint was that the Camera Raw Plug-in forces me to convert to a profile with 4 possible choices. I was asking if there is a way to disable this?"
    It's actually a choice of four different profiles not a profile with four choices. The choices are based on color gamut and gamma in order of increased gamut. There is no way to disable them. What would you put in their place? There are raw converters that will let you convert the raw data to any color space on output, including CMYK. Maybe that would be more appropriate for you. CaptureOne and Raw Developer are the two that come to mind, but they all use profiles.
    Hell, even in the golden age of the drum scanner, scanners like the Hell 3010 without even being able to see an image on screen, used profiles, only they called them by a different name - lookup tables. Lookup tables for scanner input and characteristic lookup tables for the analog proofing system the house used.
    "I found if I convert using the Adobe 1998 profile the color comes out close, I simply have to increase the saturation to return to the original optical image values. I would however like to bypass this step."
    It sounds to me like you need to spend a few weeks getting up to date with the tools that are available now. Between hardware monitor calibration and custom CMYK output profiles that take into account different ink limits and black generation, you're missing out on a boatload of fun.
    A lot of things have changed in prepress in the last fifteen years not the least of which is that little number called Direct to Plate. Since everone has gone DTP, the one thing that has gone by the wayside are any kind of overall proofing standards. Where you used to be able to send the same file to ten different printers and get back proofs that were extremely close, now they're all over the map. The only way to effectively deal with this is with custom profiles for the high end digital proofers that printers use today.
    Sure, you still need to take into account the specifics of total ink, highlight and shadow values, but you simply can't rely on the positively ancient ink definitions in Custom CMYK to work very well for any of today's output. Unless, of course, you and your clients don't mind going through rounds and rounds of proofs.

Maybe you are looking for

  • Bootcamp upgrade Win 7 Pro 64 to Win 8 fails

    I'm trying to upgrade Win 7 to Win 8. Install goes to 90% then message -"your computer will reboot in  a few moments" then a few minutes later message "install failed" and it rolls back to Win7. This is on an early 2012 17" Macbook Pro I7 2.4 running

  • Are my iTunes forsaken?

    Hey there. Six months or so ago, I plugged in my iPod to my PC, and just then my USB ports caught fire. After the smoke cleared, my USB ports were now defunct. A few months later, yesterday in fact, I bought a MacBookPro. Now I want all my iTunes fro

  • Error in giving variable in ora:readFile() Xpath function

    Hi, I have a requirement like i need to give a variable name in ora:readFile() Xpath function. Below is the method in which i am trying. but i am getting error ora:readFile('file:////home/casdevro/tbm/archive/bpws:getVariableData('inputFile')') Error

  • MouseMove problem in JPanel

    Hello I am writing an applet and I am calling a class which extends JPanel. In the JPanel I am trying to create a rectangle (fillRect) which than I will be able to move using the method mouseMove(). I have been able to draw the rectangle on the panel

  • Firefox opens my homepage AND a new tab on start-up. Help

    When I open Firefox, it opens my homepage (Google) and a new tab. How do I get it to just open my home page?