minetest_x_bows/bin/lua-language-server-3.5.6-l.../meta/default utf8/UnityEngine.Accessibility.lua

27 lines
1.0 KiB
Lua
Raw Normal View History

2022-11-03 10:37:33 -05:00
---@meta
--
--A class containing methods to assist with accessibility for users with different vision capabilities.
--
---@source UnityEngine.AccessibilityModule.dll
---@class UnityEngine.Accessibility.VisionUtility: object
---@source UnityEngine.AccessibilityModule.dll
CS.UnityEngine.Accessibility.VisionUtility = {}
--
--The number of unambiguous colors in the palette.
--
--```plaintext
--Params: palette - An array of colors to populate with a palette.
-- minimumLuminance - Minimum allowable perceived luminance from 0 to 1. A value of 0.2 or greater is recommended for dark backgrounds.
-- maximumLuminance - Maximum allowable perceived luminance from 0 to 1. A value of 0.8 or less is recommended for light backgrounds.
--
--```
--
---@source UnityEngine.AccessibilityModule.dll
---@param palette UnityEngine.Color[]
---@param minimumLuminance float
---@param maximumLuminance float
---@return Int32
function CS.UnityEngine.Accessibility.VisionUtility:GetColorBlindSafePalette(palette, minimumLuminance, maximumLuminance) end