e_bactria = { #Bactriana
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_cat_sun_macedonia2.dds"
		color1 = "red"
		instance = { position = { 0.5 0.45 } scale = { 0.83 0.83 }  }
	}
}

e_persia = { #
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "yellow"
	colored_emblem = {
		texture = "cat_persia_sun1.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.35 } scale = { 0.45 0.45 }  }			
	}	
	colored_emblem = {
		texture = "cat_persia_lion.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.5 0.45 } scale = { 0.63 0.63 }  }			
	}
	colored_emblem = {
		texture = "cat_laurel_wreath06.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = rgb { 133 14 14 }
		instance = { position = { 0.5 0.45 } scale = { 0.95 0.95 }  }			
	}
}

k_persia = {
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "yellow"
	colored_emblem = {
		texture = "cat_persia_sun1.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.37 } scale = { 0.65 0.65 }  }			
	}
	colored_emblem = {
		texture = "cat_persia_lion.dds"
		color1 = "black"
		color2 = "black"
		color3 = "black"
		instance = { position = { 0.505 0.47 } scale = { 0.9 0.9 }  }
		instance = { position = { 0.495 0.47 } scale = { 0.9 0.9 }  }	
		instance = { position = { 0.5 0.465 } scale = { 0.9 0.9 }  }	
		instance = { position = { 0.5 0.475 } scale = { 0.9 0.9 }  }	
	}	
	colored_emblem = {
		texture = "cat_persia_lion.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.5 0.47 } scale = { 0.9 0.9 }  }			
	}
}








d_soghd={
	pattern="pattern_solid.dds"
	color1=green
	color2=white
	color3=green
	colored_emblem={
		color1=yellow
		color2=orange
		texture="ce_mena_sun.dds"
		instance={
			position={ 0.490000 0.240000 }
			scale={ 0.440000 0.440000 }
			depth=1.010000
		}

	}

	colored_emblem={
		color1=yellow
		color2=orange
		texture="ce_simurgh.dds"
		instance={
			position={ 0.510000 0.650000 }
			scale={ 0.450000 0.450000 }
		}

	}

}

d_fars={
	pattern="pattern_solid.dds"
	color1=white
	color2=blue
	color3=blue_light
	colored_emblem={
		color1=blue_light
		color2=blue
		texture="ce_huma.dds"
		instance={
			position={ 0.490000 0.510000 }
			scale={ 0.630000 0.630000 }
		}

	}

	colored_emblem={
		color1=blue_light
		texture="ce_tamgha_regular_circle_frame.dds"
		instance={
			scale={ 0.790000 0.790000 }
			depth=1.010000
		}

	}

}

d_isfahan={
	pattern="pattern_solid.dds"
	color1=rgb { 7 50 90 }
	color2=white
	color3=green
	colored_emblem={
		color1=yellow
		color2=blue_light
		color3=white
		texture="ce_isfahan.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}

	}

}

d_ghur={
	pattern="pattern_solid.dds"
	color1=green
	color2=red
	color3=white
	colored_emblem={
		color1=white
		texture="ce_rubh_el_hizb_arch.dds"
		instance={
			scale={ 0.560000 0.560000 }
		}
	}

	colored_emblem={
		color1=red
		color2=yellow
		texture="ce_doted_roundel_frame.dds"
		instance={
			scale={ 0.750000 0.750000 }
			depth=1.010000
		}
	}
}

d_nizari ={
	pattern="pattern_solid.dds"
	color1=green
	color2=white
	color3=green_light
	colored_emblem={
		color1=white
		texture="ce_tiger_calligraphy.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}
	}
}

d_ismaili = {
	pattern="pattern_solid.dds"
	color1=black
	color2=white
	color3=red
	colored_emblem={
		color1=white
		texture="ce_tiger_calligraphy.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}
	}
}

d_zayidi = {
	pattern="pattern_solid.dds"
	color1=green
	color2=yellow
	color3=green
	colored_emblem={
		color1=white
		texture="ce_arabic_ali.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}
	}
}

d_balkh ={
	pattern="pattern_diagonal_split_01.dds"
	color1=red
	color2=black
	color3=green
	colored_emblem={
		color1=yellow
		texture="ce_tamgha_hephthalites.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}

	}

}

c_baduspan = {
	pattern="pattern_solid.dds"
	color1=blue
	color2=yellow
	color3=green
	colored_emblem={
		color1=yellow
		texture="ce_tamgha_doted_circle_frame.dds"
		instance={
			scale={ 0.780000 0.780000 }
			depth=1.010000
		}

	}

	colored_emblem={
		color1=yellow
		color2=white
		color3=blue
		texture="ce_persian_bull.dds"
		instance={
			position={ 0.500000 0.510000 }
			scale={ 0.730000 0.730000 }
		}

	}
}

