Commit Graph

21 Commits

Author SHA1 Message Date
Lars Mueller
50bd3d8a07 Make colorspec.from_string case-insensitive 2023-05-28 10:59:51 +02:00
Lars Mueller
3877e339c6 Support CSS Color Module Level 4 (see minetest/minetest#12204) 2022-04-28 10:31:09 +02:00
Lars Mueller
da0fc453cd Colorspec: Support name#%x 2022-04-21 11:16:57 +02:00
Lars Mueller
5dd5e50704 Colorspec: Use hex numbers to improve readability 2022-04-21 11:10:32 +02:00
Lars Mueller
e048fb3b03 colorspec.from_string(): return nothing if invalid 2021-11-13 23:57:32 +01:00
Lars Mueller
aac9eea46e Colorspec: From & to ARGB / RGBA number renamings 2021-11-13 23:44:29 +01:00
Lars Mueller
9a70d4cc98 Fix colorspec:to_string() 2021-11-13 23:38:58 +01:00
Lars Mueller
2d47f5fd9f colorspec: expose metatable 2021-11-13 23:35:02 +01:00
Lars Mueller
c0ea0dba47 Add colorspec.from_hsv 2021-11-03 23:00:58 +01:00
Lars Mueller
084d5e90c0 Colorspec: Fix from_any(), add to/from ARGB number 2021-10-21 16:13:27 +02:00
Lars Mueller
651593639c minetest.colorspec: simpler error message 2021-09-16 20:28:13 +02:00
Lars Mueller
0f83e6f470 Lower-case error messages 2021-09-10 12:20:50 +02:00
Lars Mueller
9d50e504fd Fix colorspec:to_string 2021-07-12 16:15:37 +02:00
Lars Mueller
e49d75a822 Fix patterns 2021-07-06 09:24:13 +02:00
Lars Mueller
4175974def Redo environments 2021-06-17 19:45:08 +02:00
Lars Mueller
0315a77696 Localize globals per file for all modules 2021-06-11 20:47:29 +02:00
Lars Mueller
adb4b4fdaf Indentation: Use only tabs 2021-03-27 20:10:49 +01:00
Lars Mueller
3acf09eed6 Add colorspec.from_number_rgb 2021-03-27 12:20:57 +01:00
Lars Mueller
6f0dbaaeb3 Fix colorspec.from_string, add tests 2021-03-27 12:18:27 +01:00
Lars Mueller
e212ba7f3b Add minetest.colorspec:to_number_rgb 2021-03-25 17:50:20 +01:00
Lars Mueller
d1baf23814 Split up "minetest" module in multiple files 2021-03-25 17:46:04 +01:00