Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: (GOLF) splitting an hexadecimal colour triplet

by wog (Curate)
on Jul 05, 2001 at 20:14 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2023-04-01 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?