@smCastleX = 0.27
@smCastleY = 0.23
@smLysX = 0.23
@smLysY = 0.26
@smCross = 0.22

e_spain_islamic = {
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "white"
	colored_emblem = {
		texture = "ce_eagle_iberia.dds"
		color1 = "white"
		color2 = "white"
		color3 = "green"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

k_andalusia = {
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "white"
	colored_emblem = {
		texture = "ce_eagle_iberia.dds"
		color1 = "white"
		color2 = "white"
		color3 = "green"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

k_toledo = {
	pattern = "pattern_solid.dds"
	color1 = "blue_light"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.174 } scale = { 0.576 0.241 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "blue_light"
		instance = { position = { 0.5 0.147 } scale = { 0.576 0.241 }  }
	}
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "blue_light"
		instance = { position = { 0.5 0.127 } scale = { 0.62 0.22 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.293 0.342 } scale = { 0.220 0.220 }  }
		instance = { position = { 0.707 0.342 } scale = { 0.220 0.220 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "blue_light"
		instance = { position = { 0.3 0.354 } scale = { 0.191 0.191 }  }
		instance = { position = { 0.7 0.354 } scale = { 0.191 0.191 }  }
	}
	colored_emblem = {
		texture = "ce_block_01.dds"
		color1 = "blue_light"
		instance = { position = { 0.614 0.332 } rotation = -10 scale = { 0.2 0.2 }  }
		instance = { position = { 0.386 0.332 } rotation = 10 scale = { 0.2 0.2 }  }
		instance = { position = { 0.685 0.411 } rotation = -10 scale = { 0.2 0.2 }  }
		instance = { position = { 0.315 0.411 } rotation = 10 scale = { 0.2 0.2 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.246 } scale = { 0.064 0.064 }  }
	}
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.296 } scale = { 0.050 0.070 }  }
	}
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.19 } scale = { 0.2 0.2 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.42 0.25 } scale = { 0.025 0.030 }  }
		instance = { position = { 0.346 0.233 } scale = { 0.025 0.030 }  }
		instance = { position = { 0.27 0.226 } scale = { 0.030 0.030 }  }
		instance = { position = { 0.21 0.26 } scale = { 0.035 0.030 }  }
		instance = { position = { 0.58 0.25 } scale = { 0.025 0.03 }  }
		instance = { position = { 0.654 0.233 } scale = { 0.025 0.03 }  }
		instance = { position = { 0.73 0.226 } scale = { 0.030 0.03 }  }
		instance = { position = { 0.79 0.26 } scale = { 0.035 0.03 }  }
	}
	colored_emblem = {
		texture = "ce_crown.dds"
		color1 = "yellow"
		color2 = "blue_light"
		instance = { position = { 0.5 0.49 } scale = { 0.75 0.65 }  }
	}
}

d_toledo = {
	pattern = "pattern_solid.dds"
	color1 = "blue_light"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.174 } scale = { 0.576 0.241 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "blue_light"
		instance = { position = { 0.5 0.147 } scale = { 0.576 0.241 }  }
	}
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "blue_light"
		instance = { position = { 0.5 0.127 } scale = { 0.62 0.22 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.293 0.342 } scale = { 0.220 0.220 }  }
		instance = { position = { 0.707 0.342 } scale = { 0.220 0.220 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "blue_light"
		instance = { position = { 0.3 0.354 } scale = { 0.191 0.191 }  }
		instance = { position = { 0.7 0.354 } scale = { 0.191 0.191 }  }
	}
	colored_emblem = {
		texture = "ce_block_01.dds"
		color1 = "blue_light"
		instance = { position = { 0.614 0.332 } rotation = -10 scale = { 0.2 0.2 }  }
		instance = { position = { 0.386 0.332 } rotation = 10 scale = { 0.2 0.2 }  }
		instance = { position = { 0.685 0.411 } rotation = -10 scale = { 0.2 0.2 }  }
		instance = { position = { 0.315 0.411 } rotation = 10 scale = { 0.2 0.2 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.246 } scale = { 0.064 0.064 }  }
	}
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.296 } scale = { 0.050 0.070 }  }
	}
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.19 } scale = { 0.2 0.2 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "yellow"
		instance = { position = { 0.42 0.25 } scale = { 0.025 0.030 }  }
		instance = { position = { 0.346 0.233 } scale = { 0.025 0.030 }  }
		instance = { position = { 0.27 0.226 } scale = { 0.030 0.030 }  }
		instance = { position = { 0.21 0.26 } scale = { 0.035 0.030 }  }
		instance = { position = { 0.58 0.25 } scale = { 0.025 0.03 }  }
		instance = { position = { 0.654 0.233 } scale = { 0.025 0.03 }  }
		instance = { position = { 0.73 0.226 } scale = { 0.030 0.03 }  }
		instance = { position = { 0.79 0.26 } scale = { 0.035 0.03 }  }
	}
	colored_emblem = {
		texture = "ce_crown.dds"
		color1 = "yellow"
		color2 = "blue_light"
		instance = { position = { 0.5 0.49 } scale = { 0.75 0.65 }  }
	}
}

