Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add tineye link to ColorCodes

  • Loading branch information...
commit bb8a18eebc9af061c02eaba72b12a382a2fb3564 1 parent a0d1a1f
@crazedpsyc crazedpsyc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/DDG/Goodie/ColorCodes.pm
View
2  lib/DDG/Goodie/ColorCodes.pm
@@ -89,7 +89,7 @@ handle matches => sub {
my $rgb = $col->as_rgb8;
my $hsl = $col->as_hsl;
my $text = sprintf("Hex: %s ~ rgb(%d, %d, %d) ~ rgb(%s, %s, %s) ~ hsl(%d, %s, %s) ~ cmyb(%s, %s, %s, %s)", '#'.$rgb->hex, $col->as_rgb8->rgb8, percentify($col->as_rgb->rgb), round($hsl->hue), percentify($hsl->saturation, $hsl->lightness, $col->as_cmyk->cmyk));
- return $text, html => '<div style="background:#'.$rgb->hex.';border:2px solid #999;height:30px;width:30px;margin:5px;margin-right:10px;margin-top:3px;float:left;"></div>'.$text;
+ return $text, html => '<div style="background:#'.$rgb->hex.';border:2px solid #999;height:30px;width:30px;margin:5px;margin-right:10px;margin-top:3px;float:left;"></div>'.$text." [<a href='http://labs.tineye.com/multicolr#colors=".$rgb->hex.";weights=100;'>Images</a>]";
};
1;
Please sign in to comment.
Something went wrong with that request. Please try again.