<commit_before>## NAME

n-flake.p6

## USAGE

Generate an SVG n-flake to STDOUT. Redirect into a file to capture / display it.

Takes 4 optional parameters:

    [--sides=<Int>] [--order=<Int>] [--radius=<Int>] [--color=<Str>]

     --sides=n where <n> > 2. Default: 5.

     --order=k "levels of recursion" Default: 5.

     --radius=r n-flake will be inscribed in a circle with radius <r>,
                effectively 1/2 the height, width of the final image.

     --color=string Any color string accepted by SVG. Default: blue


At a command prompt enter:

    perl6 n-flake.p6 > n-flake.svg

The defaults produce a 600 x 600 pixel blue 5th order pentaflake.
(A Sierpinski pentagon)

Open with an image viewer or most modern web browsers.

You can specify various parameters too:

    perl6 n-flake.p6 --sides=6 --order=4 --color='red' --radius=500 > 6flake4.svg

will result in a 1000 x 1000 red fourth order hexaflake.

    perl6 n-flake.p6 --sides=3 --order=0  > 3flake0.svg
    perl6 n-flake.p6 --sides=3 --order=1  > 3flake1.svg
    perl6 n-flake.p6 --sides=3 --order=2  > 3flake2.svg
    perl6 n-flake.p6 --sides=3 --order=3  > 3flake3.svg
    perl6 n-flake.p6 --sides=3 --order=4  > 3flake4.svg
    perl6 n-flake.p6 --sides=3 --order=5  > 3flake5.svg
    perl6 n-flake.p6 --sides=3 --order=6  > 3flake6.svg
    perl6 n-flake.p6 --sides=3 --order=7  > 3flake7.svg

to get a progression of Sierpinski triangles.<commit_msg>Add default size<commit_after>## NAME

n-flake.p6

## USAGE

Generate an SVG n-flake to STDOUT. Redirect into a file to capture / display it.

Takes 4 optional parameters:

    [--sides=<Int>] [--order=<Int>] [--radius=<Int>] [--color=<Str>]

     --sides=n where <n> > 2. Default: 5.

     --order=k "levels of recursion" Default: 5.

     --radius=r n-flake will be inscribed in a circle with radius <r>,
                effectively 1/2 the height, width of the final image.
                Default: 300

     --color=string Any color string accepted by SVG. Default: blue


At a command prompt enter:

    perl6 n-flake.p6 > n-flake.svg

The defaults produce a 600 x 600 pixel blue 5th order pentaflake.
(A Sierpinski pentagon)

Open with an image viewer or most modern web browsers.

You can specify various parameters too:

    perl6 n-flake.p6 --sides=6 --order=4 --color='red' --radius=500 > 6flake4.svg

will result in a 1000 x 1000 red fourth order hexaflake.

    perl6 n-flake.p6 --sides=3 --order=0  > 3flake0.svg
    perl6 n-flake.p6 --sides=3 --order=1  > 3flake1.svg
    perl6 n-flake.p6 --sides=3 --order=2  > 3flake2.svg
    perl6 n-flake.p6 --sides=3 --order=3  > 3flake3.svg
    perl6 n-flake.p6 --sides=3 --order=4  > 3flake4.svg
    perl6 n-flake.p6 --sides=3 --order=5  > 3flake5.svg
    perl6 n-flake.p6 --sides=3 --order=6  > 3flake6.svg
    perl6 n-flake.p6 --sides=3 --order=7  > 3flake7.svg

to get a progression of Sierpinski triangles.
{'fraction_non_alphanumeric': 0.1274171270718232, 'fraction_numerical': 0.05697513812154696, 'mean_word_length': 2.580964153275649, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1231967', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1094, 'n_words': 345}