2 if (isset($_GET['comp']) == FALSE)
5 if (isset($_GET['sfx']) && $_GET['sfx'] == '_side') {
13 $comps = $_GET['comp'];
17 if (mb_strlen($comps, "ASCII") != 12)
20 for ($i = 0, $idx = 0 ; $i < 12 ; $i++) {
21 if (($comps[$i] >= '0' && $comps[$i] <= '9') ||
22 ($comps[$i] >= 'a' && $comps[$i] <= 'f')) {
24 $c[$idx] = hexdec(substr($comps, $i-1, 2));
32 header ('Content-type: image/png');
33 if ($is_side == TRUE) {
34 $img_r = @imagecreatefrompng("img/sup_msk_side_r.png");
35 $img_y = @imagecreatefrompng("img/sup_msk_side_y.png");
38 $img_r = @imagecreatefrompng("img/sup_msk_r.png");
39 $img_y = @imagecreatefrompng("img/sup_msk_y.png");
42 $ret = imagefilter($img_r, IMG_FILTER_COLORIZE, $c[0], $c[1], $c[2], 0);
43 $ret = imagefilter($img_y, IMG_FILTER_COLORIZE, $c[3], $c[4], $c[5], 0);
46 imagecopy($img_r, $img_y, 0,0, 0,0, 6, 16);
48 imagecopy($img_r, $img_y, 0,0, 0,0, 21, 16);
50 imagesavealpha($img_r, TRUE);