Using a custom brush and style
To make our custom brush readable, we must force GD not to draw it in place of every pixel and then use that style in conjunction with the brush by setting the color of the operation to the IMG_COLOR_STYLEBRUSHED

Using brushes with style
<?php
    define
("WIDTH"450);
    
define("HEIGHT"450);
    
define("B_WIDTH"20);
    
define("B_HEIGHT",20);

    
$img imagecreate(WIDTHHEIGHT);
    
$background $white imagecolorallocate($img0xFF0xFF0xFF);
    
$black imagecolorallocate($img000);

    
$brush imagecreate(B_WIDTHB_HEIGHT);
    
$b_bkgr $b_white imagecolorallocate($brush0xFF0xFF0xFF);
    
$b_black imagecolorallocate($brush000);
    
imagecolortransparent($brush$b_bkgr);
    
imageellipse($brushB_WIDTH/2B_HEIGHT/2B_WIDTH/2B_HEIGHT/2$black);

    
imagerectangle($img00WIDTH-1HEIGHT-1$black);
    
    
imagesetbrush($img$brush);
    
    
$style_a array_fill(0B_WIDTH/20);
    
$style_a[] = 1;
    
imagesetstyle($img$style_a);
    
imageline($img050WIDTH-150IMG_COLOR_STYLEDBRUSHED);
    
    
$style_b array_fill(0B_WIDTH/40);
    
$style_b[] = 1;
    
imagesetstyle($img$style_b);
    
imageline($img0100WIDTH-1100IMG_COLOR_STYLEDBRUSHED);
    
    
$style_c array_fill(0B_WIDTH/80);
    
$style_c[] = 1;
    
imagesetstyle($img$style_c);
    
imageline($img0150WIDTH-1150IMG_COLOR_STYLEDBRUSHED);

    
header("Content-Type: image/png");
    
imagepng($img);   
?>