Vendetta/helium/api/scale size

From Quasar-RCE
Jump to navigationJump to search

Using the font default size, which is based on the user's vertical screen height, this function lets a number be scaled up when provided with the original value on the development system.

Definition

helium.util.scale_size(value_to_change, base_size) -> changed_value

Arguments

value_to_change: type number: The value that needs to be scaled up base_size: type number: This is the Font.Default value on the development system. If not provided, 24 is the default.

Returns

changed_value: type number: the output value after scaling.

Notes