View source: R/generateSinusoid.R
generateSinusoid | R Documentation |
Generate single sinusoid patch
generateSinusoid(img_size, cycles, angle, phase, contrast)
img_size |
Integer specifying size of sinusoid patch in number of pixels. |
cycles |
Integer specifying number of cycles sinusoid should span. |
angle |
Value specifying the angle (rotation) of the sinusoid. |
phase |
Value specifying phase of sinusoid. |
contrast |
Value between -1.0 and 1.0 specifying contrast of sinusoid. |
The sinusoid image with size img_size
.
generateSinusoid(512, 2, 90, pi/2, 1.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.