File:Euclid's Orchard (large).svg

From formulasearchengine
Jump to navigation Jump to search
    Original file (SVG file, nominally 356 × 356 pixels, file size: 32 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Large depiction of visible trees in Euclid's Orchard
    Date
    Source Own work
    Author Glosser.ca
    SVG development
    InfoField
     The SVG code is valid.
     This vector image was created with Asymptote by dvisvgm.
    llink=Category:Qs icons SVGThis SVG file shows a very simple image. Drawing uncomplicated graphics with a text editor seems more adequate than using a vector graphics program, and will often result in a dramatic reduction of file size.
    For an example, see the file Centered hexagonal = 1 + 6triangular.svg: .
    Source code
    InfoField

    Asymptote code

    int gcd(int a, int b) {
        int t;
        while(b > 0) {
            t = a;
            a = b;
            b = t % b;
        }
    
        return a < 0 ? -a : a;
    }
    
    size(10cm,10cm);
    
    int ndots = 11;
    draw((0,0)--(ndots - 0.5,0),Arrow);
    draw((0,0)--(0,ndots - 0.5),Arrow);
    
    for(int i = 1; i < ndots; ++i) {
        for(int j = 1; j < ndots; ++j) {
            pair tree = (i, j);
            path circ = circle(tree, 0.35);
    
            if(gcd(i, j) == 1) {
                fill(circ, heavyblue);
            } else {
                fill(circ, heavyred+opacity(0.2));
            }
        }
    }
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    29 December 2012

    32,587 byte

    image/svg+xml

    f5eb47f7f67e3369bda197f17447992b661563f4

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current04:34, 3 January 2013Thumbnail for version as of 04:34, 3 January 2013356 × 356 (32 KB)wikimediacommons>RayhemReduced red opacity to improve pattern contrast

    There are no pages that use this file.