Peter Sergeant > Acme-Tango-0.07 > Acme::Tango

Download:
Acme-Tango-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.07   Source  

NAME ^

Acme::Tango - Turn colours orange

VERSION ^

version 0.07

SYNOPSIS ^

        use Acme::Tango;

        my $hex_string = Acme::Tango::drink('#00bbff');

 # But then also

  my $hex_string = Acme::Tango::drink('#00bbcc', 'apple');

METHODS ^

drink

Given a hex rgb colour string (like: "#aaff4f" or "44f567" or "#fab"), returns the hex string of the shade of orange with the same saturation and value values. Unless you specifically specify that Apple or Lemon tango are what you're after, by passing apple or lemon as the second argument. See:

https://rt.cpan.org/Ticket/Display.html?id=6730

EXAMPLE ^

perl eg/colour_swatches.pl should give you an HTML segment to look at. If you're reading this page in an HTML-compatible POD reader, you can see the results below:

Orange

000000000000
000033332200
000066664400
000099996500
0000CCCC8800
0000FFFFAA00
003300332200
003333332200
003366664400
003399996500
0033CCCC8800
0033FFFFAA00
006600664400
006633664400
006666664400
006699996500
0066CCCC8800
0066FFFFAA00
009900996500
009933996500
009966996500
009999996500
0099CCCC8800
0099FFFFAA00
00CC00CC8800
00CC33CC8800
00CC66CC8800
00CC99CC8800
00CCCCCC8800
00CCFFFFAA00
00FF00FFAA00
00FF33FFAA00
00FF66FFAA00
00FF99FFAA00
00FFCCFFAA00
00FFFFFFAA00
330000332200
330033332200
330066664400
330099996500
3300CCCC8800
3300FFFFAA00
333300332200
333333333333
333366665533
333399997733
3333CCCC9933
3333FFFFBB32
336600664400
336633665533
336666665533
336699997733
3366CCCC9933
3366FFFFBB32
339900996500
339933997733
339966997733
339999997733
3399CCCC9933
3399FFFFBB32
33CC00CC8800
33CC33CC9933
33CC66CC9933
33CC99CC9933
33CCCCCC9933
33CCFFFFBB32
33FF00FFAA00
33FF33FFBB32
33FF66FFBB32
33FF99FFBB32
33FFCCFFBB32
33FFFFFFBB32
660000664400
660033664400
660066664400
660099996500
6600CCCC8800
6600FFFFAA00
663300664400
663333665533
663366665533
663399997733
6633CCCC9933
6633FFFFBB32
666600664400
666633665533
666666666666
666699998866
6666CCCCAA66
6666FFFFCC66
669900996500
669933997733
669966998866
669999998866
6699CCCCAA66
6699FFFFCC66
66CC00CC8800
66CC33CC9933
66CC66CCAA66
66CC99CCAA66
66CCCCCCAA66
66CCFFFFCC66
66FF00FFAA00
66FF33FFBB32
66FF66FFCC66
66FF99FFCC66
66FFCCFFCC66
66FFFFFFCC66
990000996500
990033996500
990066996500
990099996500
9900CCCC8800
9900FFFFAA00
993300996500
993333997733
993366997733
993399997733
9933CCCC9933
9933FFFFBB32
996600996500
996633997733
996666998866
996699998866
9966CCCCAA66
9966FFFFCC66
999900996500
999933997733
999966998866
999999999999
9999CCCCBB99
9999FFFFDD99
99CC00CC8800
99CC33CC9933
99CC66CCAA66
99CC99CCBB99
99CCCCCCBB99
99CCFFFFDD99
99FF00FFAA00
99FF33FFBB32
99FF66FFCC66
99FF99FFDD99
99FFCCFFDD99
99FFFFFFDD99
CC0000CC8800
CC0033CC8800
CC0066CC8800
CC0099CC8800
CC00CCCC8800
CC00FFFFAA00
CC3300CC8800
CC3333CC9933
CC3366CC9933
CC3399CC9933
CC33CCCC9933
CC33FFFFBB32
CC6600CC8800
CC6633CC9933
CC6666CCAA66
CC6699CCAA66
CC66CCCCAA66
CC66FFFFCC66
CC9900CC8800
CC9933CC9933
CC9966CCAA66
CC9999CCBB99
CC99CCCCBB99
CC99FFFFDD99
CCCC00CC8800
CCCC33CC9933
CCCC66CCAA66
CCCC99CCBB99
CCCCCCCCCCCC
CCCCFFFFEECC
CCFF00FFAA00
CCFF33FFBB32
CCFF66FFCC66
CCFF99FFDD99
CCFFCCFFEECC
CCFFFFFFEECC
FF0000FFAA00
FF0033FFAA00
FF0066FFAA00
FF0099FFAA00
FF00CCFFAA00
FF00FFFFAA00
FF3300FFAA00
FF3333FFBB32
FF3366FFBB32
FF3399FFBB32
FF33CCFFBB32
FF33FFFFBB32
FF6600FFAA00
FF6633FFBB32
FF6666FFCC66
FF6699FFCC66
FF66CCFFCC66
FF66FFFFCC66
FF9900FFAA00
FF9933FFBB32
FF9966FFCC66
FF9999FFDD99
FF99CCFFDD99
FF99FFFFDD99
FFCC00FFAA00
FFCC33FFBB32
FFCC66FFCC66
FFCC99FFDD99
FFCCCCFFEECC
FFCCFFFFEECC
FFFF00FFAA00
FFFF33FFBB32
FFFF66FFCC66
FFFF99FFDD99
FFFFCCFFEECC
FFFFFFFFFFFF