c_mazandaran = {
	pattern="pattern_solid.dds"
	color1=red
	color2=purple
	color3=yellow
	colored_emblem={
		color1=purple
		color2=yellow
		texture="ce_polylobe_plain_frame.dds"
		instance={
			scale={ 0.750000 0.750000 }
			depth=1.010000
		}
	}

	colored_emblem={
		color1=yellow
		texture="ce_star_sassanian.dds"
		instance={
			scale={ 0.600000 0.600000 }
		}
	}
}

c_bukhara = {
	pattern="pattern_solid.dds"
	color1=yellow
	color2=green_light
	color3=red
	colored_emblem={
		color1=green
		color2=orange
		color3=yellow
		texture="ce_simurgh.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}
	}
}

b_alamut = {
	pattern="pattern_solid.dds"
	color1=red
	color2=white
	color3=blue
	colored_emblem={
		color1=white
		texture="ce_tiger_calligraphy.dds"
		instance={
			scale={ 0.700000 0.700000 }
		}
	}
}








613 = { # Seljuk 
	pattern = "pattern_solid.dds"
	color1 = rgb {26 75 131}
	color2 = "white"
	colored_emblem = {
		texture = "cat_eagle_selcuklu.dds"
		color1 = "white"
		color3 = "blue"
		instance = { position = { 0.5 0.47 } scale = { 0.8 0.8 }  }	
	}
}

2001095 = { # Mangyt
	pattern = "pattern_solid.dds"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "cat_eagle_selcuklu.dds"
		color1 = "red"
		color3 = "white"
		instance = { position = { 0.5 0.47 } scale = { 0.8 0.8 }  }	
	}
}

790 = { #Ghaznavid
	pattern = "pattern_solid.dds"
	color1 = "black"
	color2 = "yellow"
	colored_emblem = {
		texture = "cat_eagle_selcuklu.dds"
		color1 = "yellow"
		color3 = "black"
		instance = { position = { 0.5 0.47 } scale = { 0.8 0.8 } }	
	}
}

1029100 = { # sassanid
	pattern="pattern_solid.dds"
	color1= rgb { 131 31 18 }
	color2= "white"
	color3= "green"
	colored_emblem={
		color1= "purple"
		texture="ce_block_02.dds"
		instance={ position={ 0.5 0.49 } scale={ 0.62 0.62 } }
	}
	colored_emblem={
		color1= "yellow"
		color2= "yellow"
		color3= "yellow"
		texture="ce_derafsh_kaviani.dds"
		instance={ position={ 0.5 0.48 } scale={ 0.6 0.6 } }
	}
}
house_khosroviani = { # Sassanid
	pattern = "pattern_solid.dds"
	color1 = rgb { 102 2 60 }
	color2 = rgb { 192 175 123 }
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = rgb { 175 23 54 } #rgb { 200 20 60 }
		color2 = rgb { 192 175 123 } #rgb { 216 200 150 }
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = rgb { 192 175 123 }
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}
house_mihranian = { # Sassanid
	pattern = "pattern_solid.dds"
	color1 = rgb { 102 2 60 }
	color2 = rgb { 192 175 123 }
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = rgb { 175 23 54 } #rgb { 200 20 60 }
		color2 = rgb { 192 175 123 } #rgb { 216 200 150 }
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = rgb { 192 175 123 }
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}
house_dabuyid = { # Sassanid
	pattern = "pattern_solid.dds"
	color1 = rgb { 102 2 60 }
	color2 = rgb { 192 175 123 }
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = rgb { 175 23 54 } #rgb { 200 20 60 }
		color2 = rgb { 192 175 123 } #rgb { 216 200 150 }
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = rgb { 192 175 123 }
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}

house_bavandid = { # Sassanid
	pattern = "pattern_solid.dds"
	color1 = rgb { 102 2 60 }
	color2 = rgb { 192 175 123 }
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = rgb { 175 23 54 } #rgb { 200 20 60 }
		color2 = rgb { 192 175 123 } #rgb { 216 200 150 }
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = rgb { 192 175 123 }
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}
house_baduspanid = { # Sassanid
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "red"
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = "red"
		color2 = "white"
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = "white"
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}

811 = { # Tahirid
	pattern = "pattern_solid.dds"
	color1 = "blue_light"
	color2 = "white"
	colored_emblem = {
		texture = "cat_double_headed_eagle_Iran_persia.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "black"
		instance = { position = { 0.495 0.44 } scale = { 1.0 1.0 }  }		
	}
	colored_emblem = {
		texture = "ce_mena_sun.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.455 } scale = { 0.22 0.22 }  }		
	}	
}

