APL Wiki logo: Difference between revisions

Jump to navigation Jump to search
8 bytes added ,  19:21, 7 January 2020
Line 268: Line 268:
Since the circles on the first row and in the first column are at position 0, we need our SVG to begin a bit further to the top left. Similarly, it needs to end a bit further to the bottom right than the last circle. How much? Well, the maximum radius (which would extend up and to the left) in the first row (and column) is:
Since the circles on the first row and in the first column are at position 0, we need our SVG to begin a bit further to the top left. Similarly, it needs to end a bit further to the bottom right than the last circle. How much? Well, the maximum radius (which would extend up and to the left) in the first row (and column) is:
<source lang=apl>
<source lang=apl>
       ⌈/1↑r
       ⌈/1↑sizes
3
3
</source>
</source>
But let's add a bit more so the circles don't touch the image edge:
But let's add a bit more so the circles don't touch the image edge:
<source lang=apl>
<source lang=apl>
       ⊢pad←2+⌈/1↑r
       ⊢pad←2+⌈/1↑sizes
5
5
</source>
</source>

Navigation menu