NEED HELP in color tone (bright/dark)

i have a database that have data ranges from -5 to 5, where -5 is bright green, 0 is black and 5 is bright red. so from this you know as the value goes nearer to 0 the color will go darker but somehow i do not know how to implement it into a graphic example: g2.fill(new Rectangle2D.Double(iRow[co]*4, iCol[co]*4, 30, 30)); using graphic 2d.
So does anyone have know the way or have any algoritm or any possible help that is near to my problem or whatever as i'm desperate in this... Thanks!

Ok so i know that (255,0,0) is red, (0,255,0) is green and (0,0,0) is black.
As i'm poor in math so are there anyone that can think of the algorithm on how to implement a 5.0000 which is (255,0,0), -5.0000 which is (0,255,0) and 0.0000 which is (0,0,0) so that i can base on the database value which is a 4 dec places value where they are shown above to generate the right color out in the right tone. Will appreciate any help possible thanks!
|--------------------------------|--------------------------------|
-5.0000 0.0000 5.0000
(Bright green) darker----> (black) <----darker (Bright red)

Similar Messages

  • I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    Additionally I have no idea what you are saying here
    I have found the color palettes but can't seem to incorporate them into my backgrounds palette.
    And it always helps for you to dientify the version of iPhoto that you are using
    LN

  • Need help separating colors in a photo for screen print

    Hey guys, I'm relatively new to Photoshop but I know most of the basics. I have a design here that a band would like to print on a shirt in 2-3 colors: black, grey, and white. Technically I only need the grey and white because it is being printed on a black shirt. I need to first convert it to black/grey/white, then I need to separate the colors into layers, but I'm just not sure the correct way to do so. Could someone please help me with this? I would greatly appreciate it. Here is the design: http://i50.tinypic.com/dpk8r9.jpg

    Your image is at 72ppi. Which is not recommended for print.
    Anyway, coming to your actual question, this is a mixture of color tones across the image - not just one place.
    If you're looking at printing it in 3 shades, why don't you consider making the image 'Greyscale' in Photoshop?
    Another suggestion would be to talk to the printer who is going to print this to a t-shirt and explore possibilities.
    -ST

  • Need help with Color Matrix Filter.

    need help. still can't find the answer. thanks in advance!

    Darin.K wrote:
    Yes there are two bugs, I found the other one first but figured if you fixed the result the other would be obvious.  This is homework so only a hint:
    look at what happens (and does not happen) to pixel. 
    the first bug was that i had to use the 'result[][]' array instead of the 'image[][]' array in my last loop, right?
    the 2nd bug I really can't find :s been lookin at it for almost an hour now and trying new stuff but nothing works, 
    first i thought i had to put this line " result[x][y] = min(max(int((factor2 * pixel) + bias2), 0), 255);"  inside the for loop above but that didn't fix my problem,
    maybe the problem is in my 'imageX' and 'imageY' variable, i don't know? any more tips?
    I'm sorry for being such a newb but programming isn't my strongest quality.
    cedhoc wrote:
    Just one more advice:
    Look at the format of the "image" array. The way how to use the values from this array depends on the "image depth" parameter. 
    In your case, because the image is 8bit, you need to use the "colors" array containing the real RGB value.
    Look at the Help for the "Read BMP File VI", you should be able to properly handle your pixels from there.
     thanks for pointing that out for me, so I connect the 'totalpix' array with the 'colors' array from the image data instead of the 'image' array, that's correct right?

  • Need help with color management

    I am looking for someone to help me.  Please!
    I am looking for help with Photoshop/printer not printing correct colors.
    I have: Windows 7, Photoshop CS5, Photoshop Elements, HP Pavillion Laptop, new Okidata C530dn color laser printer
    Previously I had a Canon Pixma MP620 and a gentleman from another forum gave me the correct settings for printing on photo paper and colors were perfect.  I now have a OKIdata C530dn color laser and have started a business printing business cards and greeting cards, etc., and I do advertisements on a freelance basis.
    I will be working a lot with cardstock or cover stock 65-110 lbs paper.  I have an old OKIdata 2024e at work, and the colors are much better with that printer than my new personal one.  I have tried matching the settings of that printer to mine to no avail.  I have finally gotten the color close, but not quite.  When I print on my Canon injet the colors match and print perfectly.
    I have tried every setting variation that I can think of to get the color correct with my new OKIdata.  I have to get the colors correct or my new business will go under because I can't match colors for my customers.  I am a self taught Photoshoper and a novice so please bear with me.
    Using Okidata PCL.  Also have PS
    Color settings in Photoshop:
    North America General Purpose 2
    sRGB 2.1
    U.S. Web Coated Swop v2
    Dot gain 20 %
    Dot gain 20 %
    Preserve embeded profile
    Preserve embeded profile
    Preserve embeded profile
    engine: Adobe (ACE)
    Relative Colormetric
    Tried RGB color mode and CMYK color mode, no difference
    Printer settings:
    Photoshop manages colors
    sRGB 2.1 Printer profile
    Relative Colormetric
    Print setup:
    Letter
    Multipurpose tray
    Weight: printer settings-default  (when I used heavy setting for cardstock it printed green instead of the color light blue, so that was a start to the right color)
    Job Options:
    Hight Quality
    Color: No color matching
    Printer preferences in Printer properties:
    Color management
    Device: Display 1 generic PnP monitor AMD M88og with ATI Mobility Radeon HD4200
    ICC Profiles: Generic PnP Monitor (default)
    Advanced:
    Windows Color System Defaults:
    everything under this tab is set at System Default
    I have gotten the color close, but colors are dull. I have tried an adjustment layer and setting the saturation higher, but that doesn't help.  I know my laptop is showing the right colors, (calibrated) because I am still printing to the Canon with cardstock and the colors are perfect using the same settings above.
    Tried printing in PSE and it gave me an error that it was not a post script printer.  Installed ps driver, still getting errors and it wouldn't print.
    I would appreciate any help you could give me before I run out of toner and have to buy the expensive toners, or just slit my wrists j/k  LOL
    Thanks!  JS

    You need an ICC profile for your printer.  Chromix has an excellent service at http://www2.chromix.com/colorvalet/ which will do this calibration for you.  You download some software they provide, then print a test file on the exact same paper you are using for your cards.  Then send the output to them and they will calibrate the colors with their equipment and send you the ICC profile file.  Once you have it, you'll be able to print accurate colors.
    There are other services out there that may cost less, but I do not know how reputable they are.  Chromix is a good business I've worked with many times.
    If you are trying to run a business and you don't understand color management yet, you may be in for a lot of trouble.  Please get the book "Real World Color Management" available at http://www.colorremedies.com/realworldcolor/ and it will save you a ton of money and headaches.

  • Need help with colors in iOS 7

    The whites of the OS are simply overpowering.  If I don't turn the brightness down to less than 15%, I get headaches from the whites.  But if I turn it down that low then I have to strain to make out everything else on the screen, which give me a different kind of headache. Searching for any relief, I even tried Invert Colors.  That helps greatly, but it inverts the colors in everything, not just the base OS.
    Is there any way at all to control the colors of the OS elements themselves?  Just being able to tone down the whites might allow me to use my iPad again. For that matter, can I simply roll back to iOS 6 and solve my vision problems that way?

    no to all.

  • Needing Help with color setting for Photoshop 4 + imac

    Hi, Is anyone able to assist me please.  To cut a long story short.  i have had to reinstall my original software onto my Imac as when i put on Snow leopard it was just slowing down Photoshop 4 and would keep crashing.  So my problem is .... I had some prints printed today at Fuji and the prints have come back dark and just not up to scratch.  I know that it is not Fuji, but my settings.  I had someone set up my imac and Photoshop last time, but this time i will have to do myself and i just don't know what to set them at. Can anyone help please.  Not sure if you need this info but i am in New Zealand.  many thanks in advance.

    Being in the business of printing other people's image files, I can say without any doubt that the advent of digital image processing has definitely muddied the waters to a much greater extent than was the case when printing negaive film.  I'm also a shooter, and have been using such programs for many years, so I can understand the desire to manipulate your files before sending them to the lab. Color negatives never had "Profiles" attached to them.  If the proper film was used for the lighting conditions, it was simply up to the lab to make sure the resulting print was in balance, both in color and density.  It was also the lab's responsibility to maintain a degree of quality control that would make all of the above possible and repeatable.  I have to agree with the other response to your question.  Whether or not you have an embidded a profile, it's always the job of the printer to make sure the final print is up to a certain standard of quality.  If that is not the case, find another printer.  Unless you have indicated that your files should be printed without any corrections, the oweness belongs to the lab/printer.  I do have a few customers whose work I can print with very few corrections, due to the fact that they have calibrated their displays and have a very tight workflow.  However, the vast majority of files that I print require a considerable degree of correction, that's my job.  It's also the job of your lab/printer and if they are nor satisfying your needs you have to find someone who does.  I have printed many files that have no profile embidded and I simply convert them to my working color space(Adobe RGB 1998).  If you are concerned about doing color settings, this is the obvious place to start.  Create a custom space and make sure your working color is set to Adobe RGB 1998, not sRGB.  Adobe RGB 1998 is a considerably larger color space with a wider gamut and will allow for more choices and a wider range when it comes to processing the image.  Pro Photo RGB is an even larger color space, but one that is seldom used at this time.  I suspect it will become more popular in the fairly near future, as other technologies continue to push the color gamut envelope.
    So, I guess the gist of all of this is that you need to either have your lab/printer redo the dark prints, or find someone who knows how to print.  And equally important, someone who cares about your work as much as yo do.
    I am attaching a screen shot of my color settings and I would suggest this might be a good place to start.
    Gary

  • I know this is a common thing, but i need help with half tones

    This is the problem I have . I am trying to make half tones for screen printing so i need to make solid color halftones to cut down on colors( for example doing a 50% black half tone instead of making a new screen for gray).
    I get how to make halftone gradients and rasterize for illustrator, and using the halftone swatches would work if they had them in higher dpi.
    Can someone help me out?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    I am trying to make half tones for screen printing so i need to make solid color halftones to cut down on colors( for example doing a 50% black half tone instead of making a new screen for gray).
    Just fill your gray objects with a 50% tint of the spot color you are printing. In the Print dialog, specify the halftone screen ruling.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    I get how to make halftone gradients and rasterize for illustrator, and using the halftone swatches would work if they had them in higher dpi.
    Assuming you are printing to a PostScript device, you can print as color separations and specify the halftone ruling, angle, and shape for each ink in the Print dialog. You don't have to use any kind of fake halftone such as Pattern Swatch fills.
    JET

  • Need help adjusting colors in  Photoshop (CS2)

    I'm not a neither a novice nor a pro when it comes to Photoshop. (Just somewhere in-between) . . . So don't understand why  I''m suddenly having problems with colors in my photos looking accurate  on my canera, but almsot  completely red and yellow in Photoshop. Initially though the camera was at fault, until I switched cameras  and still had the same problem, so figured itmust be  Photoshop.
    Since  Photoshop CS2 has all the features I need,  I've never bothered to upgrade. . . which turned out to be a problem when I tried to follow the instructions for creating  new adjustment layers. (Was OK until I reached the last step, when  my menus were different than  those in the guide.) Have spent  most of the last 2 days trying to manipulate all the options  under the Image Adjustment menu, but am running our of patience and luck.
    The problem seems to have been increasing in recent  weeks (or months), but this is the first time I've been absolutely stumped and unable to  come up with a usable solution.

    Thanks. But it looks like in all my frustration, I wasn't  sure  my original call for help had posted, so must have  submitted the same question again.
    But I just had a new thought on the problem. While reviewing a story I received from another website,  I noticed that the photos attached to the article  looked  a lot like  what I described  in my  message. It made me wonder if I have a software problem at all . . . or if it's the screen on my Mac that needs recalibration!
    It only took 2 minutes to find a website that discussed it — with sample screens to help determine if that was what I'm dealing with. Since a screen supposedly showing a mix of numbered, grey boxes looked totally white to me and I could only see the white numbers on a screen that supposedly contained boxes in varying shades of black, I think I might be on the right track. Just not sure, since I had to reach the bottom of the page before spotting the pitch for a product that supposedly will recalibrate  for me. I'm not sure I want to tackle recalibration on my own, but may call the Mac Geniuses at our local mall  and see  if my hunch is right . . .and if so, what they would charge to do it for me.
    BTW, if it sounds like a calibration problem, do you think moving my computer  from one desk top another (just 5 feet away) could have caused it? I'm not sure, since it wasn't on my mind at the time, but I think that's roughly when I first started to notice discrepancies in color.

  • Need help with color depth on Ultra 5 (solaris 8)

    I have always run Solaris on older equipment, and now I have a machine which is "new" to me, an Ultra 5. xdpyinfo tells me that this machine can do 24bpp color, but so far I haven't been able to figure out how to get the X server to come up in 24-bit mode. (Yes I rtfm'ed but I haven't found it yet.)
    Since this is a used machine, I only have the Solaris cdroms, etc. (this is for 2.8 beta-01/01, btw), but not the simple docs which came with it. I didn't find it (surprizingly) in answerbook.
    Please help if you know how to solve this one. Thanks

    Hi, <br><br>
    There's two things you have to do.<br>
    First, you need to use the frame buffer configuration utility<br>
    called fbconfig to configure the video card.<br><br>
    Then, you need to copy /usr/dt/config/Xservers in <br>
    /etc/dt/config/Xservers and edit the file to tell the X<br>
    server what color depth to use.<br><br>
    For example my copy of the Xservers file, configured for<br>
    a standard 8-bit frame buffer on /dev/fb1 and a 24-bit frame<br>
    buffer on /dev/fb0, contains the following line:<br>
    <pre>
    :0 Local local_uid@console root /usr/openwin/bin/Xsun -core -logo -dev /dev/fb0 defdepth 24 -dev /dev/fb1 left
    </pre>
    Be sure to check the man pages for fbconfig(1M) and Xsun(1).<br><br>
    Hope this helps.<br>
    <br>
    Caryl Takvorian<br>
    Sun Developer Technical Support

  • Need HELP setting colors in GUI

    hi iam trying to write a program that allows you to check the color red green or blue once you selected your color and click the button i created its suppose to display the color what i have done so far gives a problem i think its simple but i just cant seem to find it thats why its so frustrating but when i select a color and press show it only gives me black regardless of what color is choosen if anyone can take a look at my code and give me some kind of feedback that would be great thanks
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.io.*;
    public class colorFrame extends JFrame
         implements ActionListener{
              //check boxes
              private JCheckBox jRed = new JCheckBox("RED");
              private JCheckBox jGreen = new JCheckBox("GREEN");
              private JCheckBox jBlue = new JCheckBox("BLUE");
              //Radio buttons
              private JRadioButton jLight = new JRadioButton("Light");
              private JRadioButton jNormal = new JRadioButton("Normal");
              private JRadioButton jDark  = new JRadioButton("Dark");
              //Buttons     
              private JButton  jShow = new JButton("Show");
              //Display area
              private JPanel JColor = new JPanel();
              float blue, green, red;
         //Main Method
         public static void main(String[] args){
              colorFrame frame = new colorFrame();
              frame.setTitle("Color Frame");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(600,400);
              frame.setVisible(true);
         public colorFrame(){
              //get the content pane of the frame
              Container container = getContentPane();
              //set flowlayout
              container.setLayout(new BorderLayout());
              //create panel check set grid
              JPanel check = new JPanel();
              check.setLayout(new GridLayout(1,3)) ;
              //add check boxes
              check.add(jRed);
              check.add(jGreen);
              check.add(jBlue);
              //Create panel radio set grid
              JPanel radio = new JPanel();
              radio.setLayout (new GridLayout(1,3));
              //Add radio buttons
              radio.add(jLight);
              radio.add(jNormal);
              radio.add(jDark);
              //Create panel button
              JPanel button = new JPanel();
              button.setLayout (new GridLayout());
              //add button
              button.add(jShow);
              //Create panel to show color
              JColor.setLayout (new GridLayout());
              Dimension d = new Dimension(400,300);
              JColor.setPreferredSize(d);
              //Test panel
              JPanel p5 = new JPanel();
              p5.setLayout (new GridLayout(2,3));
              //add registers
              jShow.addActionListener(this);
              jRed.addActionListener(this);
              jBlue.addActionListener(this);
              jGreen.addActionListener(this);
              jNormal.addActionListener(this);
              jDark.addActionListener(this);
              jLight.addActionListener(this);
              //add panels
              p5.add (check, BorderLayout.SOUTH);
              p5.add (radio, BorderLayout.SOUTH);
              //p5.add(button, BorderLayout.EAST);
              //Add panels to frame
              //container.add(check,  BorderLayout.SOUTH);
              //container.add(radio, BorderLayout.SOUTH);
              container.add(button, BorderLayout.EAST);
              container.add(JColor, BorderLayout.NORTH);
              container.add(p5, BorderLayout.SOUTH);
         public void actionPerformed(ActionEvent e) {
              if(e.getSource() == jShow){
                   if (e.getSource() == jRed){
                   jRed.isSelected();
                        red = 1.0f;
                        green = 0.0f;
                        blue = 0.0f;
                   if (e.getSource() == jGreen){
                        jBlue.isSelected();
                        red = 0.0f;
                        green = 1.0f;
                        blue = 0.0f;
                   if (e.getSource() == jBlue){
                        jBlue.isSelected();
                        red = 0.0f;
                        green = 0.0f;
                        blue = 1.0f;
                             Color newColor = new Color(red, green, blue);
                        JColor.setBackground(newColor);                                     
         }

    Okay here's some feedback first of all your
    explanation of what you are trying to do and what
    happens is hardly readable because you don't use
    sentences and people will prolly just skim over it
    just for that reason and right they are to continue
    you should be congratulated for using code tags that
    does help a lot now your code would be a lot more
    readable if you followed standard conventions like
    not starting class names with lowercase and not
    starting variable names like fields with an uppercase
    such as JColor and finally you should not have your
    frame be its own actionlistener you should create a
    separate (anonymous inner class) instance of a
    listener for each component when you have done all
    this (and your problem isn't fixed yet) please come
    back you're welcome.well im sorry u had a hard time reading it next time i will type slower for you OK i asked for help not your stupid comments and i would like to say thank you KAJ moving the ifs out worked thank you

  • Need Help: Changing Colors in Template for Flyer

    I am trying to create a flyer from a template. I chose a template that has a colored border, but want to change the colors....I cannot figure out how to?
    Also,
    How to change the background color on a template too?
    Thanks so much for the help!!!
    PS: I am using the iWork, Pages...for this

    Hi Streater
    Welcome to the forum.
    There are 3 possiblilities:
    *1. It is locked* and shows small grey crosses on the corners
    +Menu > Arrange > Unlock ( option command l)+
    *2. It is grouped*
    +Menu > Arrange > Ungroup ( option shift command g)+
    *3. It is a scan or pdf*
    +Inspector > Metrics > File Info+
    Need to edit it outside Pages in a graphics program.
    If you can get at the object the colors and strokes etc are at:
    +Inspector > Graphic > Fill / Stroke+
    Double click any color fields to get the color picker.
    Peter

  • Newbie needs help with color profiles

    somewhat new to digital photography and send most of my stuff to local lab (Costco) when needing to print. I have a mac, with Leopard, and use Lightroom to export to jpgs and upload to the lab site.
    Simple enough, but I noticed their site had the icc's available to download. My intent is for lightroom to rendor and export the photos the way their lab will print them.
    Why bother to really develop the picture to my liking if it is just going to print differently.
    I dont use PS and not sure how I can, if at all, utilize the color profiles the lab provides in LR.
    Sorry if I am not making sense, any and all help is appreciated from you really smart people:)
    Thanks

    See http://lagemaat.blogspot.com/2007/12/mildly-lightroom-workflow-for-printing.html
    You can now also use the
    LR/mogrify plugin to convert to any profile you want. Much quicker than the photoshop route.
    Note that there is no reason to do this if you do not hardware calibrate your monitor. Otherwise sending them sRGB is more than good enough. On a Mac, make absolutely sure that you at least software calibrate your monitor. See http://www.computer-darkroom.com/colorsync-display/colorsync_1.htm
    Doing this will already improve it quite a bit, but there is no substitute for hardware calibration.

  • Need help with color managment addon

    I am using Firefox under Fedora 14 Linux. I added the color management addon and told it which profile to use. But I am having some trouble telling if it is working. One problem is that when I use firefox to open an image file on my machine, it gives me the choice of using Image Viewer or Other. Image viewer is Eye Of Gbnome, which doesn't make use of my monitor profile, and I can't think of a convenient other program to use which does use the monitor profile.
    Is there some way to get firefox to view the image directly.
    I presume when I view images at a distant website, the color managment add-on is inter posing my monitor profile, but I am not sure about that. Is ther e some way to check it?

    You need an ICC profile for your printer.  Chromix has an excellent service at http://www2.chromix.com/colorvalet/ which will do this calibration for you.  You download some software they provide, then print a test file on the exact same paper you are using for your cards.  Then send the output to them and they will calibrate the colors with their equipment and send you the ICC profile file.  Once you have it, you'll be able to print accurate colors.
    There are other services out there that may cost less, but I do not know how reputable they are.  Chromix is a good business I've worked with many times.
    If you are trying to run a business and you don't understand color management yet, you may be in for a lot of trouble.  Please get the book "Real World Color Management" available at http://www.colorremedies.com/realworldcolor/ and it will save you a ton of money and headaches.

  • Need help with color tints not finding t-slider can you help?

    can someone help i'm going bonkers trying to get the tints and colors working
    i checked the online help on how to make a color tint.
    but the solution tells me if i don't have the "t-slider" make sure the color is checked
    as global then go to show options
    but this is not helping. i still don't see what i need to make a tint.
    i really wish the way to make this work was more like indesign.
    please help.
    thank you
    Message was edited by: [email protected]

    You need to make the color a swatch first. Then double click the swatch and check the Global box.

Maybe you are looking for

  • How to look at the SQL trace in Oracle

    Hi, How do we look for the SQL trace in Oracle? With SQL trace I mean all the SQL statements being executed in Oracle database ( including select ). Thanks........

  • Keyword filtering Bridge 2.1

    I migrated from Elements to Bridge and found a difference in the way Bridge filters keywords compared to Elements. Example: I have 3 images with assigned keywords: image1 (keyword1), image2 (keyword2), image3 (keyword1, keyword2). If I check keyword1

  • Sharing Cinema display with a PC

    Is there a way to share (via a swith box) my 20" cinema display with a PC. I know that there are DVI switchers but do they support the fact that the MAC display is powered through the connector interface aand that the firewire and usb is on the same

  • Reader 10.0.1

    Where can I obtain a copy of reader version 10.0.1? Thanks Stephanie

  • Please please help. I need to get this code working ASAp

    hi! right, I am a java dunce. I am doing a web design degree at uni and annoyingly have to take a programming module. I just don't get it one bit and the lecturer is a sadist and won't help. I have tried countless books and what not but it all goes o