Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
$color = $_GET['color'];
$r = hexdec(substr($color, 0, 2));
$g = hexdec(substr($color, 2, 2));
$b = hexdec(substr($color, 4, 2));
$bild = imagecreate(70, 50);
$bg = imagecolorallocate($bild, 255, 255, 255);
imagecolortransparent($bild, $bg);
$farbe = imagecolorallocate($bild, $r, $g, $b);
imageantialias($bild, true);
<?php
$im = imageCreateTruecolor(300, 201);
$c = imageColorAllocate($im, 255, 255, 255);
imageFill($im, 0, 0, $c);
imageSaveAlpha($im, true);
imageAlphaBlending($im, false);
for ($i = 0; $i < 300; $i++){
$y = 100 - sin($i/300 * 2*pi())*100;
$lo = floor($y);
$prc = $y - $lo;
$c = imageColorAllocateAlpha($im, 0, 0, 0, 0x7F * $prc);
imageSetPixel($im, $i, $y, $c);
$c = imageColorAllocateAlpha($im, 0, 0, 0, 0x7F * (1 - $prc));
imageSetPixel($im, $i, $y + 1, $c);
}
header("Content-Type: image/png");
imagePNG($im);
?>
$color = $_GET['color'];
$r = hexdec(substr($color, 0, 2));
$g = hexdec(substr($color, 2, 2));
$b = hexdec(substr($color, 4, 2));
$revers_r = (255 - $r);
$revers_g = (255 - $g);
$revers_b = (255 - $b);
$bild = imagecreatetruecolor(70, 50);
imageantialias($bild, true);
$bg = imagecolorallocate($bild, $revers_r, $revers_g, $revers_b);
imagecolortransparent($bild, $bg);
$farbe = imagecolorallocate($bild, $r, $g, $b);
Wenn man nur Pixel setzt, dann gibt es keine Linienstärke. Du musst entsprechend mehr oder weniger Pixel in der richtigen Richtung setzen (im Idealfall rechter Winkel zur Strichrichtung, wobei das bei engeren Kurven außen zu Lücken und innen zu Doppelbelegungen führen könnte - ist also nicht ganz trivial).wo ich die linienstärke änder