aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Pouar <thepouar@gmail.com>2017-02-18 19:08:10 -0600
committerGravatar Pouar <thepouar@gmail.com>2017-02-18 19:08:10 -0600
commit32fdd26695d65eb251b262652b72a17efce45b95 (patch)
treee1fb467f9044d5d0e931a5dcc739beedd74c2ebc
parentdisclaimer (diff)
ok, not those
-rw-r--r--identifur.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/identifur.php b/identifur.php
index ae1e622..f692964 100644
--- a/identifur.php
+++ b/identifur.php
@@ -23,10 +23,10 @@ else
}
$rgb1=sprintf("%03x",(($hash >> 20) & 0xfff));
$rgb2=sprintf("%03x",(($hash >> 8) & 0xfff));
-$tail=sprintf("%03x",(($hash >> 6) & 0b11));
-$ears=sprintf("%03x",(($hash >> 4) & 0b11));
-$wings=sprintf("%03x",(($hash >> 2) & 0b11));
-$clothes=sprintf("%03x",($hash & 0b11));
+$tail=dechex(($hash >> 6) & 0b11);
+$ears=dechex(($hash >> 4) & 0b11);
+$wings=dechex(($hash >> 2) & 0b11);
+$clothes=dechex($hash & 0b11);
$tailpaths[0]=<<<EOT
<path d="m125.67708 169.622c-21.68755-17.39448-45.257138-13.91836-62.744046 4.91369 15.179415 27.56736 46.724746 15.03834 62.589456 6.11444z" fill="#{$rgb1}" fill-rule="evenodd" stroke="#{$rgb1}" stroke-width=".26458332"/>
EOT;