You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Python 3.5 as a minimum supported version (95b917f)
Make Corsair* enums hashable and sortable (17a786f)
LED colors and positions are dicts now. Affected api: get_led_colors_by_device_index, get_led_positions_by_device_index and set_led_colors_buffer_by_device_index. (fa14c9b)
Add cuesdk.helpers submodule with ColorRgb helper class (134a2ba)
Usage:
fromcuesdk.helpersimportColorRgbimportcolorsys# parse hex string and return tuple to use in sdkrgb_tuple=ColorRgb.from_hexstr("aa22ff").rgb# convert vector of floats in range [0, 1] to rgb range in [0, 255] and print as hexprint(ColorRgb.from_vec3(1.0, 0.5, 0))
# work with colorsys color convertershue=0.14print(ColorRgb.from_vec3(*colorsys.hls_to_rgb(hue, .5, .7)))
doc: Add type hints and improve docstrings (fa14c9b)