7510 = { # faravid
	pattern = "pattern_solid.dds"
	color1 = "green"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_lion_passant_sword.dds"
		color1 = "yellow"
		color2 = "red"
		color2 = "black"
		instance = { position = { 0.5 0.5 } scale = { 0.9 0.9 }  }		
	}	
}

house_karen = { # karenid
	pattern = "pattern_solid.dds"
	color1 = "purple"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = "purple"
		color2 = "yellow"
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}

812 = { # Saffarid
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "green_light"
	colored_emblem = {
		texture = "cat_glass.dds"
		color1 = "green_light"
		instance = { position = { 0.5 0.65 } scale = { 1.0 2.0 }  }
	}	
	colored_emblem = {
		texture = "cat_persia_sun1.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.37 } scale = { 0.65 0.65 }  }			
	}
	colored_emblem = {
		texture = "cat_persia_lion.dds"
		color1 = "black"
		color2 = "black"
		color3 = "black"
		instance = { position = { 0.505 0.47 } scale = { -0.9 0.9 }  }
		instance = { position = { 0.495 0.47 } scale = { -0.9 0.9 }  }	
		instance = { position = { 0.5 0.465 } scale = { -0.9 0.9 }  }	
		instance = { position = { 0.5 0.475 } scale = { -0.9 0.9 }  }	
	}	
	colored_emblem = {
		texture = "cat_persia_lion.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.5 0.47 } scale = { -0.9 0.9 }  }			
	}
}

1042070 = { # Mihran
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "black"
	colored_emblem = {
		texture = "cat_lion02.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "black"
		instance = { position = { 0.3 0.33 } scale = { -0.5 0.5 }  }
		instance = { position = { 0.7 0.33 } scale = { 0.5 0.5 }  }
	}
	colored_emblem = {
		texture = "cat_goat2_wappen.dds"
		color1 = "black"
		color2 = "black"
		color3 = "white"		
		instance = { position = { 0.5 0.72 } scale = { -0.6 0.6 }  }		
	}
	colored_emblem = {
		texture = "cat_horn_long.dds"
		color1 = "black"
		color2 = "black"	
		instance = { position = { 0.55 0.55 } rotation = -88 scale = { -0.25 0.25 }  }		
	}	
}

house_samanid = {
		pattern="pattern_solid.dds"
		color1=black
		color2=yellow
		color3=black
		colored_emblem={
			color1= "yellow"
			texture="ce_square_kaaba.dds"
			instance={ position={ 0.5 0.45 } scale={ 0.71 0.71 } rotation=46 }
		}
		colored_emblem={
			color1="black"
			texture="ce_square_kaaba.dds"
			instance={ position={ 0.5 0.45 } scale={0.55 0.55} rotation=45 }
		}
		colored_emblem={
			color1="yellow"
			texture="ce_ali_knot.dds"
			instance={ position={ 0.5 0.45 } scale={ 0.32 0.32 }}
		}
		colored_emblem={
			color1="yellow"
			texture="ce_samanid_leaf.dds"
			instance={ position={ 0.3 0.65 } scale={ 0.56 0.56 } rotation=270  }
			instance={ position={0.69 0.65} scale={0.56 0.56} rotation=180 }
			instance={ position={0.69 0.25} scale={0.56 0.56} rotation=90 }
			instance={ position={0.3 0.25} scale={0.56 0.56} }
		}
}

1101801 = { # Farighunid
	pattern = "pattern_solid.dds"
	color1 = "black"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_polylobe_plain_frame.dds"
		color1 = "black"
		color2 = "yellow"
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
	colored_emblem = {
		texture = "ce_star_sassanian.dds"
		color1 = "yellow"
		instance = { position = { 0.5 0.47 } scale = { 0.75 0.75 }  }		
	}
}

persian_al_qumis = { # al-Qumis
	pattern="pattern_solid.dds"
	color1=green
	color2=white
	colored_emblem={
		color1="white"
		texture="ce_iranian_floral_seal.dds"
		instance={ position={ 0.5 0.7 } scale={ 0.5 0.5 } }
		instance={ position={0.75 0.3} scale={0.5 0.5} depth=1 }
		instance={ position={0.25 0.3} scale={0.5 0.5} depth=2 }
	}
}