Lemon

000000000000
000033333300
000066666600
000099999900
0000CCCCCC00
0000FFFFFF00
003300333300
003333333300
003366666600
003399999900
0033CCCCCC00
0033FFFFFF00
006600666600
006633666600
006666666600
006699999900
0066CCCCCC00
0066FFFFFF00
009900999900
009933999900
009966999900
009999999900
0099CCCCCC00
0099FFFFFF00
00CC00CCCC00
00CC33CCCC00
00CC66CCCC00
00CC99CCCC00
00CCCCCCCC00
00CCFFFFFF00
00FF00FFFF00
00FF33FFFF00
00FF66FFFF00
00FF99FFFF00
00FFCCFFFF00
00FFFFFFFF00
330000333300
330033333300
330066666600
330099999900
3300CCCCCC00
3300FFFFFF00
333300333300
333333333333
333366666633
333399999933
3333CCCCCC33
3333FFFFFF32
336600666600
336633666633
336666666633
336699999933
3366CCCCCC33
3366FFFFFF32
339900999900
339933999933
339966999933
339999999933
3399CCCCCC33
3399FFFFFF32
33CC00CCCC00
33CC33CCCC33
33CC66CCCC33
33CC99CCCC33
33CCCCCCCC33
33CCFFFFFF32
33FF00FFFF00
33FF33FFFF32
33FF66FFFF32
33FF99FFFF32
33FFCCFFFF32
33FFFFFFFF32
660000666600
660033666600
660066666600
660099999900
6600CCCCCC00
6600FFFFFF00
663300666600
663333666633
663366666633
663399999933
6633CCCCCC33
6633FFFFFF32
666600666600
666633666633
666666666666
666699999966
6666CCCCCC66
6666FFFFFF66
669900999900
669933999933
669966999966
669999999966
6699CCCCCC66
6699FFFFFF66
66CC00CCCC00
66CC33CCCC33
66CC66CCCC66
66CC99CCCC66
66CCCCCCCC66
66CCFFFFFF66
66FF00FFFF00
66FF33FFFF32
66FF66FFFF66
66FF99FFFF66
66FFCCFFFF66
66FFFFFFFF66
990000999900
990033999900
990066999900
990099999900
9900CCCCCC00
9900FFFFFF00
993300999900
993333999933
993366999933
993399999933
9933CCCCCC33
9933FFFFFF32
996600999900
996633999933
996666999966
996699999966
9966CCCCCC66
9966FFFFFF66
999900999900
999933999933
999966999966
999999999999
9999CCCCCC99
9999FFFFFF99
99CC00CCCC00
99CC33CCCC33
99CC66CCCC66
99CC99CCCC99
99CCCCCCCC99
99CCFFFFFF99
99FF00FFFF00
99FF33FFFF32
99FF66FFFF66
99FF99FFFF99
99FFCCFFFF99
99FFFFFFFF99
CC0000CCCC00
CC0033CCCC00
CC0066CCCC00
CC0099CCCC00
CC00CCCCCC00
CC00FFFFFF00
CC3300CCCC00
CC3333CCCC33
CC3366CCCC33
CC3399CCCC33
CC33CCCCCC33
CC33FFFFFF32
CC6600CCCC00
CC6633CCCC33
CC6666CCCC66
CC6699CCCC66
CC66CCCCCC66
CC66FFFFFF66
CC9900CCCC00
CC9933CCCC33
CC9966CCCC66
CC9999CCCC99
CC99CCCCCC99
CC99FFFFFF99
CCCC00CCCC00
CCCC33CCCC33
CCCC66CCCC66
CCCC99CCCC99
CCCCCCCCCCCC
CCCCFFFFFFCC
CCFF00FFFF00
CCFF33FFFF32
CCFF66FFFF66
CCFF99FFFF99
CCFFCCFFFFCC
CCFFFFFFFFCC
FF0000FFFF00
FF0033FFFF00
FF0066FFFF00
FF0099FFFF00
FF00CCFFFF00
FF00FFFFFF00
FF3300FFFF00
FF3333FFFF32
FF3366FFFF32
FF3399FFFF32
FF33CCFFFF32
FF33FFFFFF32
FF6600FFFF00
FF6633FFFF32
FF6666FFFF66
FF6699FFFF66
FF66CCFFFF66
FF66FFFFFF66
FF9900FFFF00
FF9933FFFF32
FF9966FFFF66
FF9999FFFF99
FF99CCFFFF99
FF99FFFFFF99
FFCC00FFFF00
FFCC33FFFF32
FFCC66FFFF66
FFCC99FFFF99
FFCCCCFFFFCC
FFCCFFFFFFCC
FFFF00FFFF00
FFFF33FFFF32
FFFF66FFFF66
FFFF99FFFF99
FFFFCCFFFFCC
FFFFFFFFFFFF

