- light_colour = self.COLOURS[self.colour]
- intensity = int(255 * self.intensity)
- light_colour = light_colour + (intensity,)
-
- overlay_surf.blit(ray_mask, dest_rect, dest_rect)
- dt.lap("blitted ray mask to overlay")
- overlay_surf.fill(light_colour, None, pgl.BLEND_RGBA_MULT)
- dt.lap("coloured overlay")
-
- surface.blit(overlay_surf, dest_rect, dest_rect)