Pythonoverlaylib

Latest version: v1.2

Safety actively analyzes 683530 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.2

Features

- **Transparent Overlay**: The application creates a transparent overlay that stays on top of other windows. This allows you to draw shapes that are visible while still being able to see and interact with the underlying windows.

- **Customizable Shapes**: The application supports drawing of various shapes including circles. Each shape can be customized with its own position, size, color, and thickness.

- **Dynamic Drawing**: The application supports dynamic drawing through a callback function. This function is called at a regular interval and should return a list of shapes to be drawn. This allows the overlay to be updated dynamically based on your application's state.

- **DrawObject Fill**: The application supports drawing the inside of an object, it also has the ability to draw with gradients by using the `RgbaGradient` class

Example Usage

python
import overlay_lib
from overlay_lib import Vector2D, RgbaTuple, DrawCircle

def callback():
return [SkDrawCircle(Vector2D(960, 540), 10, RgbaTuple(255, 255, 255, 255), 1)]

overlay = overlay_lib.Overlay(
drawlistCallback=callback,
refreshTimeout=1
)

overlay.spawn()


In this example, the callback function returns a list containing a single circle, which is drawn at the center of the screen. The `refreshTimeout` parameter determines how often the callback function is called, in milliseconds.

**Full Changelog**: https://github.com/LUXTACO/PythonOverlayLib/commits/V1.2

1.0

Features

- **Transparent Overlay**: The application creates a transparent overlay that stays on top of other windows. This allows you to draw shapes that are visible while still being able to see and interact with the underlying windows.

- **Customizable Shapes**: The application supports drawing of various shapes including circles. Each shape can be customized with its own position, size, color, and thickness.

- **Dynamic Drawing**: The application supports dynamic drawing through a callback function. This function is called at a regular interval and should return a list of shapes to be drawn. This allows the overlay to be updated dynamically based on your application's state.

Example Usage

python
import overlay_lib
from overlay_lib import Vector2D, RgbaTuple, DrawCircle

def callback():
return [DrawCircle(Vector2D(960, 540), 10, RgbaTuple(255, 255, 255, 255), 1)]

overlay = overlay_lib.Overlay(
drawlistCallback=callback,
refreshTimeout=1
)

overlay.spawn()


In this example, the callback function returns a list containing a single circle, which is drawn at the center of the screen. The `refreshTimeout` parameter determines how often the callback function is called, in milliseconds.

**Full Changelog**: https://github.com/LUXTACO/PythonOverlayLib/commits/V1.0

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.