Overloading Functions: Java, Color Modes & Choices

  • Context: Java 
  • Thread starter Thread starter NorrisP
  • Start date Start date
  • Tags Tags
    Functions
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 3K views
NorrisP
Messages
9
Reaction score
0
Will overloading in Java create clumpsy look,use ?

Also, in ordor to draw with color, will you chose to create 16, 32,64,128,256 color modes ? which one you often chose ?
Thanks you very much
 
Physics news on Phys.org
thank you dduardo, but if 256, 256 mean I must create 256 array of color ?
but what if it bigger than 256 like a million of color.?
I need create many color, i see my computer have million color, i need distingush each of them.
 
If the library your using only has support for 8bits = = 2^8 = 256 colors and you need something like 16bit, 24bit or 32bit colors than you need to find a library that handles that amount. Unless your drawing pictures, 256 colors is probably more than enough. The java 2d library supports 32bit colors. 8bits for red 8 bits for green and 8 bits for blue = 32bit RGB.

If you want CYMK, that's a whole other story.
 
please can you suggest me library ?