Yes you can.
it usually applys to the numbers when you type in a mobile number to your phone
/* <applet code=palette height=600 width=600> </applet> */ import java.awt.*; import java.awt.event.*; import java.applet.*; public class palette extends Applet implements ActionListener,ItemListener { Button[] colors; Checkbox foreground,background; TextArea workarea; CheckboxGroup cbg; Panel buttonpanel,checkpanel,palettepanel; String colour; public void init() { buttonpanel=new Panel(); buttonpanel.setLayout(new GridLayout(3,3)); colors=new Button[9]; colors[0]=new Button("RED"); colors[1]=new Button("GREEN"); colors[2]=new Button("BLUE"); colors[3]=new Button("CYAN"); colors[4]=new Button("ORANGE"); colors[5]=new Button("WHITE"); colors[6]=new Button("BLACK"); colors[7]=new Button("YELLOW"); colors[8]=new Button("PINK"); for(int i=0;i<9;i++) { colors[i].addActionListener(this); buttonpanel.add(colors[i]); } checkpanel=new Panel(); checkpanel.setLayout(new FlowLayout()); cbg=new CheckboxGroup(); foreground=new Checkbox("ForeGround",cbg,true); background=new Checkbox("BackGround",cbg,false); foreground.addItemListener(this); background.addItemListener(this); checkpanel.add(foreground); checkpanel.add(background); workarea=new TextArea(8,40); workarea.setFont(new Font("Garamond",Font.BOLD,20)); palettepanel=new Panel(); palettepanel.setLayout(new BorderLayout()); palettepanel.add(workarea,BorderLayout.CENTER); palettepanel.add(checkpanel,BorderLayout.EAST); palettepanel.add(buttonpanel,BorderLayout.SOUTH); add(palettepanel); } public void itemStateChanged(ItemEvent ie) { } public void actionPerformed(ActionEvent ae) { colour=ae.getActionCommand(); if(foreground.getState()==true) workarea.setForeground(getColour()); if(background.getState()==true) workarea.setBackground(getColour()); } public Color getColour() { Color mycolor=null; if(colour.equals("RED")) mycolor=Color.red; if(colour.equals("GREEN")) mycolor=Color.green; if(colour.equals("BLUE")) mycolor=Color.blue; if(colour.equals("CYAN")) mycolor=Color.cyan; if(colour.equals("ORANGE")) mycolor=Color.orange; if(colour.equals("WHITE")) mycolor=Color.white; if(colour.equals("BLACK")) mycolor=Color.black; if(colour.equals("YELLOW")) mycolor=Color.yellow; if(colour.equals("PINK")) mycolor=Color.pink; return mycolor; } }
It is because it helps analyze all the colors to even pigments and that kind of stuff
"To print or display the opposite background and foreground colors. For example, a typical white page with black text would be reverse printed as white characters on a black background."
This is a homework question, so I won't answer it directly.But a two-digit hexadecimal number can have 256 different values - 00 to FF - so with three of them you can combine any of the 256 values of the first color with any of the 256 values of the second and third color, for a total of 256 * 256 * 256 different combinations.Even though you can specify that many colors, it does not necessarily mean that the computer screen can show them all. See related link for more on web colors.
They (we) use different formulas to create different colors because when different chemicals burn they do so at different temperatures and they produce a different wave length of light that we see as different colors. For example Copper II Oxide can be used to make the color blue.
A 24-bit video adapter can display roughly 16 million different colors.
A 24-bit video adapter can display roughly 16 million different colors.
The number of colors in a display is different to the form of the display. LED or CCFL illumination of an LCD display does not in any way impact on the number of colors that can be resolved.
because your high
Primary colors
The watermelon tourmaline is a rare variety that display three different colors. The three colors are green, pink and white. The colours all occur 100% naturally which is a rare occurence in nature.
The computer monitor. It can display 64,000,000 different colors.
Color is normally due to impurities located within the lattice structure of the crystal. Diamond in pure form is clear, for example, but different impurities create different colors.
Because you can create all the other colours using different combinations of the primary
Red Blue Green
no