Who know colors range in L2

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Who know colors range in L2

Post by KGB1st »

Who know colors range for nick and title in L2? Thanks.
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm

Re: Who know colors range in L2

Post 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);
Image
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Re: Who know colors range in L2

Post 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?)
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Re: Who know colors range in L2

Post 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?
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm

Re: Who know colors range in L2

Post by SaveGame »

[0;16777216)
Image
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Re: Who know colors range in L2

Post 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:
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm

Re: Who know colors range in L2

Post 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.
Image
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Re: Who know colors range in L2

Post by KGB1st »

I don't understand you. I find method with rgb format..

Shot00097.jpg
You do not have the required permissions to view the files attached to this post.
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm

Re: Who know colors range in L2

Post 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.
Image
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Re: Who know colors range in L2

Post 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.
Post Reply