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

e_spain = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_quarterly.dds"
		color1 = "red"
		color2 = "white"
		instance = { position = { 0.75 0.74 } scale = { 0.47 0.47 } depth = 10.00  }
		instance = { position = { 0.27 0.27 } scale = { 0.57 0.57 } depth = 19.00  }
	}
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "yellow"
		color2 = "blue"
		instance = { position = { 0.86 0.85 } scale = { 0.28 0.28 } depth = 6.00  }
		instance = { position = { 0.63 0.62 } scale = { 0.28 0.28 } depth = 7.00  }
		instance = { position = { 0.39 0.39 } scale = { 0.27 0.27 } depth = 16.00  }
		instance = { position = { 0.15 0.14 } scale = { 0.27 0.27 } depth = 18.00  }
	}
	colored_emblem={
		texture = "ce_ordinary_pile_02.dds"
		color1 = "white"
		instance = { position = { 0.4 0.76 } scale = { 0.25 0.5 } depth = 11.01 rotation = 270  }
		instance = { position = { 0.4 0.76 } scale = { 0.25 0.5 } depth = 12.01 rotation = 90 }
	}
	colored_emblem={
		texture = "ce_stripes_horizontal_15.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { position ={  0.28 0.76 } scale = { 0.5 0.5 } depth = 13.00  rotation = 90  }
		instance = { position={ 0.74 0.26 } scale = { 0.5 0.5 } depth = 14.00  rotation = 90  }
	}
	colored_emblem = {
		texture="ce_eagle.dds"
		color1 = "black"
		color2 = "black"
		color3 = "black"
		instance = { position = { 0.33 0.77 } scale = { 0.14 0.23 }  }
		instance = { position = { 0.47 0.77 } scale = { 0.14 0.23 } depth = 1.00  }
		instance = { position = { 0.8 0.29 } scale = { 0.14 0.25 } depth = 3.00  }
	}
	colored_emblem = {
		texture="ce_lion_rampant.dds"
		color1 = "purple"
		color2 = "purple"
		color3 = "purple"
		instance = { position = { 0.86 0.63 } scale = { 0.26 0.26 } depth = 4.00  }
		instance = { position = { 0.63 0.86 } scale = { 0.26 0.26 } depth = 5.00  }
		instance = { position = { 0.16 0.39 } scale = { 0.26 0.26 } depth = 15.00  }
		instance = { position = { 0.38 0.15 } scale = { 0.26 0.26 } depth = 17.00  }
	}
	colored_emblem={
		texture="ce_ordinary_pile.dds"
		color1 = "white"
		instance = { position = { 0.87 0.25 } scale = { 0.23 0.53 } depth = 8.00 rotation = 270  }
		instance = { position = { 0.87 0.26 } scale = { 0.2 0.51 } depth = 9.00 rotation = 90  }
	}
	colored_emblem = {
		texture="ce_eagle_small.dds"
		color1 = "black"
		color2 = "black"
		color3 = "black"
		instance = { position = { 0.95 0.27 } scale = { 0.14 0.25 } depth = 2.00  }
	}
}

k_castille_leon = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "white"
		instance = { position = { 0.75 0.25 } scale = { 0.5 0.5 }  }
		instance = { position = { 0.25 0.75 } scale = { 0.5 0.5 }  }
	}
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "yellow"
		color2 = "blue"
		instance = { position = { 0.26 0.25 } scale = { 0.46 0.46 }  }
		instance = { position = { 0.74 0.75 } scale = { 0.46 0.46 }  }
	}
	colored_emblem = {
		texture = "ce_lion_rampant_crown.dds"
		color1 = "purple"
		color2 = "yellow"
		color3 = "purple"
		instance = { position = { 0.74 0.25 } scale = { 0.46 0.46 }  }
		instance = { position = { 0.26 0.75 } scale = { 0.46 0.46 }  }
	}
}

k_leon_castille = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "white"
		instance = { position = { 0.75 0.25 } scale = { 0.5 0.5 }  }
		instance = { position = { 0.25 0.75 } scale = { 0.5 0.5 }  }
	}
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "yellow"
		color2 = "blue"
		instance = { position = { 0.26 0.25 } scale = { 0.46 0.46 }  }
		instance = { position = { 0.74 0.75 } scale = { 0.46 0.46 }  }
	}
	colored_emblem = {
		texture = "ce_lion_rampant_crown.dds"
		color1 = "purple"
		color2 = "yellow"
		color3 = "purple"
		instance = { position = { 0.74 0.25 } scale = { 0.46 0.46 }  }
		instance = { position = { 0.26 0.75 } scale = { 0.46 0.46 }  }
	}
}

