Get average color or most prevalent color from existing sprite

Things that we aren't going to implement
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Get average color or most prevalent color from existing sprite

Post by sparr »

I have a mod that makes new sprites the same color as existing fluids, by tinting my sprite the color of the fluid which is available as a prototype property.

I would like to be able to do similar things with sprites that don't use tint or have a color like fluids, such as the science packs.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Get average color or most prevalent color from existing sprite

Post by Rseding91 »

Reading sprite data isn't deterministic and as such will never be exposed in the Lua API. Additionally the server doesn't even load sprites so it would never be able to do anything with them if it was deterministic.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”