Arrangements for controlling intensity of ray or beam