HACKERBOT

shotting.cc

DEFCON-1

HOME

WELCOME TO SHOTTING.CC

Working-with-similar-Mandelbrot-set-graphics-code

I get the above image. The source code for PHP Graphics I used is below.

<?php require_once( "glib.php" ); $ge = new GraphicsEnvironment( 640, 480 ); $ge->addColor( "black", 0, 0, 0 ); $ge->addColor( "red", 255, 0, 0 ); $ge->addColor( "green", 0, 255, 0 ); $ge->addColor( "blue", 0, 0, 255 ); $gobjs = array(); $x2 = 0; for ($x1 = $x2; $x2 < 480; $x2++) { for ($i = 0; $i < 0.5; $i = $i + 0.1) { $y1 = $y1 +$x2 + $y2 + 0.1; $y2 = $y2 + $x2 + 0.1;} $gobjs[] = new Line( "blue", $x1, $y1, $x2, $y2); for ($i = 0; $i < 0.5; $i = $i + 0.1) { $x2 = $x2 + 0.1; $y2 = $y2 + 0.1; $x1 = $x1 + 0.1; $y1 = $y2 + $x2 + 0.1;} $gobjs[] = new Line( "red", $x1, $x2, $y1, $y2); } foreach( $gobjs as $gobj ) { $gobj->render( $ge ); } $ge->saveAsPng( "test.png" ); ?>

The code for glib.php can be found here Glib.txt

Valid CSS!