11 my $hline = Tikz->line(-1 => 1);
12 my $vline = Tikz->line([ 0, -1 ] => [ 0, 1 ]);
15 $_->mod(Tikz->color('red')) for $hline, $vline;
19 my $octo = Tikz->closed_polyline(
20 map Math::Complex->emake(1, ($_ * pi)/4), 0 .. 7
23 # Only keep a portion of it
24 $octo->clip(Tikz->rectangle(-0.5*(1+i), 2*(1+i)));
27 $octo->mod(Tikz->pattern(class => 'Dots'));
29 # Create a formatter object
30 my $tikz = Tikz->formatter(scale => 5);
32 # Put those objects all together and print them
33 my $seq = Tikz->seq($octo, $hline, $vline);
34 my ($head, $decl, $body) = $tikz->render($seq);
36 "\\documentclass[12pt]{article}",
46 print "$_\n" for @lines;