I’m trying to create a system that changes the color of a block based on the predominate color scheme of a specified decal.
Example:
I have no idea how I would even begin to start this procedure, and frankly, I’m not even sure if this is possible with consumer-Lua.
It’s clearly possible in Roblox’s engine, however, since SpecialMeshes are capable of doing this just fine.

Unfortunately, MeshParts don’t mirror Color3Value, so I can’t use them as a solution.

Thanks for your contributions. 
1 Like
You’ll probably need to request some external image analysis api, and they’re usually not free. I don’t know of any image analysis in the luau we have access to on roblox considering we dont even have I/O or any file system. However, you might be able to host something on repl using node using something like colorthief. If you want I can try and set some api up on repl that you can request to.
2 Likes
That’s a whole lot of programmer garble that I don’t understand. If I’m not going to be able to fully-grasp the tools necessary to solve this issue, then I might as well not do it.
Thanks for the offer though.
Do you have the decal id? Or a picture so I can test something really quick?
It’s not my decal, just one I found in the toolbox so I could create my example.
https://www.roblox.com/library/3620710
Yeah, unfortunately I know no way of doing this right inside of roblox, but perhaps someone else does, so it’s worth just leaving notifications on for this thread maybe someone that knows more will come along. Good luck!
1 Like
It won’t be difficult or costly to make your own web service to convert the color. You could even do it in Python.
1 Like
That’s why I said use repl or something similar and you can do it for free. But it’s slow because you need to outsource to using HttpService.
1 Like
maybe the new EditableImage api can help? you can use AssetService:CreateEditableImageAsync() to import the image and then read pixels using EditableImage:ReadPixelsBuffer()
1 Like