summaryrefslogtreecommitdiff
path: root/hsluv.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-01-05 02:50:22 +0000
committerubq323 <ubq323@ubq323.website>2024-01-05 02:50:22 +0000
commit727b0648d8101ec570a53cabc7e1bb8f195fe08c (patch)
treef5aedd67ed2bc6598eeba6eea57efda7183ce70d /hsluv.lua
parent458895d38c99e669c654d189f1761011ba5f389c (diff)
lots of ui
Diffstat (limited to 'hsluv.lua')
-rw-r--r--hsluv.lua8
1 files changed, 4 insertions, 4 deletions
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