Enhanced glow effect with multiple layers
(self, img, center, radius, color, intensity=0.3)
| 35 | cv2.circle(img, center, radius + i, blended, 1) |
| 36 | |
| 37 | def draw_glow_effect(self, img, center, radius, color, intensity=0.3): |
| 38 | """Enhanced glow effect with multiple layers""" |
| 39 | overlay = np.zeros_like(img, dtype=np.uint8) |
| 40 | for i in range(5): |
| 41 | alpha = intensity * (1 - i/5) |
| 42 | glow_radius = radius + i * 8 |
| 43 | cv2.circle(overlay, center, glow_radius, color, -1) |
| 44 | cv2.addWeighted(img, 1, overlay, alpha, 0, img) |
| 45 | overlay.fill(0) |
| 46 | |
| 47 | def draw_hexagon(self, img, center, radius, color, thickness=2): |
| 48 | """Draw a hexagon shape""" |
no outgoing calls
no test coverage detected