Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: (GOLF) splitting an hexadecimal colour triplet

by wog (Curate)
on Jul 05, 2001 at 20:14 UTC ( [id://94152]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub hexa_triplet {
    map{($_[0]>>$_)&255}16,8,0
    }
    
  2. or download this
    sub hexa_triplet {
    unpack"xC3",pack"N",@_
    }
    
  3. or download this
    perl -e '$|--;$.=q$.$;while($i!=0){$i=(time-$^T)%60;print"\r".$.x$i}'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://94152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found