From 727b0648d8101ec570a53cabc7e1bb8f195fe08c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 5 Jan 2024 02:50:22 +0000 Subject: lots of ui --- hsluv.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hsluv.lua') diff --git a/hsluv.lua b/hsluv.lua index 1ff199a..e076856 100644 --- a/hsluv.lua +++ b/hsluv.lua @@ -20,16 +20,16 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -hsluv = {} +local hsluv = {} -hexChars = "0123456789abcdef" +local hexChars = "0123456789abcdef" -distance_line_from_origin = function(line) +local distance_line_from_origin = function(line) return math.abs(line.intercept) / math.sqrt((line.slope ^ 2) + 1) end -length_of_ray_until_intersect = function(theta, line) +local length_of_ray_until_intersect = function(theta, line) return line.intercept / (math.sin(theta) - line.slope * math.cos(theta)) end -- cgit v1.2.3