Apple

000000000000
0000330C3300
000066196600
000099269900
0000CC33CC00
0000FF3FFF00
0033000C3300
0033330C3300
003366196600
003399269900
0033CC33CC00
0033FF3FFF00
006600196600
006633196600
006666196600
006699269900
0066CC33CC00
0066FF3FFF00
009900269900
009933269900
009966269900
009999269900
0099CC33CC00
0099FF3FFF00
00CC0033CC00
00CC3333CC00
00CC6633CC00
00CC9933CC00
00CCCC33CC00
00CCFF3FFF00
00FF003FFF00
00FF333FFF00
00FF663FFF00
00FF993FFF00
00FFCC3FFF00
00FFFF3FFF00
3300000C3300
3300330C3300
330066196600
330099269900
3300CC33CC00
3300FF3FFF00
3333000C3300
333333333333
3333663F6633
3333994C9933
3333CC59CC33
3333FF65FF32
336600196600
3366333F6633
3366663F6633
3366994C9933
3366CC59CC33
3366FF65FF32
339900269900
3399334C9933
3399664C9933
3399994C9933
3399CC59CC33
3399FF65FF32
33CC0033CC00
33CC3359CC33
33CC6659CC33
33CC9959CC33
33CCCC59CC33
33CCFF65FF32
33FF003FFF00
33FF3365FF32
33FF6665FF32
33FF9965FF32
33FFCC65FF32
33FFFF65FF32
660000196600
660033196600
660066196600
660099269900
6600CC33CC00
6600FF3FFF00
663300196600
6633333F6633
6633663F6633
6633994C9933
6633CC59CC33
6633FF65FF32
666600196600
6666333F6633
666666666666
666699729966
6666CC7FCC66
6666FF8CFF66
669900269900
6699334C9933
669966729966
669999729966
6699CC7FCC66
6699FF8CFF66
66CC0033CC00
66CC3359CC33
66CC667FCC66
66CC997FCC66
66CCCC7FCC66
66CCFF8CFF66
66FF003FFF00
66FF3365FF32
66FF668CFF66
66FF998CFF66
66FFCC8CFF66
66FFFF8CFF66
990000269900
990033269900
990066269900
990099269900
9900CC33CC00
9900FF3FFF00
993300269900
9933334C9933
9933664C9933
9933994C9933
9933CC59CC33
9933FF65FF32
996600269900
9966334C9933
996666729966
996699729966
9966CC7FCC66
9966FF8CFF66
999900269900
9999334C9933
999966729966
999999999999
9999CCA5CC99
9999FFB2FF99
99CC0033CC00
99CC3359CC33
99CC667FCC66
99CC99A5CC99
99CCCCA5CC99
99CCFFB2FF99
99FF003FFF00
99FF3365FF32
99FF668CFF66
99FF99B2FF99
99FFCCB2FF99
99FFFFB2FF99
CC000033CC00
CC003333CC00
CC006633CC00
CC009933CC00
CC00CC33CC00
CC00FF3FFF00
CC330033CC00
CC333359CC33
CC336659CC33
CC339959CC33
CC33CC59CC33
CC33FF65FF32
CC660033CC00
CC663359CC33
CC66667FCC66
CC66997FCC66
CC66CC7FCC66
CC66FF8CFF66
CC990033CC00
CC993359CC33
CC99667FCC66
CC9999A5CC99
CC99CCA5CC99
CC99FFB2FF99
CCCC0033CC00
CCCC3359CC33
CCCC667FCC66
CCCC99A5CC99
CCCCCCCCCCCC
CCCCFFD8FFCC
CCFF003FFF00
CCFF3365FF32
CCFF668CFF66
CCFF99B2FF99
CCFFCCD8FFCC
CCFFFFD8FFCC
FF00003FFF00
FF00333FFF00
FF00663FFF00
FF00993FFF00
FF00CC3FFF00
FF00FF3FFF00
FF33003FFF00
FF333365FF32
FF336665FF32
FF339965FF32
FF33CC65FF32
FF33FF65FF32
FF66003FFF00
FF663365FF32
FF66668CFF66
FF66998CFF66
FF66CC8CFF66
FF66FF8CFF66
FF99003FFF00
FF993365FF32
FF99668CFF66
FF9999B2FF99
FF99CCB2FF99
FF99FFB2FF99
FFCC003FFF00
FFCC3365FF32
FFCC668CFF66
FFCC99B2FF99
FFCCCCD8FFCC
FFCCFFD8FFCC
FFFF003FFF00
FFFF3365FF32
FFFF668CFF66
FFFF99B2FF99
FFFFCCD8FFCC
FFFFFFFFFFFF

