I want to create a circular map similar to how we would create a gaussian map and scale the circular map to 255. how could I do the same?

let me rephrase my question. I want to draw a circular map of radius 10 which is scaled at 255.

What do you mean about ‘scaled at 255’? Is pixel value of center of circle is 255 and pixel value of border is 0?

yes that is right pixel value of center of circle is 255 and pixel value of border is 0.

Maybe this sample work for you.

```
import numpy as np
import matplotlib.pyplot as plt
I = np.zeros((500, 500))
radius = 100
x, y = np.ogrid[-radius: radius, -radius: radius]
cy = 200
cx = 300
index = x**2 + y**2 <= radius**2
a = np.sqrt((radius - abs(y))**2 + (radius - abs(x))**2)
a = (a / a.max()) * 255
I[cy-radius:cy+radius, cx-radius:cx+radius][index] = a[index]
plt.imshow(I)
plt.show()
```