Who know colors range in L2
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Who know colors range in L2
Who know colors range for nick and title in L2? Thanks.
-
- Posts: 121
- Joined: Thu Oct 30, 2014 9:54 pm
Re: Who know colors range in L2
24 bit true color
Red in the 8 lsbs, blue – 8 msbs.
Also, see https://bitbucket.org/_dev_/netpro/src/ ... ew-default:
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);
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: Who know colors range in L2
Vyrry cherry thanksSaveGame 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);
![Crazy :crazy:](./images/smilies/icon_crazy.gif)
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
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?)
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: Who know colors range in L2
I don't know how works your stuff so I tested my simple method with random int.
I've a question. Why getRandomNumberInRange generate colors in two ranges, red or green. Where is blue?Code: Select all
int i_NickClr = getRandomNumberInRange(1, 1677721);
-
- Posts: 121
- Joined: Thu Oct 30, 2014 9:54 pm
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: Who know colors range in L2
LOL pcAppearance contains some rgb converter, it's the same that you told to me yesterdayit's def rgb![]()
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
![Laughing :lol:](./images/smilies/icon_lol.gif)
-
- Posts: 121
- Joined: Thu Oct 30, 2014 9:54 pm
Re: Who know colors range in L2
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.KGB1st wrote:LOL pcAppearance contains some rgb converter, it's the same that you told to me yesterdayit's def rgb![]()
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
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: Who know colors range in L2
You do not have the required permissions to view the files attached to this post.
-
- Posts: 121
- Joined: Thu Oct 30, 2014 9:54 pm
Re: Who know colors range in L2
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 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.
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: Who know colors range in L2
I understood it when I did a color gradient in HTML for temperature indication of my GPUSaveGame 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.
But in my test server I did this without this knowelge, was used standart function for rgb formating.