{"id":"word30210/oklch-rblx","name":"oklch-rblx","scope":"word30210","platform":"roblox","description":"A color library for Roblox that supports Oklch and other color spaces.","version":"0.1.0","latest":"0.1.0","versions":["0.1.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"406596254b7b56aaffebf87cce8e28fa041b8cd89565fc53e6d26be27c7c9ee9","likes":0,"downloads":0,"install":"forest install word30210/oklch-rblx","url":"https://forest.dev/p/roblox/word30210/oklch-rblx","files":"https://api.forest.dev/ai/package/roblox/word30210/oklch-rblx/files","readme":"# OKLCH for Roblox\r\n\r\nA Roblox Lua module that provides **OKLCH <-> sRGB (Color3)** color space conversion.  \r\nThis is a pure math module without any UI — useful if you want to work with perceptually uniform colors in Roblox projects.\r\n\r\nOriginal concept based on [oklch-picker](https://github.com/evilmartians/oklch-picker) by Evil Martians.  \r\nThis project is a **Roblox-compatible port** that focuses only on the conversion logic.\r\n\r\n---\r\n\r\n## ✨ Features\r\n- Convert **OKLCH → Color3 (sRGB)**  \r\n- Convert **Color3 (sRGB) → OKLCH**  \r\n- Works as a standalone `ModuleScript` in Roblox  \r\n- No dependencies\r\n\r\n---\r\n\r\n## 📦 Installation\r\n1. Put the [`OKLCH.luau`](https://github.com/hschu-hschu/OKLCH.lua/blob/main/OKLCH.luau) file inside `ReplicatedStorage/Library/` or anywhere you want.\r\n2. Require it from your scripts:\r\n   ```lua\r\n   local OKLCH = require(game.ReplicatedStorage.Library.OKLCH)\r\n   ```\r\n\r\n---\r\n\r\n## 🚀 Usage\r\n\r\n```lua\r\nlocal OKLCH = require(game.ReplicatedStorage.Library.OKLCH)\r\n\r\n-- Convert OKLCH to Roblox Color3\r\nlocal col = OKLCH.toRGB(63.59, 57.81, 284.04)\r\nprint(col) -- Color3 value\r\n\r\n-- Convert Color3 back to OKLCH\r\nlocal L, C, H = OKLCH.fromRGB(col)\r\nprint(L, C, H)\r\n```\r\n","readmeTruncated":false}