44 for(
uint32_t i = 0; i <= 16; i += 8) {
45 auto diff = int32_t(top_color >> i & 0xFF) - int32_t(bot_color >> i & 0xFF);
46 color |=
uint32_t(int32_t(bot_color >> i & 0xFF) + diff * percent) << i;
57 return dcon::fatten(state.world,
id).get_ideology().get_color();
pop_satisfaction_wrapper_fat fatten(data_container const &c, pop_satisfaction_wrapper_id id) noexcept
uint32_t get_ui_color(sys::state &state, T id)
constexpr uint32_t color_from_hash(uint32_t color)
uint32_t color_gradient(float percent, uint32_t top_color, uint32_t bot_color)