Blackcurrant

000000000000
000033330033
000066660066
000099990099
0000CCCC00CC
0000FFFF00FF
003300330033
003333330033
003366660066
003399990099
0033CCCC00CC
0033FFFF00FF
006600660066
006633660066
006666660066
006699990099
0066CCCC00CC
0066FFFF00FF
009900990099
009933990099
009966990099
009999990099
0099CCCC00CC
0099FFFF00FF
00CC00CC00CC
00CC33CC00CC
00CC66CC00CC
00CC99CC00CC
00CCCCCC00CC
00CCFFFF00FF
00FF00FF00FF
00FF33FF00FF
00FF66FF00FF
00FF99FF00FF
00FFCCFF00FF
00FFFFFF00FF
330000330033
330033330033
330066660066
330099990099
3300CCCC00CC
3300FFFF00FF
333300330033
333333333333
333366663366
333399993399
3333CCCC33CC
3333FFFF32FF
336600660066
336633663366
336666663366
336699993399
3366CCCC33CC
3366FFFF32FF
339900990099
339933993399
339966993399
339999993399
3399CCCC33CC
3399FFFF32FF
33CC00CC00CC
33CC33CC33CC
33CC66CC33CC
33CC99CC33CC
33CCCCCC33CC
33CCFFFF32FF
33FF00FF00FF
33FF33FF32FF
33FF66FF32FF
33FF99FF32FF
33FFCCFF32FF
33FFFFFF32FF
660000660066
660033660066
660066660066
660099990099
6600CCCC00CC
6600FFFF00FF
663300660066
663333663366
663366663366
663399993399
6633CCCC33CC
6633FFFF32FF
666600660066
666633663366
666666666666
666699996699
6666CCCC66CC
6666FFFF66FF
669900990099
669933993399
669966996699
669999996699
6699CCCC66CC
6699FFFF66FF
66CC00CC00CC
66CC33CC33CC
66CC66CC66CC
66CC99CC66CC
66CCCCCC66CC
66CCFFFF66FF
66FF00FF00FF
66FF33FF32FF
66FF66FF66FF
66FF99FF66FF
66FFCCFF66FF
66FFFFFF66FF
990000990099
990033990099
990066990099
990099990099
9900CCCC00CC
9900FFFF00FF
993300990099
993333993399
993366993399
993399993399
9933CCCC33CC
9933FFFF32FF
996600990099
996633993399
996666996699
996699996699
9966CCCC66CC
9966FFFF66FF
999900990099
999933993399
999966996699
999999999999
9999CCCC99CC
9999FFFF99FF
99CC00CC00CC
99CC33CC33CC
99CC66CC66CC
99CC99CC99CC
99CCCCCC99CC
99CCFFFF99FF
99FF00FF00FF
99FF33FF32FF
99FF66FF66FF
99FF99FF99FF
99FFCCFF99FF
99FFFFFF99FF
CC0000CC00CC
CC0033CC00CC
CC0066CC00CC
CC0099CC00CC
CC00CCCC00CC
CC00FFFF00FF
CC3300CC00CC
CC3333CC33CC
CC3366CC33CC
CC3399CC33CC
CC33CCCC33CC
CC33FFFF32FF
CC6600CC00CC
CC6633CC33CC
CC6666CC66CC
CC6699CC66CC
CC66CCCC66CC
CC66FFFF66FF
CC9900CC00CC
CC9933CC33CC
CC9966CC66CC
CC9999CC99CC
CC99CCCC99CC
CC99FFFF99FF
CCCC00CC00CC
CCCC33CC33CC
CCCC66CC66CC
CCCC99CC99CC
CCCCCCCCCCCC
CCCCFFFFCCFF
CCFF00FF00FF
CCFF33FF32FF
CCFF66FF66FF
CCFF99FF99FF
CCFFCCFFCCFF
CCFFFFFFCCFF
FF0000FF00FF
FF0033FF00FF
FF0066FF00FF
FF0099FF00FF
FF00CCFF00FF
FF00FFFF00FF
FF3300FF00FF
FF3333FF32FF
FF3366FF32FF
FF3399FF32FF
FF33CCFF32FF
FF33FFFF32FF
FF6600FF00FF
FF6633FF32FF
FF6666FF66FF
FF6699FF66FF
FF66CCFF66FF
FF66FFFF66FF
FF9900FF00FF
FF9933FF32FF
FF9966FF66FF
FF9999FF99FF
FF99CCFF99FF
FF99FFFF99FF
FFCC00FF00FF
FFCC33FF32FF
FFCC66FF66FF
FFCC99FF99FF
FFCCCCFFCCFF
FFCCFFFFCCFF
FFFF00FF00FF
FFFF33FF32FF
FFFF66FF66FF
FFFF99FF99FF
FFFFCCFFCCFF
FFFFFFFFFFFF

