bbi.camera.screen_droplets

class ScreenDroplets(joseph_service: JosephService, camera_id: str)

Bases: object

Class handling rain droplets on the lens of a single camera.

property preset: ScreenDropletsPreset
property blur: float
property speed: float
property scroll_offset_x: float
property scroll_offset_y: float
property drips_intensity: float
property scale: float
set_preset(preset: ScreenDropletsPreset) None

Set the visibility of rain droplets on this camera’s lens.

Parameters:

preset (ScreenDropletsPreset) – The type of rain droplets effect on the camera lens.

set_blur(blur: float) None

Set the blur intensity of droplets on this camera’s lens.

Parameters:

blur (float) – The intensity of the blur effect. A value of 0 means no blur, while a value of 1 means maximum blur.

set_speed(speed: float) None

Set the speed of blurry droplets on this camera’s lens.

Parameters:

speed (float) – How quickly the droplets move across the screen. Must be between -1 and 1.

set_scroll_offset_x(offset_x: float) None

Set the horizontal starting position of the rain droplets on this camera’s lens.

Parameters:

offset_x (float) – The horizontal scroll offset of the rain droplets on the screen.

set_scroll_offset_y(offset_y: float) None

Set the vertical starting position of the rain droplets on this camera’s lens.

Parameters:

offset_y (float) – The vertical scroll offset of the rain droplets on the screen.

set_drips_intensity(intensity: float) None

Set the drips intensity of the rain droplets on this camera’s lens.

Parameters:

intensity (float) – The drips intensity of the rain droplets on the screen.

set_scale(scale: float) None

Set the scale of the rain droplets on this camera’s lens.

Parameters:

scale (float) – The scale of the rain droplets on the screen.