Description Usage Arguments Details Value Note Examples

let a field decrease linearly towards its edges

1 | ```
smooth_borders(x, r)
``` |

`x` |
a real matrix |

`r` |
a positive integer |

Values within the field are linearly reduced from their original value to the field minimum, starting `r`

pixels away from the edge. This enforces truely periodic boundaries and removes sharp edges.

a matrix of the same dimensions as x

r must not be larger than `min( dim(x) )/2`

.

1 | ```
image( smooth_borders(blossom, r=64), col=gray.colors(128,0,1) )
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.