Cherry

000000000000
000033330000
000066660000
000099990000
0000CCCC0000
0000FFFF0000
003300330000
003333330000
003366660000
003399990000
0033CCCC0000
0033FFFF0000
006600660000
006633660000
006666660000
006699990000
0066CCCC0000
0066FFFF0000
009900990000
009933990000
009966990000
009999990000
0099CCCC0000
0099FFFF0000
00CC00CC0000
00CC33CC0000
00CC66CC0000
00CC99CC0000
00CCCCCC0000
00CCFFFF0000
00FF00FF0000
00FF33FF0000
00FF66FF0000
00FF99FF0000
00FFCCFF0000
00FFFFFF0000
330000330000
330033330000
330066660000
330099990000
3300CCCC0000
3300FFFF0000
333300330000
333333333333
333366663333
333399993333
3333CCCC3333
3333FFFF3232
336600660000
336633663333
336666663333
336699993333
3366CCCC3333
3366FFFF3232
339900990000
339933993333
339966993333
339999993333
3399CCCC3333
3399FFFF3232
33CC00CC0000
33CC33CC3333
33CC66CC3333
33CC99CC3333
33CCCCCC3333
33CCFFFF3232
33FF00FF0000
33FF33FF3232
33FF66FF3232
33FF99FF3232
33FFCCFF3232
33FFFFFF3232
660000660000
660033660000
660066660000
660099990000
6600CCCC0000
6600FFFF0000
663300660000
663333663333
663366663333
663399993333
6633CCCC3333
6633FFFF3232
666600660000
666633663333
666666666666
666699996666
6666CCCC6666
6666FFFF6666
669900990000
669933993333
669966996666
669999996666
6699CCCC6666
6699FFFF6666
66CC00CC0000
66CC33CC3333
66CC66CC6666
66CC99CC6666
66CCCCCC6666
66CCFFFF6666
66FF00FF0000
66FF33FF3232
66FF66FF6666
66FF99FF6666
66FFCCFF6666
66FFFFFF6666
990000990000
990033990000
990066990000
990099990000
9900CCCC0000
9900FFFF0000
993300990000
993333993333
993366993333
993399993333
9933CCCC3333
9933FFFF3232
996600990000
996633993333
996666996666
996699996666
9966CCCC6666
9966FFFF6666
999900990000
999933993333
999966996666
999999999999
9999CCCC9999
9999FFFF9999
99CC00CC0000
99CC33CC3333
99CC66CC6666
99CC99CC9999
99CCCCCC9999
99CCFFFF9999
99FF00FF0000
99FF33FF3232
99FF66FF6666
99FF99FF9999
99FFCCFF9999
99FFFFFF9999
CC0000CC0000
CC0033CC0000
CC0066CC0000
CC0099CC0000
CC00CCCC0000
CC00FFFF0000
CC3300CC0000
CC3333CC3333
CC3366CC3333
CC3399CC3333
CC33CCCC3333
CC33FFFF3232
CC6600CC0000
CC6633CC3333
CC6666CC6666
CC6699CC6666
CC66CCCC6666
CC66FFFF6666
CC9900CC0000
CC9933CC3333
CC9966CC6666
CC9999CC9999
CC99CCCC9999
CC99FFFF9999
CCCC00CC0000
CCCC33CC3333
CCCC66CC6666
CCCC99CC9999
CCCCCCCCCCCC
CCCCFFFFCCCC
CCFF00FF0000
CCFF33FF3232
CCFF66FF6666
CCFF99FF9999
CCFFCCFFCCCC
CCFFFFFFCCCC
FF0000FF0000
FF0033FF0000
FF0066FF0000
FF0099FF0000
FF00CCFF0000
FF00FFFF0000
FF3300FF0000
FF3333FF3232
FF3366FF3232
FF3399FF3232
FF33CCFF3232
FF33FFFF3232
FF6600FF0000
FF6633FF3232
FF6666FF6666
FF6699FF6666
FF66CCFF6666
FF66FFFF6666
FF9900FF0000
FF9933FF3232
FF9966FF6666
FF9999FF9999
FF99CCFF9999
FF99FFFF9999
FFCC00FF0000
FFCC33FF3232
FFCC66FF6666
FFCC99FF9999
FFCCCCFFCCCC
FFCCFFFFCCCC
FFFF00FF0000
FFFF33FF3232
FFFF66FF6666
FFFF99FF9999
FFFFCCFFCCCC
FFFFFFFFFFFF

AUTHOR ^

Pete Sergeant - pete@clueball.com

SEE ALSO ^

http://www.tango.com

LICENSE ^

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

Tango is someone else's registered trademark - see: http://www.tango.com

syntax highlighting: