Date: 2004-05-20 11:49 am (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
Huh what? It's another Meme thingy.
Just type <font color="Tzohekiti">Tzohekiti</font> and see what comes up.

Date: 2004-05-20 04:10 pm (UTC)
From: [identity profile] tzohekiti.livejournal.com
*little microwave lightbulb comes on*

Date: 2004-05-20 07:54 am (UTC)
From: [identity profile] ex-orin917.livejournal.com
y'know everyone in my journal has posted this thing but not one has bothered to drop in a url to the meme.

Date: 2004-05-20 11:47 am (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
No URL, as far as I know. It's just HTML code.
(Meme: N, an idea, behavior, style, or usage that spreads from person to person within a culture.)
Just type <font color="Orin">Orin</font> and see what comes up.

Date: 2004-05-20 12:08 pm (UTC)
From: [identity profile] ex-orin917.livejournal.com
Ah I see. Well no-one bothered to mention that either. And I don't go reading my journal in source view. ;P

Anyway, it would seem I'm just plain black. I wonder how that works actually, I would have thought browsers would just discard incorrect colour names.

Date: 2004-05-20 12:16 pm (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
I'm curious myself, actually. I might be inclined to agree with you, as computers are stupid and tend to ignore what they don't understand (or burp at you if they think they should understand). At one point I was under the impression that browsers just read the first two letters and do a look-up from there, but that kills the idea of LightGrey and LightBlue and such... And certainly 'Ro' doesn't correspond to 'Green,' nor 'Or' to 'Black,' so...

Date: 2004-05-20 12:38 pm (UTC)
From: [identity profile] ex-orin917.livejournal.com
Actually it appears to have nothing to do with that. I suspect it's somehow messing with the hex-to-rgb conversions.

My guess after some experimentation is it does the following (assuming an explicit colour name lookup fails):
1. Divide the string into three equal parts corresponding to Red, Green and Blue respectively.
2. For each part, read from left to right, accept only valid hex digit (0-9|A-F|a-f), stop once two have been found, or end of the part is reached. Concatenate digits, zero pad and convert to integer value.

Using that formula:
"roliasnoom"
"rol", "ias", "noom"
"", "A", ""
00, A0, 00
0, 160, 00

It certainly seems to hold true. Orin would indeed be black since it contains no hex digits and a scren grab confirms "roliasnoom" is RGB(0,160,0).

Date: 2004-05-20 12:40 pm (UTC)
From: [identity profile] jackofallgeeks.livejournal.com
Ha! Now that is clever!

Date: 2004-05-20 01:10 pm (UTC)
From: [identity profile] ex-orin917.livejournal.com
Well at least now it won't keep me awake at 3am. These things bother me. ;)

oooh I wanna try

Date: 2004-05-22 03:56 am (UTC)
From: [identity profile] masqerade.livejournal.com
masqerade

Profile

jackofallgeeks: (Default)
John Noble

August 2012

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 15th, 2025 07:10 am
Powered by Dreamwidth Studios