Creates a Gaussian mask function for use with grating stimuli
Standard deviation of the Gaussian function (controls spread)
A mask function that takes normalized coordinates and returns opacity
// Create a soft-edged circular maskconst softMask = GaussianMask(0.3);using gratingScene = app.scene(Grating, { defaultProps: { type: 'sin', size: [200, 200], sf: 0.05, mask: softMask, },});await gratingScene.show(); Copy
// Create a soft-edged circular maskconst softMask = GaussianMask(0.3);using gratingScene = app.scene(Grating, { defaultProps: { type: 'sin', size: [200, 200], sf: 0.05, mask: softMask, },});await gratingScene.show();
Creates a Gaussian mask function for use with grating stimuli