d_castilla = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "yellow"
		color2 = "blue"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

c_valladolid = {
	pattern = "pattern_solid.dds"
	color1 = "yellow"
	color2 = "red"
	colored_emblem = {
		texture = "ce_pily_barry.dds"
		color1 = "yellow"
		color2 = "red"
	}
}

c_soria = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "white"
		color2 = "blue"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

c_cuellar = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_horse_rampant.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "white"
	}
}

d_viscaya = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "black"
	colored_emblem = {
		texture = "ce_greyhound_courant.dds"
		color1 = "black"
		color2 = "black"
		color3 = "white"
		instance = { position = { 0.5 0.35 }  }
		instance = { position = { 0.5 0.65 }  }
	}
}

c_viscaya = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "black"
	colored_emblem = {
		texture = "ce_greyhound_courant.dds"
		color1 = "black"
		color2 = "black"
		color3 = "black"
		instance = { position = { 0.5 0.35 } scale = { 0.6 0.6 }  }
		instance = { position = { 0.5 0.55 } scale = { 0.6 0.6 }  }
	}
	colored_emblem = {
		texture = "ce_border_shield.dds"
		color1 = "red"
	}
}

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

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

b_toro = {
	pattern = "pattern_solid.dds"
	color1 = "yellow_light"
	color2 = "brown"
	colored_emblem = {
		texture = "ce_bull_rampant.dds"
		color1 = "brown"
		color2 = "white"
		color3 = "yellow_light"
		instance = { scale = { -0.9 0.9 }  }
	}
}

c_avila = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "white"
		color2 = "black"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

c_salamanca = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "black"
	colored_emblem = {
		texture = "ce_bull_passant.dds"
		color1 = "black"
		color2 = "black"
		color3 = "white"
	}
}

c_olmedo = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "yellow"
		color2 = "black"
		instance = { position = { 0.5 0.43 } scale = { 0.9 0.9 }  }
	}
}

c_santiago = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_sword_simple.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } rotation = 180 scale = { 1.6 1.0 }  }
	}
}

c_braganza = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_castle.dds"
		color1 = "yellow"
		color2 = "blue"
		instance = { position = { 0.5 0.44 } scale = { 0.65 0.65 }  }
	}
}

k_navarra = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_chains_no_border.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}

d_navarra = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "yellow"
	}
}

c_navarra = {
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_crown_head.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.25 } scale = { 0.4 0.2 }  }
	}
	colored_emblem = {
		texture = "ce_lion_passant.dds"
		color1 = "white"
		color2 = "white"
		color3 = "blue"
		instance = { position = { 0.5 0.55 } scale = { 0.6 0.4 }  }
	}
	colored_emblem = {
		texture = "ce_border_shield.dds"
		color1 = "blue"
	}
}

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

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

k_aragon = {
	pattern = "pattern_vertical_stripes_01.dds"
	color1 = "yellow"
	color2 = "red"
}

c_alto_aragon = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_ordinary_cross_5.dds"
		color1 = "red"
	}
}

c_albarracin = {
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {
		texture = "ce_tower.dds"
		color1 = "white"
		color2 = "blue"
	}
}

d_barcelona = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_ordinary_cross_5.dds"
		color1 = "red"
	}
}

c_barcelona = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_ordinary_cross_5.dds"
		color1 = "red"
	}
}

c_puigcerda = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_ordinary_cross_thin.dds"
		color1 = "red"
		instance = { position = { 0.5 0.48 }  }
	}
	colored_emblem = {
		texture = "ce_border_shield.dds"
		color1 = "red"
	}
}

b_roses = {
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_flower.dds"
		color1 = "red"
		color2 = "green"
		color3 = "yellow"
		instance = { position = { 0.28 0.3 } scale = { 0.55 0.55 }  }
		instance = { position = { 0.72 0.3 } scale = { 0.55 0.55 }  }
		instance = { position = { 0.5 0.7 } scale = { 0.55 0.55 }  }
	}
}