Vendetta/helium/api/scale size

From Quasar-RCE
Revision as of 20:47, 5 June 2025 by Luxen (talk | contribs) (created helium.util.scale_size)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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