-
12-01-2005, 17:48 #1Member
- Registered
- 27/05/03
- Location
- Aarschot
- Posts
- 2,403
- iTrader
- 0
- Mentioned
- 0 Post(s)
- Reputation
- 0/0
hexadecimale codes van enemy territory kleuren
lo,
ik ben op zoek nar de hexadecimale codes vvan de kleuren waarmee je je naam kan maken.
weet iemand deze staan?
ik vind ze niet direct met google
grtz Ac!dThere are only 10 types of people, those who understand binary and those who don't.
chown -R us ~/base
aka N`Kr1ptno votes
-
-
12-01-2005, 17:54 #2Member
- Registered
- 13/09/02
- Location
- Bristol club -
- Posts
- 2,468
- iTrader
- 2 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 0/0
hex kan ik u voorlopig niet direct geven
rgb kunt ge uit m'n java file halen van m'n namebuilder:
(ge moet der maar wa uit foefelen moest ge het nodig hebben
)
Code:// rgb koeleurkes ET b1 = new Button("1"); b1.setBackground(new Color(247,4,0)); b1.addActionListener(new KnopHandlerb1()); b2 = new Button("2"); b2.setBackground(new Color(2,247,2)); b2.addActionListener(new KnopHandlerb2()); b3 = new Button("3"); b3.setBackground(Color.yellow); b3.addActionListener(new KnopHandlerb3()); b4 = new Button("4"); b4.setBackground(new Color(0,6,248)); b4.addActionListener(new KnopHandlerb4()); b5 = new Button("5"); b5.setBackground(new Color(0,246,246)); b5.addActionListener(new KnopHandlerb5()); b6 = new Button("6"); b6.setBackground(new Color(182,61,172)); b6.addActionListener(new KnopHandlerb6()); b7 = new Button("7"); b7.setBackground(Color.white); b7.addActionListener(new KnopHandlerb7()); b8 = new Button("8"); b8.setBackground(new Color(255,123,6)); b8.addActionListener(new KnopHandlerb8()); b9 = new Button("9"); b9.setBackground(new Color(120,120,123)); b9.addActionListener(new KnopHandlerb9()); b10 = new Button("0"); b10.setBackground(Color.black); b10.addActionListener(new KnopHandlerb10()); b11 = new Button("A"); b11.setBackground(new Color(214,143,81)); b11.addActionListener(new KnopHandlerb11()); b12 = new Button("B"); b12.setBackground(new Color(3,125,126)); b12.addActionListener(new KnopHandlerb12()); b13 = new Button("C"); b13.setBackground(new Color(123,4,132)); b13.addActionListener(new KnopHandlerb13()); b14 = new Button("D"); b14.setBackground(new Color(0,125,254)); b14.addActionListener(new KnopHandlerb14()); b15 = new Button("E"); b15.setBackground(new Color(129,0,253)); b15.addActionListener(new KnopHandlerb15()); b16 = new Button("F"); b16.setBackground(new Color(55,149,200)); b16.addActionListener(new KnopHandlerb16()); b17 = new Button("G"); b17.setBackground(new Color(194,253,201)); b17.addActionListener(new KnopHandlerb17()); b18 = new Button("H"); b18.setBackground(new Color(6,100,50)); b18.addActionListener(new KnopHandlerb18()); b19 = new Button("I"); b19.setBackground(new Color(251,0,51)); b19.addActionListener(new KnopHandlerb19()); b20 = new Button("J"); b20.setBackground(new Color(174,28,23)); b20.addActionListener(new KnopHandlerb20()); b21 = new Button("K"); b21.setBackground(new Color(155,49,7)); b21.addActionListener(new KnopHandlerb21()); b22 = new Button("L"); b22.setBackground(new Color(185,137,88)); b22.addActionListener(new KnopHandlerb22()); b23 = new Button("M"); b23.setBackground(new Color(145,132,98)); b23.addActionListener(new KnopHandlerb23()); b24 = new Button("N"); b24.setBackground(new Color(250,249,192)); b24.addActionListener(new KnopHandlerb24()); b25 = new Button("O"); b25.setBackground(new Color(209,199,145)); b25.addActionListener(new KnopHandlerb25()); //--------------------- b26= new Button("Q"); b26.setBackground(new Color(247,3,3)); b26.addActionListener(new KnopHandlerb26()); b27 = new Button("R"); b27.setBackground(new Color(0,249,4)); b27.addActionListener(new KnopHandlerb27()); b28 = new Button("S"); b28.setBackground(new Color(251,249,4)); b28.addActionListener(new KnopHandlerb28()); b29 = new Button("T"); b29.setBackground(new Color(0,5,244)); b29.addActionListener(new KnopHandlerb29()); b30 = new Button("U"); b30.setBackground(new Color(0,250,246)); b30.addActionListener(new KnopHandlerb30()); b31 = new Button("V"); b31.setBackground(new Color(249,0,249)); b31.addActionListener(new KnopHandlerb31()); b32 = new Button("W"); b32.setBackground(new Color(244,246,241)); b32.addActionListener(new KnopHandlerb32()); b33 = new Button("X"); b33.setBackground(new Color(249,128,0)); b33.addActionListener(new KnopHandlerb33()); b34 = new Button("Y"); b34.setBackground(new Color(123,125,122)); b34.addActionListener(new KnopHandlerb34()); b35 = new Button("Z"); b35.setBackground(new Color(188,189,194)); b35.addActionListener(new KnopHandlerb35()); //------------------------------ b36 = new Button(":"); b36.setBackground(new Color(185,175,166)); b36.addActionListener(new KnopHandlerb36()); b37 = new Button("<"); b37.setBackground(new Color(38,98,24)); b37.addActionListener(new KnopHandlerb37()); b38 = new Button("="); b38.setBackground(new Color(127,118,43)); b38.addActionListener(new KnopHandlerb38()); b39 = new Button(">"); b39.setBackground(new Color(28,15,94)); b39.addActionListener(new KnopHandlerb39()); b40 = new Button("?"); b40.setBackground(new Color(103,24,27)); b40.addActionListener(new KnopHandlerb40()); b41 = new Button("@"); b41.setBackground(new Color(117,83,48)); b41.addActionListener(new KnopHandlerb41()); //-------------------------- b42 = new Button(","); b42.setBackground(new Color(207,154,58)); b42.addActionListener(new KnopHandlerb42()); b43 = new Button("."); b43.setBackground(new Color(247,148,182)); b43.addActionListener(new KnopHandlerb43()); b44 = new Button("/"); b44.setBackground(new Color(252,251,124)); b44.addActionListener(new KnopHandlerb44()); b45 = new Button("-"); b45.setBackground(new Color(151,152,45)); b45.addActionListener(new KnopHandlerb45()); b46 = new Button("\\"); b46.setBackground(new Color(0,127,3)); b46.addActionListener(new KnopHandlerb46()); b47 = new Button("["); b47.setBackground(new Color(190,192,187)); b47.addActionListener(new KnopHandlerb47()); b48 = new Button("]"); b48.setBackground(new Color(127,124,11)); b48.addActionListener(new KnopHandlerb48()); b50 = new Button("*"); b50.setBackground(new Color(147,24,26)); b50.addActionListener(new KnopHandlerb50());no votes
-
12-01-2005, 17:57 #3
wtf man, wa zijt gij aant brabbelen

as ge u naam in kleurekes wilt zetten doet ge da gewoon als volgt:
^0zwart
^1rood
^2geel (kan ook groen zijn)
^3groen (kan ook geel zijn)
^4blauw
^5nog een kleureke
^6roos (my favorite)
^7wit
...
en ga zo maar door, ge kunt ook met letterkes werken:
^h ander tintje van groen
...
maw: as gij joske wilt noemen met de j in rood en de k int zwart en de rest int wit geeft dat:
^1J^7os^0k^7e
mvgGEZEVERno votes
-
12-01-2005, 17:58 #4Member
- Registered
- 13/09/02
- Location
- Bristol club -
- Posts
- 2,468
- iTrader
- 2 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 0/0
no votes
-
12-01-2005, 18:01 #5
aaaaaaaaah, jama ja, wa zit die dan op ET-forum te posten :/
da zijn zo die dingen alla F00000 enzo zeker?
kheb da vroeger ooit is gebruikt voor ne site te maken ja, maar kzou begod ni meer weten waar ge da haalt
veel succes in ieder geval nog
mvgGEZEVERno votes
-
12-01-2005, 18:01 #6
kweet niet echt of het dit is wat ge nodig hebt maar ik gebruikte dit voor kleurtjes van servernamen en players tegoei te doen:
het eerste is ingame kleur en dan #. . . . . . is kleur op de site.
hope it helps.PHP Code:<?php
function ServerColors($host) {
$host = '<font color="#000000">'.$host;
$host = str_replace('"','',$host);
$host = str_replace('^0','</font><font color="#000000">',$host);
$host = str_replace('^1','</font><font color="#F70400">',$host);
$host = str_replace('^2','</font><font color="#02F702">',$host);
$host = str_replace('^3','</font><font color="#FDF900">',$host);
$host = str_replace('^4','</font><font color="#0006F8">',$host);
$host = str_replace('^5','</font><font color="#0F6F3">',$host);
$host = str_replace('^6','</font><font color="#F407F5">',$host);
$host = str_replace('^7','</font><font color="#F9F9F9">',$host);
$host = str_replace('^8','</font><font color="#FF7B06">',$host);
$host = str_replace('^9','</font><font color="#7C7D81">',$host);
$host = str_replace('^0','</font><font color="#000100">',$host);
$host = str_replace('^q','</font><font color="#F70303">',$host);
$host = str_replace('^Q','</font><font color="#F70303">',$host);
$host = str_replace('^w','</font><font color="#F4F6F1">',$host);
$host = str_replace('^e','</font><font color="#8100FD">',$host);
$host = str_replace('^r','</font><font color="#00F904">',$host);
$host = str_replace('^t','</font><font color="#0005F4">',$host);
$host = str_replace('^y','</font><font color="#7B7D7A">',$host);
$host = str_replace('^W','</font><font color="#F4F6F1">',$host);
$host = str_replace('^E','</font><font color="#8100FD">',$host);
$host = str_replace('^R','</font><font color="#00F904">',$host);
$host = str_replace('^T','</font><font color="#0005F4">',$host);
$host = str_replace('^Y','</font><font color="#7B7D7A">',$host);
$host = str_replace('^u','</font><font color="#00FAF6">',$host);
$host = str_replace('^i','</font><font color="#FB0033">',$host);
$host = str_replace('^o','</font><font color="#EFF174">',$host);
$host = str_replace('^p','</font><font color="#060702">',$host);
$host = str_replace('^a','</font><font color="#FD9534">',$host);
$host = str_replace('^U','</font><font color="#00FAF6">',$host);
$host = str_replace('^I','</font><font color="#FB0033">',$host);
$host = str_replace('^O','</font><font color="#EFF174">',$host);
$host = str_replace('^P','</font><font color="#060702">',$host);
$host = str_replace('^A','</font><font color="#FD9534">',$host);
$host = str_replace('^s','</font><font color="#FBF904">',$host);
$host = str_replace('^d','</font><font color="#007DFE">',$host);
$host = str_replace('^f','</font><font color="#3795C8">',$host);
$host = str_replace('^g','</font><font color="#C2FCC9">',$host);
$host = str_replace('^h','</font><font color="#066432">',$host);
$host = str_replace('^S','</font><font color="#FBF904">',$host);
$host = str_replace('^D','</font><font color="#007DFE">',$host);
$host = str_replace('^F','</font><font color="#3795C8">',$host);
$host = str_replace('^G','</font><font color="#C2FCC9">',$host);
$host = str_replace('^H','</font><font color="#066432">',$host);
$host = str_replace('^j','</font><font color="#AD1C17">',$host);
$host = str_replace('^k','</font><font color="#9B3107">',$host);
$host = str_replace('^l','</font><font color="#CF9834">',$host);
$host = str_replace('^;','</font><font color="#C0BFC7">',$host);
$host = str_replace('^z','</font><font color="#BCBDC2">',$host);
$host = str_replace('^J','</font><font color="#AD1C17">',$host);
$host = str_replace('^K','</font><font color="#9B3107">',$host);
$host = str_replace('^L','</font><font color="#CF9834">',$host);
$host = str_replace('^Z','</font><font color="#BCBDC2">',$host);
$host = str_replace('^x','</font><font color="#F98000">',$host);
$host = str_replace('^c','</font><font color="#7B0484">',$host);
$host = str_replace('^v','</font><font color="#F900F9">',$host);
$host = str_replace('^b','</font><font color="#037D7E">',$host);
$host = str_replace('^n','</font><font color="#FAF9C0">',$host);
$host = str_replace('^X','</font><font color="#F98000">',$host);
$host = str_replace('^C','</font><font color="#7B0484">',$host);
$host = str_replace('^V','</font><font color="#F900F9">',$host);
$host = str_replace('^B','</font><font color="#037D7E">',$host);
$host = str_replace('^N','</font><font color="#FAF9C0">',$host);
$host = str_replace('^m','</font><font color="#9B9935">',$host);
$host = str_replace('^M','</font><font color="#9B9935">',$host);
$host = str_replace('^,','</font><font color="#CF9A3A">',$host);
$host = str_replace('^.','</font><font color="#F7F8B6">',$host);
$host = str_replace('^/','</font><font color="#FBFC7C">',$host);
$host = str_replace('^-','</font><font color="#98972D">',$host);
$host = str_replace('^=','</font><font color="#7F7F00">',$host);
$host = str_replace("^'",'<font color="#007F03">',$host);
$host = str_replace('^[','</font><font color="#BEC0BB">',$host);
$host = str_replace('^]','</font><font color="#7F7C0B">',$host);
$host = str_replace('^\'','</font><font color="#C5F9C8">',$host);
$host = str_replace('^*','</font><font color="#AE181A">',$host);
$host = $host.'</font>';
return $host;
}
?>
disano votes
-
12-01-2005, 18:33 #7Member
- Registered
- 27/05/03
- Location
- Aarschot
- Posts
- 2,403
- iTrader
- 0
- Mentioned
- 0 Post(s)
- Reputation
- 0/0
ja kben wat java aant oefenen tege de komende examens.
pas begonnen met gui enal.
ik dacht waarom geen namebuilder maken voor ET en die op onze clansite zetten
dan heeft dat nog nut ook.
thx voor die rgb waardes broq
grtz Ac!dThere are only 10 types of people, those who understand binary and those who don't.
chown -R us ~/base
aka N`Kr1ptno votes
-
12-01-2005, 18:49 #8Approved 9liver
- Registered
- 21/12/04
- Location
- Leuven
- Posts
- 20,380
- iTrader
- 0
- Mentioned
- 0 Post(s)
- Reputation
- 0/227
Steel die van Boozze gewoon
Physics is like sex: Sure, it may have practical results, but that is not the reason we do it. ~ R. Feynman
All science is either physics or stamp collecting. ~ E. Rutherford
S'il est vrai qu'on construit des cathédrales aujourd'hui dans la Science, il est bien dommage que les gens n'y puissent entrer, ne puissent pas toucher les pierres elles-mêmes.
no votes
-
12-01-2005, 18:57 #9no votes
-
12-01-2005, 19:07 #10
Komt uit een server query voorbeeld van Rain: http://themuffin.net/server.phps.
Het is wel in PHP maar omzetten naar java kan niet zo een groot probleem zijn denk ik.En omdat het leuk is, dit is de functie om tekst te kleuren. Je zou dit ook met een regular expression kunnen doen.Code:$osp_colors = array( 0 => "#000000", 1 => "#ff0000", 2 => "#00ff00", 3 => "#ffff00", 4 => "#0000ff", 5 => "#00ffff", 6 => "#ff00ff", 7 => "#ffffff", 8 => "#ff7f00", 9 => "#7f7f7f", 10 => "#bfbfbf", 11 => "#bfbfbf", 12 => "#007f00", 13 => "#7f7f00", 14 => "#00007f", 15 => "#7f0000", 16 => "#7f3f00", 17 => "#ff9919", 18 => "#007f7f", 19 => "#7f007f", 20 => "#007fff", 21 => "#7f00ff", 22 => "#3399cc", 23 => "#ccffcc", 24 => "#006633", 25 => "#ff0033", 26 => "#b21919", 27 => "#993300", 28 => "#cc9933", 29 => "#999933", 30 => "#ffffbf", 31 => "#ffff7f" );
Er wordt ergens de functie ord() gebruikt wat de ascii waarde van een getal teruggeeft iets als (int) in C dus.
Dit lijkt mij trouwens ook een mooiere oplossing dan elke letter te vervangen door een code, want er zijn maar 32 kleuren, eigenlijk 31 want er zit 2 keer hetzelfde grijs in. Maar over smaken en kleuren enzovoort weet je wel.Code:function colorize($text) { global $osp_colors; $buf = ''; $curcolor = -1; $nextcolor = 7; for ($x = 0; $x < strlen($text); $x++) { if ($text[$x] == '^' && $text[$x + 1] != '^') { $nextcolor = (ord($text[$x + 1]) + 16) & 31; $x++; continue; } if ($curcolor != $nextcolor) { if ($curcolor != -1) $buf .= "</font>"; $curcolor = $nextcolor; $buf .= sprintf("<font color=\"%s\">", $osp_colors[$curcolor]); } $buf .= htmlspecialchars($text[$x]); } if ($curcolor != -1) $buf .= "</font>"; return $buf; }Kids, you tried your best and you failed miserably. The lesson is, never try.no votes
-
12-01-2005, 19:08 #11(EX-)CLANS: =]GO[=, -=[BZZ]=- (NEW TEAM), BoozZe. (OC TEAM), |BzZ? (RTCW.NO TEAM),BzZ.c|::| (BoozZe.INACTIVE), boozze.be/ (WL TEAM), BZZGAMING (NEW WL TEAM)no votes