791 = { # Shansabanid
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "black"
	colored_emblem = {
		texture = "ce_crescent_mask.dds"
		color1 = "white"
		instance = { position = { 0.5 0.5 } scale = { 0.8 0.8 }  }			
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		instance = { position = { 0.5 0.275 } scale = { 0.35 0.35 }  }			
	}
	colored_emblem = {
		texture = "cat_saber02_crossed.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.505 0.46 } scale = { 0.75 0.75 }  }
		instance = { position = { 0.495 0.46 } scale = { 0.75 0.75 }  }
		instance = { position = { 0.5 0.455 } scale = { 0.75 0.75 }  }
		instance = { position = { 0.5 0.465 } scale = { 0.75 0.75 }  }		
	}
	colored_emblem = {
		texture = "cat_saber02_crossed.dds"
		color1 = "black"
		color2 = "black"
		instance = { position = { 0.5 0.46 } scale = { 0.75 0.75 }  }			
	}
}

house_ghurid = { # Ghurid
	pattern = "pattern_solid.dds"
	color1 = "red"
	color2 = "black"
	colored_emblem = {
		texture = "ce_crescent_mask.dds"
		color1 = "white"
		instance = { position = { 0.5 0.5 } scale = { 0.8 0.8 }  }			
	}	
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		instance = { position = { 0.5 0.275 } scale = { 0.35 0.35 }  }			
	}
	colored_emblem = {
		texture = "cat_saber02_crossed.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.505 0.46 } scale = { 0.75 0.75 }  }
		instance = { position = { 0.495 0.46 } scale = { 0.75 0.75 }  }
		instance = { position = { 0.5 0.455 } scale = { 0.75 0.75 }  }
		instance = { position = { 0.5 0.465 } scale = { 0.75 0.75 }  }		
	}
	colored_emblem = {
		texture = "cat_saber02_crossed.dds"
		color1 = "black"
		color2 = "black"
		instance = { position = { 0.5 0.46 } scale = { 0.75 0.75 }  }			
	}
}

12274 = { # Yoishta
	pattern = "pattern_solid.dds"
	color1 = "red"	
	color2 = "white"
	colored_emblem = {
		texture = "cat_eagle_selcuklu.dds"
		color1 = "white"
		color3 = "black"
		instance = { position = { 0.5 0.47 } scale = { 0.8 0.8 }  }	
	}
}

1042110 = { # zunbil
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {
		texture = "ce_mena_sun.dds"
		color1 = "white"
		color2 = "red"
		instance = { position = { 0.50 0.48 } scale = { 0.9 0.9 }  }	
		instance = { position = { 0.50 0.48 } rotation = 22.5 scale = { 0.9 0.9 }  }		
	}	
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.50 0.48 } scale = { 0.2 0.2 }  }					
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.50 0.48 } scale = { 0.2 0.2 }  }					
	}	
}

809 = { # Dulafid
	pattern = "pattern_solid.dds"
	color1 = "yellow"
	color2 = "black"
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "black"		
		instance = { position = { 0.5 0.46 } scale = { 0.75 0.75 }  }
	}
	colored_emblem = {
		texture = "ce_circle_mask.dds"
		color1 = "white"		
		instance = { position = { 0.5 0.46 } scale = { 0.7 0.7 }  }
	}	
	colored_emblem = {
		texture = "cat_medina_islam.dds"
		color1 = "black"		
		instance = { position = { 0.5 0.46 } scale = { 0.95 0.95 }  }
	}	
}

house_zaydid = { # Alavid
	pattern = "pattern_solid.dds"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "blue"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 }  }
	}	
	colored_emblem = {
		texture = "ce_block_02.dds"
		color1 = "blue"
		instance = { position = { 0.5 0.48 } scale = { 0.70 0.70 }  }		
	}		
	colored_emblem = {
		texture = "ce_border_circle_fimbriated.dds"
		color1 = "blue"
		color2 = "white"
		instance = { position = { 0.5 0.48 } scale = { 0.75 0.75 }  }		
	}		
	colored_emblem = {
		texture = "ce_arabic_basmala_kufic.dds"
		color1 = "white"
		instance = { position = { 0.5 0.48 } scale = { 0.64 0.64 }  }					
	}
}

1042112 = { # 아프리기드 afrighid
	pattern="pattern_solid.dds"
	color1="brown"
	color2="yellow"
	colored_emblem={
		color1="yellow"
		texture="ce_square_kaaba.dds"
		instance={position={ 0.5 0.81 }scale={0.65 0.06}}
	}
	colored_emblem={
		color1="yellow"
		color2="orange"
		color3="white"
		texture="ce_persian_duck.dds"
		instance={position={0.5 0.47} scale={0.7 0.7}}
	}
}

2001103 = { # Khori
	pattern = "pattern_solid.dds"
	color1 = rgb{173 155 81}
	color2 = "black"
	colored_emblem = {
		texture = "cat_afrighid_eagle.dds"
		color1 = "white"
		color2 = "black"
		instance = { position = { 0.5 0.47 } scale = { 0.85 0.85 }  }	 
	}
}
