Help for this page

Select Code to Download


  1. or download this
            my( $c, @lineSegs ) = 1;
            for my $x ( 0 .. $X - 2 ) {
    ...
            push @lineSegs, [ $c, $colors[ - 1] ];
            $Qout->enqueue( [ $y, \@lineSegs ] );
    
  2. or download this
        while( my $line = $Qresults->dequeue ) {
            my( $y, $l ) = @{ $line };
    ...
                $i->line( $x, $y, $x + $count, $y, $color );
                $x += $count;
            }
    
  3. or download this
            ## calculate the Mandelbrot values for half the line
            my @colors;
    ...
            
            ## Queue back the line segments for half the line.
            $Qout->enqueue( [ $y, \@lineSegs ] );
    
  4. or download this
        while( my $line = $Qresults->dequeue ) {
            my( $y, $l ) = @{ $line };
    ...
                $x += $count;
            }
        }