About 52 results
Open links in new tab
  1. How to add RGB values into setColor() in Java? - Stack Overflow

    How to add RGB values into setColor () in Java? Asked 8 years, 10 months ago Modified 4 years, 7 months ago Viewed 176k times

  2. How to print color in console using System.out.println?

    How can I print color in console? I want to show data in colors when the processor sends data and in different colors when it receives data.

  3. awt - Color Class in Java - Stack Overflow

    I have a question regarding the awt Color class in Java. I am currently using the class abbreviations such as Color.RED and Color.BLACK. I also have a list of three integers such as the following:...

  4. Color[] col= {Color.RED,Color.BLUE}; what does it means in java?

    Oct 14, 2016 · I'm reading java swing and i'm having problem in understanding it. Is Color a class? Color[] col= {Color.RED,Color.BLUE}; What does it means in java?

  5. java - Generating spectrum color palettes - Stack Overflow

    Mar 9, 2016 · Is there an easy way to convert between color models in Java (RGB, HSV and Lab). Assuming RGB color model: How do I calculate black body spectrum color palette? I want to use it …

  6. How do I set the colour of a label (coloured text) in Java?

    Jun 3, 2010 · 0 myLabel.setForeground(new java.awt.Color(255, 0, 0)); while numbers between brackets describe the combination of the Red,Green,Blue color values, the higher value produces a …

  7. java - How to color a pixel? - Stack Overflow

    34 The class java.awt.BufferedImage has a method setRGB(int x, int y, int rgb) which sets the color of an individual pixel. Additionally, you might want to look at java.awt.Color, especially its getRGB() …

  8. java - Colorクラスのコンストラクタについて - スタック・オーバーフ …

    いわゆるvalue objectです。 例えば青色として利用したいインスタンスは new Color(0, 0, 255) で一度作ってしまえばそれを使い回しても問題ないので、システムがあらかじめ作っておいて Color.BLUE …

  9. From string parameter to color in java awt - Stack Overflow

    Dec 23, 2019 · If you are sure you cannot use java.awt.Color directly, as in Color.red and Color.blue, you can use reflection to get the corresponding Color from the color name, as in the following method.

  10. java - How do I set the R, G, B and Alpha components of a color ...

    Jul 18, 2011 · There are 3 integer values that makes up a RGB value, and also i have the Alpha component value of the color. how do i set these 4 values to get the desired colour