addcolor(0x00, 0x00, 0x00,0); $gradient->addcolor(0x00, 0x00, 0x99,50); $gradient->addcolor(0x00, 0x00, 0x00,100); $display = $gradient->buildgradient(100,150); header('content-type: image/png'); imagepng($display); ImageDestroy ($display); ?>