crs12decoder Posted May 11, 2011 Report Share Posted May 11, 2011 Faceti un script php care sa genereze niste triunghiuri cu forma random. Quote Link to comment Share on other sites More sharing options...
turnback Posted May 11, 2011 Report Share Posted May 11, 2011 De curiozitate, ce inseamna "forma random" la un triunghi? Quote Link to comment Share on other sites More sharing options...
Xander Posted May 11, 2011 Report Share Posted May 11, 2011 http://theporn.me/tri.php?max=1000&n=50&maxdist=200&mindist=90 Quote Link to comment Share on other sites More sharing options...
Birkoff Posted May 11, 2011 Report Share Posted May 11, 2011 ceva de genu asta? 3D cu PHP-GD Quote Link to comment Share on other sites More sharing options...
wildchild Posted May 12, 2011 Report Share Posted May 12, 2011 @birkoff, foarte fain tutorialul Quote Link to comment Share on other sites More sharing options...
Birkoff Posted May 12, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
crs12decoder Posted May 12, 2011 Author Report Share Posted May 12, 2011 Xander wins. Dragutz. Sursa? Quote Link to comment Share on other sites More sharing options...
Xander Posted May 31, 2011 Report Share Posted May 31, 2011 uitasem de topicu astasursa: http://theporn.me/tri.phps Quote Link to comment Share on other sites More sharing options...
djwap Posted May 31, 2011 Report Share 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 Link to comment Share on other sites More sharing options...