Page 1 of 1

Who know colors range in L2

Posted: Fri Nov 13, 2015 4:12 pm
by KGB1st
Who know colors range for nick and title in L2? Thanks.

Re: Who know colors range in L2

Posted: Sat Nov 14, 2015 10:17 am
by SaveGame
24 bit true color

Red in the 8 lsbs, blue – 8 msbs.
Also, see https://bitbucket.org/_dev_/netpro/src/ ... ew-default:

Code: Select all

import java.awt.Color;
…
final int bgr = (int) value;
final Color c = new Color(bgr & 0xFF, (bgr >> 8) & 0xFF, (bgr >> 16) & 0xFF);

Re: Who know colors range in L2

Posted: Sat Nov 14, 2015 1:18 pm
by KGB1st
SaveGame wrote:24 bit true color

Red in the 8 lsbs, blue – 8 msbs.
Also, see https://bitbucket.org/_dev_/netpro/src/ ... ew-default:

Code: Select all

import java.awt.Color;
…
final int bgr = (int) value;
final Color c = new Color(bgr & 0xFF, (bgr >> 8) & 0xFF, (bgr >> 16) & 0xFF);
Vyrry cherry thanks :crazy: :roll:
but I don't full understand what is it.. I think that it's a converter. But what should be a value? And how it works?)

Re: Who know colors range in L2

Posted: Sat Nov 14, 2015 7:46 pm
by KGB1st
I don't know how works your stuff so I tested my simple method with random int.

Code: Select all

int i_NickClr = getRandomNumberInRange(1, 1677721);
I've a question. Why getRandomNumberInRange generate colors in two ranges, red or green. Where is blue?

Re: Who know colors range in L2

Posted: Sat Nov 14, 2015 8:45 pm
by SaveGame
[0;16777216)

Re: Who know colors range in L2

Posted: Sun Nov 15, 2015 4:57 am
by KGB1st
it's def rgb :problem: :crazy:

I don't understand how I can convert HEX to Lineage2 Format :(

I see that defaulth value it's HEX but when I type some hex code in really it doesn't work, I see another color :\

HEX #ffe4b5 in game I see another color: 16113331 INT
LOL pcAppearance contains some rgb converter, it's the same that you told to me yesterday :lol:

Re: Who know colors range in L2

Posted: Sun Nov 15, 2015 8:34 am
by SaveGame
KGB1st wrote:
it's def rgb :problem: :crazy:

I don't understand how I can convert HEX to Lineage2 Format :(

I see that defaulth value it's HEX but when I type some hex code in really it doesn't work, I see another color :\

HEX #ffe4b5 in game I see another color: 16113331 INT
LOL pcAppearance contains some rgb converter, it's the same that you told to me yesterday :lol:
How do you measure what you are seeing in-game? If directly (or from BMP screenshots), please make sure to use letters that have large areas that are unaffected by AA or fractional metrics (subpixel accuracy). You should check UserInfo for the actual color that was given to client.

Re: Who know colors range in L2

Posted: Sun Nov 15, 2015 11:56 am
by KGB1st
I don't understand you. I find method with rgb format..

Shot00097.jpg

Re: Who know colors range in L2

Posted: Sun Nov 15, 2015 1:05 pm
by SaveGame
Explain where do you get F5DEB3 after using FFE4B5.

I understand that all these things may be hard to understand without having a background in computer architecture (or, alternatively, computer graphics/effects), but you should word your question differently if you want a short answer.

Re: Who know colors range in L2

Posted: Tue Mar 20, 2018 3:27 am
by KGB1st
SaveGame wrote: Sun Nov 15, 2015 1:05 pm Explain where do you get F5DEB3 after using FFE4B5.

I understand that all these things may be hard to understand without having a background in computer architecture (or, alternatively, computer graphics/effects), but you should word your question differently if you want a short answer.
I understood it when I did a color gradient in HTML for temperature indication of my GPU
But in my test server I did this without this knowelge, was used standart function for rgb formating.