c_madrid = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "black"
	colored_emblem = {
		texture = "ce_bear_passant.dds"
		color1 = "black"
		color2 = "black"
		color3 = "white"
	}
}

d_cordoba = {
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "white"
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "white"
		color2 = "white"
		color3 = "green"
	}
}

c_cordoba = {
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "white"
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "white"
		color2 = "white"
		color3 = "green"
	}
}

d_granada = {
	pattern = "pattern_bend_01.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_arabic_nazrid.dds"
		color1 = "red"
		instance = { position = { 0.45 0.45 } rotation = 45 }
	}
}

c_granada = {
	pattern = "pattern_bend_01.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_arabic_nazrid.dds"
		color1 = "black"
		instance = { position = { 0.45 0.45 } rotation = 45 }
	}
}

d_sevilla = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ordinary_bend_dexter_5.dds"
		color1 = "white"
	}
}

c_sevilla = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ordinary_bend_dexter_5.dds"
		color1 = "white"
	}
}

c_cadiz = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_crescent_mask_02.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 } rotation = 180 }
	}
}

c_almeria = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_crescent_mask_02.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 } rotation = 180 }
	}
}

d_murcia = {
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_crescent_mask_02.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 } rotation = 180 }
	}
}

k_badajoz = {
	pattern = "pattern_solid.dds"
	color1 = "black"
	color2 = "white"
	colored_emblem = {
		texture = "ce_eagle_iberia.dds"
		color1 = "white"
		color2 = "white"
		color3 = "black"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

d_badajoz = {
	pattern = "pattern_solid.dds"
	color1 = "blue_light"
	color2 = "red"
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "red"
		color2 = "red"
		color3 = "blue_light"
	}
}

c_badajoz = {
	pattern = "pattern_solid.dds"
	color1 = "blue_light"
	color2 = "red"
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "red"
		color2 = "red"
		color3 = "blue_light"
	}
}

c_caceres = {
	pattern = "pattern_vertical_split_01.dds"
	color1 = "red"
	color2 = "white"
}

d_beja = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_ordinary_bend_dexter_5.dds"
		color1 = "yellow"
	}
}

d_coimbra = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "black"
	colored_emblem = {
		texture = "ce_ordinary_bend_dexter_5.dds"
		color1 = "black"
	}
}

c_coimbra = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
	}
}

b_idanha = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_ordinary_bend_dexter_5.dds"
		color1 = "yellow"
	}
}

b_obidos = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
	}
}

d_algarve= {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "blue"
	colored_emblem = {
		texture = "ce_ordinary_bend_dexter_5.dds"
		color1 = "blue"
	}
}

k_valencia = {
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ocean_castle.dds"
		color1 = "blue"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "white"
		color2 = "black"
		instance = { position = { 0.5 0.25 } scale = { 0.5 0.5 }  }
	}
}

d_valencia = {
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ocean_castle.dds"
		color1 = "blue"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "white"
		color2 = "black"
		instance = { position = { 0.5 0.25 } scale = { 0.5 0.5 }  }
	}
}

c_valencia = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ocean_castle.dds"
		color1 = "red"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "white"
		color2 = "black"
		instance = { position = { 0.5 0.25 } scale = { 0.5 0.5 }  }
	}
}

d_mallorca = {
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ordinary_fess_5.dds"
		color1 = "white"
	}
}

c_mallorca = {
	pattern = "pattern_solid.dds"
	color1 = "purple"
	color2 = "white"
	colored_emblem = {
		texture = "ce_ordinary_fess_5.dds"
		color1 = "white"
	}
}