The task of dynamically blurring a dot and ensuring the background blends seamlessly into the screen in MATLAB can be done cleanly using alpha blending and Gaussian filters.
The "AlphaBlender" System object combines two images, overlays one image over another, or highlights selected pixels.
Below are the steps that can help you in getting started:
- Set paramters and create a canvas.
- Draw the dot.
- Apply Gaussian Blur, use "fspecial('gaussian', size, sigma)" to create a blur kernel and then apply it with "imfilter" to each RGB channel to create a soft-edged blurred dot.
- Use "imshow" to show the final image.
Refer to the following documentation for alpha blender: https://www.mathworks.com/help/vision/ref/vision.alphablender-system-object.html
For Gaussian filters refer to https://www.mathworks.com/help/images/ref/imgaussfilt.html
Hope this helps!