crs12decoder Posted May 11, 2011 Report Posted May 11, 2011 Faceti un script php care sa genereze niste triunghiuri cu forma random. Quote
turnback Posted May 11, 2011 Report Posted May 11, 2011 De curiozitate, ce inseamna "forma random" la un triunghi? Quote
Xander Posted May 11, 2011 Report Posted May 11, 2011 http://theporn.me/tri.php?max=1000&n=50&maxdist=200&mindist=90 Quote
Birkoff Posted May 12, 2011 Report Posted May 12, 2011 ms, da e scris de cineva care e castigator la olimpiada la info... oricum ma gandeam ca ceva de genul ala se vrea... Quote
crs12decoder Posted May 12, 2011 Author Report Posted May 12, 2011 Xander wins. Dragutz. Sursa? Quote
Xander Posted May 31, 2011 Report Posted May 31, 2011 uitasem de topicu astasursa: http://theporn.me/tri.phps Quote
djwap Posted May 31, 2011 Report Posted May 31, 2011 Am facut si eu un mic script./** * @author djwap * @copyright 2011 */header("Content-type: image/png");$width = 500;$height = 500;$fxc = rand(0, $width);$fyc = rand(0, $height);$sxc = rand(0, $width);$syc = rand(0, $height);$sxc2 = $sxc <= floor($width / 2) ? rand(floor($width / 2), $width) : rand(0, floor($width / 2));$syc2 = $syc <= floor($height / 2) ? rand(floor($height / 2), $height): rand(0, floor($height / 2));$i = imagecreate($width, $height);$black = imagecolorallocate($i, 0, 0, 0);$white = imagecolorallocate($i, 255, 255, 255);$blue = imagecolorallocate($i, 0, 128, 255);$red = imagecolorallocate($i, 255, 0, 0);imageline($i, $fxc, $fyc, $sxc, $syc, $white);imageline($i, $sxc, $syc, $sxc2, $syc2, $blue);imageline($i, $fxc, $fyc, $sxc2, $syc2, $red);imagepng($i);imagedestroy($i); Quote