@semy = 0.25
@third = @[1/3]
@fifth = @[1/5]
@sixth = @[1/6]

@canton_scale_cross_x = @[ ( 333 / 768 ) + 0.001 ]
@canton_scale_cross_y = @[ ( 205 / 512 ) + 0.001 ]

@canton_scale_sweden_x = @[ ( 255 / 768 ) + 0.001 ]
@canton_scale_sweden_y = @[ ( 204 / 512 ) + 0.001 ]

@uru_canton_height = 0.556
@NZL_coa_offset = @[3/16] 
@sm_fra = 0.16

#ABO = { # Aboriginals
#	pattern = "pattern_solid.tga"
#	color1 = "black"
#
#	colored_emblem = {
#		texture = "ce_bicolor_bottom.dds"
#		color1 = "red"
#		color2 = "red"
#	}
#
#	colored_emblem = {
#		texture = "ce_circle.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#	}
#}


IMP = { # Japan
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	}
}

SHG = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "white"
	}
}


######

ABS = { # Absaroke Crow
	# Combination of traditionnal Crow designs
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "yellow"

	textured_emblem = {
		texture = "te_crow_star.dds"
		instance = { scale = { 0.70 0.70 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.9 } scale = { 1.0 0.12 } }		
        instance = { position = { 0.5 0.1 } scale = { 1.0 0.12 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.5 0.9 } scale = { 1.0 0.1 } }		
        instance = { position = { 0.5 0.1 } scale = { 1.0 0.1 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.9 0.9 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.7 0.9 } scale = { 0.02 0.02 } }			
        instance = { position = { 0.5 0.9 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.3 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.1 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.9 0.1 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.7 0.1 } scale = { 0.02 0.02 } }			
        instance = { position = { 0.5 0.1 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.3 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.1 0.1 } scale = { 0.02 0.02 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.92 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.88 0.9 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.72 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.68 0.9 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.52 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.48 0.9 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.32 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.28 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.12 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.08 0.9 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.92 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.88 0.1 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.72 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.68 0.1 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.52 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.48 0.1 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.32 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.28 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.12 0.1 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.08 0.1 } scale = { 0.02 0.02 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
        instance = { position = { 0.9 0.88 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.9 0.92 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.7 0.88 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.7 0.92 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.5 0.88 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.5 0.92 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.3 0.88 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.3 0.92 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.1 0.88 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.1 0.92 } scale = { 0.02 0.02 } }
        instance = { position = { 0.9 0.08 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.9 0.12 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.7 0.08 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.7 0.12 } scale = { 0.02 0.02 } }		
        instance = { position = { 0.5 0.08 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.5 0.12 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.3 0.08 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.3 0.12 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.1 0.08 } scale = { 0.02 0.02 } }	
        instance = { position = { 0.1 0.12 } scale = { 0.02 0.02 } }		
	}		
}

ABU = { # Abu Dhabi
	# Peace treaty flag (replaced the traditionnal plain red flag)
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds" # Regular Border
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
		instance = { scale = { 0.066 1.0 } position = { 0.033 0.5 } }	
		instance = { scale = { 0.066 1.0 } position = { 0.967 0.5 } }			
	}
}
#ABU_late = {
#	# Later adopted the white stripe at the hoist as variant after reverting to traditionnal plain red
#
#	pattern = "pattern_solid.tga"
#	color1 = "red"
#
#	colored_emblem = {
#		texture = "ce_solid.dds"
#		color1 = "white"
#		instance = { scale = { 0.5 1.0 } position = { 0.08 0.5 } }	
#	}
#}
ABU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds" # Regular Border
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
		instance = { scale = { 0.066 1.0 } position = { 0.033 0.5 } }	
		instance = { scale = { 0.066 1.0 } position = { 0.967 0.5 } }			
	}	
}
ABU_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "green"
		color2 = "green"		
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.5 } }					
	}
}
ABU_subject_FRA = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds" # Regular Border
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
		instance = { scale = { 0.066 1.0 } position = { 0.033 0.5 } }	
		instance = { scale = { 0.066 1.0 } position = { 0.967 0.5 } }			
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.267 0.30 } scale = { 0.4 0.4 } }				
	}	
}

ACE = {
	# 1850 design, default
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.25 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.38 0.50 } }			
	}	
}
ACE_absolute_monarchy = {
	# Early design, starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crossed_scimitars_horizontal.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.50 0.55 } }				
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.5 0.25 } }			
	}	
}
ACE_theocracy = {
	# 1953
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.14 } position = { 0.52 0.5 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.68 0.5 } }
		instance = { scale = { 0.14 0.14 } position = { 0.6 0.32 } }
		instance = { scale = { 0.14 0.14 } position = { 0.6 0.68 } }		
	}	
}
ACE_republic = {
	# 1976
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.14 } position = { 0.5 0.2 } }			
		instance = { scale = { 1.0 0.14 } position = { 0.5 0.8 } }				
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.2 } }			
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.8 } }				
	}		
}
ACE_dictatorship = {
	pattern = "pattern_border_of_3.dds"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.45 0.5 } }			
	}			
}
ACE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.75 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.85 0.50 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}

AFG = { # Afghanistan
	# 1901 design w/ stylized mosque - default monarchy
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_coa_afghanistan.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }			
	}
}
AFG_absolute_monarchy = { 
	# Staring flag
	# Plain black flag of Kandahar
	
	pattern = "pattern_solid.tga"
	color1 = "black_light"
}
AFG_republic = {
	# 1930 flag
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "red"
		color2 = "green"

	}	
	colored_emblem = {
		texture = "ce_coa_afghanistan.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.5 } }			
	}
}
AFG_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.5 } position = { 0.5 0.25 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }			
	}		
	colored_emblem = {
		texture = "ce_coa_afghanistan.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.6 0.6 } position = { 0.22 0.24 } }			
	}
}
AFG_theocracy = {
	# 1992 Islamic state, a bit simplified 
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}		
	colored_emblem = {
		texture = "ce_shahada_02.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.8 0.9 } position = { 0.5 0.5 } }
	}	
}
AFG_subject = {
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "black"
	
	colored_emblem = {
		texture = "ce_coa_afghanistan.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.5 } }			
	}
}
AFG_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_coa_afghanistan.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}
}

AFS = { # Free State
	pattern = "pattern_solid.tga"
	color1 = "blue"
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }
	}
}

AFS_orange = { # Orange Free State 
	pattern = "pattern_solid.tga"
	color1 = "orange"
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }
	}
}

AFS_zambezi = { #Zambezi Free State
	pattern = "pattern_solid.tga"
	color1 = "black"
	colored_emblem = {
		texture = "ce_waves.dds"
		color1 = "black"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }
	}
}

AFS_nile = { #Nile Free State
	pattern = "pattern_solid.tga"
	color1 = "white"
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }
	}
}

AFS_niger = { #Niger Free State
	pattern = "pattern_solid.tga"
	color1 = "green"
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }
	}
}

AFS_sahara = { #Sahara Free State
	pattern = "pattern_solid.tga"
	color1 = "beige"
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }
	}
}

AGJ = {
	pattern = "pattern_per_saltire.dds"
	color1 = "green"
	color2 = "red"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}

ALB = {		
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "black"

	colored_emblem = {
		texture = "ce_eagle_albania.dds"
		color1 = color3
		color2 = color3
		color3 = color1
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
	}	
}
ALB_communist = {		
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "black"

	colored_emblem = {
		texture = "ce_eagle_albania.dds"
		color1 = color3
		color2 = color3
		color3 = color1
        instance = { scale = { 0.95 0.95 } position = { 0.5 0.55 }  }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.15 0.15 } position = { 0.5 0.15 }  }
	}	
}

ALD = { # Algeria
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
}
ALD_republic = {
	# Flag of the star of North Africa (base for the 1962 flag)
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.35 0.35 } position = { 0.60 0.5 }  }
	}		
}
ALD_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.5 }  }
	}		
}
ALD_subject_FRA = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*3] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7] } }
	}	
}

AMZ = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
        instance = { scale = { 1.0 0.25 } position = { 0.5 0.75 }  }				
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.25 } position = { 0.25 0.33 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.33 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.75 0.33 } }			
	}	
}

ANH = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
}
ANH_absolute_monarchy = {
	# 1863
	pattern = "pattern_vertical_split_01.tga"
	color1 = "red"
	color2 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_shield_anhalt_per_pale.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "green"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.55 } }	
		mask = {2}
	}	
	colored_emblem = {
		texture = "ce_shield_anhalt_per_pale.dds"
		color1 = "white"
		color2 = "black"
		color3 = "black"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.55 } }	
		mask = {1}
	}	
	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "red"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.62 0.7 } position = { 0.5 0.55 } }	
		mask = {1}
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.225 } }	
	}	
}

ANL = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color1
	}
}

AOT = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	colored_emblem = {
		texture = "ce_koru.dds"
		color1 = "white"
		color2 = "red"
	}
}

ARA = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}
}
ARA_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
 	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.25 0.25 } position = { 0.33 0.5 } }
		instance = { scale = { 0.25 0.25 } position = { 0.66 0.5 } }					
	}	
}

ARG = { # Argentina
	# Monarchy default flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }		
	}	
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.5 } }
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.3 0.3 } position = { 0.12 0.14 } }
		instance = { scale = { 0.3 0.3 } position = { 0.12 0.89 } }
		instance = { scale = { 0.3 0.3 } position = { 0.88 0.14 } }
		instance = { scale = { 0.3 0.3 } position = { 0.88 0.89 } }		
	}			
}
#ARG_early = {
#	# 1818-29 Flag (light blue with larger central stripe)
#
#	pattern = "pattern_solid.tga"
#	color1 = "white"
#
#	colored_emblem = {
#		texture = "ce_solid.dds"
#		color1 = "blue_light"
#		color2 = "blue_light"
#		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
#		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }		
#	}	
#
#	colored_emblem = {
#		texture = "ce_inti.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#		instance = { scale = { 0.55 0.55 } position = { 0.5 0.5 } }
#	}	
#}

ARG_welsh = {	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }		
	}	
	
	
	colored_emblem = {
		texture = "ce_dragon_wales.dds"
		color1 = "red"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }		
	}	
}

ARG_dictatorship = {
	# 1829 Flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}	
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}	
}
ARG_republic = {
	# Modern flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}	
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}	
}
ARG_absolute_monarchy = {	
	pattern = "pattern_horizontal_split_01.tga"
	color1 = "white"
	color2 = "blue_light"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.42 0.52 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.4 0.5 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.5 } position = { 0.5 0.5 } }
	mask = { 2 }
	}		
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.19 } }
	}	
	colored_emblem = {
		texture = "ce_laurel.dds"
		instance = { scale = { 0.70 0.70 } position = { 0.5 0.58 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_laurel_knot.dds"
		instance = { scale = { 0.16 0.16 } position = { 0.5 0.78 } }
		color1 = "yellow"
		color2 = "yellow"		
	}		
}
ARG_subject = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"	

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "yellow"
		color2 = "yellow"		
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.5 } }
		color1 = "blue_light"
		color2 = "blue_light"		
	}
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "brown_light"
		color2 = "yellow"
		instance = { scale = { 0.505 0.505 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.498 } }
	}	
}
ARG_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.33 } position = { 0.5 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 1.0 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 1.0 } position = { 0.5 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}	
}
ARG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}	
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
ARG_fascist = {	
	# Nacionalistas
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "blue_light"
		color2 = "blue_light"
	}	
}
ARG_subject_USA = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		instance = { scale = { 1.0 1.0 } position = { 0 0.5 } }
		color1 = "red"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.175 0.5 } }
		color1 = "white"
		color2 = "white"		
	}		
}

ARM = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "yellow"
	}
}
ARM_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.4 0.4 } position = { 0.16 0.215 }  }
	}	
}


ASA = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "green"
	}
}

ASH = {
	# Ashanti Empire - 1935
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	color3 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1 0.3 } position = { 0.5 0.85 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1 0.40 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1 0.33 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_ashanti_golden_stool.dds"
		color1 = "yellow"
		color2 = "pearl"
		color3 = "white"
		instance = { position = { 0.5 0.5 } scale = { 0.45 0.45 } }
	}	
}
ASH_absolute_monarchy = {
	# Something looking less modern for the starting flag
	
	pattern = "pattern_border_west_africa_05.dds"
	color1 = "black"
	color2 = "yellow"
	color3 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @[1-third/10] 0.8 } position = { 0.45 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_ashanti_golden_stool.dds"
		color1 = "yellow"
		instance = { position = { 0.45 0.5 } scale = { 0.85 0.85 } }
	}	
}
ASH_republic = {
	# Modern Ghana	
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "green"
	}	
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "black"
		instance = { position = { 0.5 0.52 } scale = { 0.4 0.4 } }
	}	
}
ASH_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_ashanti_golden_stool.dds"
		color1 = "yellow_dark"
		instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}	
}

ASS = {
	pattern = "pattern_solid.tga"
	color1 = "red_faint"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red_light"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 0.12 } position = { 0.1 0.14 }  }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 0.12 } position = { 0.19 0.1 }  }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 0.12 } position = { 0.16 0.23 }  }
	}
}

AST = { # Australia
	# Eureka flag
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	@eureka_star_scale = 0.302

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.102 0.730 } position = { 0.5 0.5 } }
		instance = { scale = { 0.8 0.154 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_star_08_eureka.dds"
		color1 = "white"
		color2 = "blue"
		instance = { scale = { @eureka_star_scale @eureka_star_scale } position = { 0.5 0.5 } }
		instance = { scale = { @eureka_star_scale @eureka_star_scale } position = { 0.1 0.5 } }		
		instance = { scale = { @eureka_star_scale @eureka_star_scale } position = { 0.9 0.5 } }		
		instance = { scale = { @eureka_star_scale @eureka_star_scale } position = { 0.5 0.135 } }		
		instance = { scale = { @eureka_star_scale @eureka_star_scale } position = { 0.5 0.865 } }				
	}
}
AST_subject = {	
	# blue ensign with commonwealth star and southern cross
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.33 0.33 } position = { 0.25 0.75 } }
		instance = { scale = { 0.17 0.17 } position = { 0.743 0.181 } }
		instance = { scale = { 0.17 0.17 } position = { 0.625 0.484 } }
		instance = { scale = { 0.17 0.17 } position = { 0.861 0.37 } }
		instance = { scale = { 0.20 0.20 } position = { 0.743 0.849 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.1 0.1 } position = { 0.8 0.543 } }
	}
}
AST_theocracy = {
	# Australian Anglican flag
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	color4 = "yellow"
	colored_emblem = {
		texture = "ce_cross_england_fimbriated.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_cross_england_fimbriated.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_mitre.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { @third @third } position = { 0.5 0.48 } }
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = color2
		color2 = color2
		
		instance = { scale = { @third @third } position = { @[1/5] @[1/6] } } # top left
		instance = { scale = { @third @third } position = { @[1/5] @[1-(1/6)] } } 
		instance = { scale = { @third @third } position = { @[1-(1/5)] @[1-(1/6)] } } 
		instance = { scale = { @third @third } position = { @[1-(1/5)] @[1/6] } } 
	}
}
AST_monarchy = {
	# Early COA
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue"
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green_dark"
		color2 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.552 } }
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "orange"
		color3 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.55 } }
	}
	colored_emblem = {		
		texture = "ce_coa_australia.dds"
		color1 = "blue"
		color2 = "white"
		color3 = "red"
        instance = { scale = { 0.55 0.55 } position = { 0.5 0.55 } }		
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.23 } }
	}	
}

AUS = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
AUS_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
}
AUS_absolute_monarchy = {
	# Habsburg imperial coat of arms, on top of the imperial flag (to make it more distinct vs Russia)

	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}	
    sub = {
        parent = "sub_AUS_crown" 
        instance = { scale = { 0.45 0.45 } offset = { 0.275 0.05 } }
    }
    sub = {
        parent = "sub_AUS_coa" 
        instance = { scale = { 0.9 0.9 } offset = { 0.05 0.1 } }
    }	
}
AUS_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	
	colored_emblem = {
		texture = "ce_eagle_double_headed.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "white"		
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.5 } }
	}	
}
AUS_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {		
		texture = "ce_cross_cotised.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }
	}		
}
AUS_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_coa_roundel_austria.dds"
		color1 = "azure"
		color2 = "yellow"
		color3 = "red"		
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.45 } }			
	}		
	colored_emblem = {
		texture = "ce_coa_frame_austria.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "red"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }	
	}
	colored_emblem = {
		texture = "ce_hammer_wheat.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.40 0.40 } position = { 0.5 0.52 } }			
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.275 } }			
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.30 0.30 } position = { 0.5 0.275 } }			
	}		
}
AUS_fascist = {
	# Flag of Fatherland's Front
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_fatherland_front.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
}
AUS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
    sub = {
        parent = "sub_AUS_right" 
        instance = { scale = { 0.9 0.9 } offset = { 0 0.05 } }
    }	
}

AWA = { # Awadh
	# 1842 design

	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_crown_oudh.dds"
		color1 = "yellow"
		color2 = "azure"
		instance = { scale = { 0.45 0.45 } position = { 0.50 0.3 } }			
	}
	colored_emblem = {
		texture = "ce_fish_oudh.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "saffron"
		instance = { scale = { 0.8 0.8 } position = { 0.48 0.60 } }			
	}	
}
AWA_absolute_monarchy = {
	# Simplified pre-1842 design

	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_umbrella.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.36 0.36 } position = { 0.50 0.28 } }			
	}
	colored_emblem = {
		texture = "ce_crown_oudh.dds"
		color1 = "yellow"
		color2 = "azure"
		instance = { scale = { 0.28 0.25 } position = { 0.50 0.40 } }			
	}
	colored_emblem = {
		texture = "ce_katar.dds"
		color1 = "yellow"
		color2 = "blue_light"
		instance = { scale = { 0.35 -0.30 } position = { 0.50 0.68 } }			
	}		
	colored_emblem = {
		texture = "ce_golden_fishes.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "saffron"
		instance = { scale = { 0.70 0.70 } position = { 0.5 0.65 } }			
	}	
}
AWA_subject = {

	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_crown_oudh.dds"
		color1 = "yellow"
		color2 = "blue_light"
		instance = { scale = { 0.33 0.33 } position = { 0.75 0.35 } }			
	}
	colored_emblem = {
		texture = "ce_fish_oudh.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "yellow_dark"
		instance = { scale = { 0.6 0.6 } position = { 0.735 0.55 } }			
	}	
}

AYM = {
	# Wiphala
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	@aym_stripe = @[1/7]

	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "orange"
		instance = { position = { 0.5 @[aym_stripe*8.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "red"
		instance = { position = { 0.5 @[aym_stripe*7.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "purple"
		instance = { position = { 0.5 @[aym_stripe*6.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "blue"
		instance = { position = { 0.5 @[aym_stripe*5.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "green"
		instance = { position = { 0.5 @[aym_stripe*4.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "white"
		instance = { position = { 0.5 @[aym_stripe*3.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "yellow"
		instance = { position = { 0.5 @[aym_stripe*2.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "orange"
		instance = { position = { 0.5 @[aym_stripe*1.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "red"
		instance = { position = { 0.5 @[aym_stripe*0.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "purple"
		instance = { position = { 0.5 @[aym_stripe*-0.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "blue"
		instance = { position = { 0.5 @[aym_stripe*-1.5] } }
	}
	colored_emblem = {
		texture = "ce_wiphala.dds"
		color1 = "green"
		instance = { position = { 0.5 @[aym_stripe*-2.5] } }
	}
}

AZB = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_crescent_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.33 0.33 } position = { 0.5 0.5 } }		
	}		
}	
AZB_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "blue_light"
	}		
}	
AZB_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.5 0.5 } position = { 0.2 0.45 }  }
	}
	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color1
        instance = { scale = { 0.2 0.2 } position = { 0.2 0.15 }  }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
        instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 }  }
	}	
}




BAD = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
BAD_republic = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
				
	colored_emblem = {
		texture = "ce_stripes_06.dds"
		color1 = "red"
		color2 = "red"		
	}				
}
BAD_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
				
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"		
	}
	colored_emblem = {
		texture = "ce_shield_baden.dds"
		color1 = "yellow"
		color2 = "black"
		color3 = "red"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.58 } }		
	}	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow_dark"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.28 } }	
	}	
}
BAD_oligarchy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "yellow"
	}		
}
BAD_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"		
	}

	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.24 0.24 } position = { 0.16 0.235 } }
	}		
	colored_emblem = {
		texture = "ce_coa_frame_austria.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "yellow"
		instance = { scale = { 0.40 0.40 } position = { 0.16 0.25 }  }	
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.12 0.12 } position = { 0.16 0.10 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.10 0.10 } position = { 0.16 0.10 } }
	}		
}

BAH = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "yellow"
	color3 = "black"
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color1
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0 0.5 } }
	}
}
BAH_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {		
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "yellow"
        instance = { position = { 0.75 0.5 } scale = { 0.75 0.75 } }
	}
	textured_emblem = {
		texture = "te_coa_bahamas.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.53 } } 
	}	
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.15 0.15 } position = { 0.75 0.345 } } 		

	}	
}

BAL = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_nonacolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
}

BAS = { # Bastar	
	pattern = "pattern_vertical_split_01.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.14 0.21 } }		
	}		
	colored_emblem = {
		texture = "ce_trident.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.95 0.95 } position = { 0.5 0.5 } }	
		mask = { 1 }		
	}	
	colored_emblem = {
		texture = "ce_trident.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.95 0.95 } position = { 0.5 0.5 } }		
		mask = { 2 }		
	}		
}
BAS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
			
	colored_emblem = {
		texture = "ce_trident.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}		
}

BAV = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue_light"
		color2 = "blue_light"
	}
}
BAV_republic  = { 
	# Wittelsbach Lozengy flag
	
	pattern = "pattern_lozengy_bend.dds"
	color1 = "blue_light"
	color2 = "white"
}
BAV_absolute_monarchy = {
	# Wittelsbach arms
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"

    sub = {
        parent = "sub_BAV_lozengy" 
		instance = { scale = { 0.5 0.5 } }			
    }		
    sub = {
        parent = "sub_BAV_lozengy" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } }			
    }		
	colored_emblem = {
		texture = "ce_lion_rampant_crowned.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.25 } }
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.75 } }		
	}		
}
BAV_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue_light"
		color2 = "blue_light"
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }			
	}	
	textured_emblem = {
		texture = "te_keys_st_peter.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.25 0.24 } }
	}	
}
BAV_communist = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue_light"
		color2 = "blue_light"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}		
}
BAV_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}
}


BEL = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "yellow"
		color2 = "red"
	}
}
BEL_republic = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "yellow"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.51 0.5 } }
	}	
}
BEL_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "yellow"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "yellow"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.25 } }
	}		
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.56 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.505 0.565 } }
	}	
}
BEL_dictatorship = {
	# Loosely based on a naval flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_saltire_fimbriated_02.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "black"
	}		
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.50 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.505 0.5 } }
	}	
}
BEL_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "black"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { @[1/30] 0.5 } scale = { @[1/15] 1.0 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.1 0.5 } scale = { @[1/15] 1.0 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.29 0.25 } scale = { 0.4 0.4 } } 
	}
}
BEL_fascist = {		
	# VNV Flag (RWB version)
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_delta.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } }
	}	
}
BEL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.30 } }	
	}	
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.515 0.475 } position = { 0.75 0.525 } }		
	}	
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "black"
		color2 = "yellow"
		instance = { scale = { 0.5 0.46 } position = { 0.75 0.525 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.36 0.36 } position = { 0.75 0.525 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}

BER = { # Beroda
	# Saffron flag (bhagwa zenda) of the Marathi conf.
	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
}

BGL  = { # Bengal
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
}

BHN = { # Bahrain
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.12 0.5 } scale = { 0.25 1 } }			
	}
}

BHO = { # Bhopal
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
}

BHT = {
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "orange"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"		
	}

	colored_emblem = {
		texture = "ce_dharmachakra_india.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.5 0.5 } scale = { 0.39 0.39 } }
	}
}

BHU = { # Bhutan
	pattern = "pattern_per_bend_senester.dds"
	color1 = "yellow"
	color2 = "orange"

	colored_emblem = {
		texture = "ce_dragon_bhutan.dds"
		color1 = "green"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}
}
BHU_subject = {
	pattern = "pattern_border_of_3.dds"
	color1 = "yellow"
	color2 = "orange"

	colored_emblem = {
		texture = "ce_dragon_bhutan.dds"
		color1 = "green"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.60 0.51 } scale = { 0.8 0.8 } }		
	}
}

BHU_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_dragon_bhutan.dds"
		color1 = "yellow"
		color2 = "saffron"
		color3 = "yellow_dark"
        instance = { position = { 0.74 0.50 } scale = { 0.55 0.55 } }		
	}
}

BIC = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "yellow"
	textured_emblem = {
		texture = "te_star_india.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}
BIC_subject = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "yellow"
	textured_emblem = {
		texture = "te_star_india.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.5 } }
	}	
}
BIC_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "blue"
    sub = {
        parent = "sub_BIC_cypher" 
        instance = { scale = { 0.5 0.5 }  } # top left
    }	
	colored_emblem = {
		texture = "ce_stripes_10.dds"
		color1 = color2
		color2 = color2
	}
}
BIC_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
    sub = {
        parent = "sub_BIC_cypher" 
        instance = { scale = { 1.0 1.0 } }
    }	
}

BIK = { # Bikaner
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_falcon.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "black_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
}
BIK_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_falcon.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "black_light"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}	
}

BLA = { # Bilua/Solomon Islands
	# Modern flag simplified
	pattern = "pattern_per_bend_senester.dds"
	color1 = "blue"
	color2 = "green"

	colored_emblem = {
		texture = "ce_bend_sinister.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }		
	}			
}
BLA_republic = {
	# Modern flag of Solomon Islands (bend is thinner)
	pattern = "pattern_per_bend_senester.dds"
	color1 = "blue"
	color2 = "green"

	colored_emblem = {
		texture = "ce_bend_sinister.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.16 0.16 } position = { 0.16 0.24 } }		
		instance = { scale = { 0.16 0.16 } position = { 0.08 0.12 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.24 0.12 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.08 0.36 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.24 0.36 } }		
	}	
}
BLA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.16 0.16 } position = { 0.75 0.5 } }		
		instance = { scale = { 0.16 0.16 } position = { 0.67 0.38 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.83 0.38 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.67 0.62 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.83 0.62 } }		
	}	
}
BLA_subject_FRA = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bend_sinister.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }		
	}	
}
BLA_subject_GBR = {
	# Solomon islands blue ensign
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.5 } } 		

	}		
	colored_emblem = {
		texture = "ce_legend_solomon_islands.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.5 } }	
	}		
}

BLG = { # Bulungan
	# Plain white flag (same as Johore and most sultanates in the region)
	
	pattern = "pattern_solid.tga"
	color1 = "white"
}
BLG_republic = { # Bulungan
	# Modern flag (no concrete info on intermediate designs)
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "black"
	}
}

BNJ = { # Banjar
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "black"
		color2 = "black"
	}
}

BOH = { # Bohemia
	pattern = "pattern_solid.tga"
	color1 = "white"
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}		
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant_forked_crowned.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.57 0.57 } position = { 0.51 0.51 } }
	}	
}
BOH_absolute_monarchy = {
	# Quartered moravian arms for this version perhaps
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.25 } }
	}		
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.56 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant_forked_crowned.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.505 0.565 } }
	}	
}

BOL = {
	# Default/republic
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "green"
	}	
}
BOL_dictatorship = { # Bolivia
	# Starting/Pres. dictatorship
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	textured_emblem = {
		texture = "te_coa_bolivia.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		instance = { scale = { 0.62 0.62 } position = { 0.5 0.50 } }
		color1 = "green"
		color2 = "red"		
	}	
}
BOL_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_wreath.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.56 } }
		color1 = "green"
		color2 = "green"		
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.25 } }
	}		
	textured_emblem = {
		texture = "te_coa_bolivia.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.56 } }
	}
}
BOL_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	textured_emblem = {
		texture = "te_coa_bolivia.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		instance = { scale = { 0.62 0.62 } position = { 0.5 0.50 } }
		color1 = "green"
		color2 = "red"		
	}	
}
BOL_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "green"
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
BOL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "white"
		color2 = "white"		
	}
	textured_emblem = {
		texture = "te_coa_bolivia.dds"
		instance = { scale = { 0.425 0.425 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		instance = { scale = { 0.56 0.56 } position = { 0.75 0.50 } }
		color1 = "green"
		color2 = "red"		
	}	
}

BOS = { # Bosnia
	# 1878 flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }	
	}	
}
BOS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.5 } }	
	}	
}

BRA = { # Brunswick
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
BRA_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		instance = { scale = { 0.19 0.08 } position = { 0.5 0.245 } }	
	}
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.24 } }	
	}
	colored_emblem = {
		texture = "ce_coa_brunswick.dds"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.595 } }	
		color1 = "blue"
		color2 = "yellow"
		color3 = "red"
	}		
}
BRA_republic = {
	# 1912 flag without crown
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		instance = { scale = { 0.76 0.76 } position = { 0.5 0.5 } }	
		color1 = "brown"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		instance = { scale = { 0.74 0.74 } position = { 0.5 0.5 } }	
		color1 = "red"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_horse.dds"
		instance = { scale = { 0.58 0.58 } position = { 0.51 0.5 } }	
		color1 = "white"
		color2 = "white"
		color3 = "grey"
	}	
}

BRE = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_checker_08.dds"
		color1 = "white"
		instance = { position = { -0.333 0.5 } scale = { -1 } }
	}
	colored_emblem = {
		texture = "ce_stripes_08.dds"
		color1 = "white"
		instance = { position = { 0.667 0.5 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.33 0.502 } position = { 0.5 0.501 }  }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.32 0.485 } position = { 0.5 0.502 }  }			
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.42 0.42 } position = { 0.5 0.56 } }				
	}	
	colored_emblem = {
		texture = "ce_key_bremen.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.57 } }				
	}	
	colored_emblem = {
		texture = "ce_crown_ducal.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "blue"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.36 } }				
	}		
}
BRE_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_checker_08.dds"
		color1 = "white"
		instance = { position = { -0.333 0.5 } scale = { -1 } }
	}
	colored_emblem = {
		texture = "ce_stripes_08.dds"
		color1 = "white"
		instance = { position = { 0.667 0.5 } }
	}
}
BRE_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.60 } }				
	}			
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.57 0.57 } position = { 0.5 0.60 } }				
	}	
	colored_emblem = {
		texture = "ce_key_bremen.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.425 0.425 } position = { 0.5 0.61 } }				
	}	
	colored_emblem = {
		texture = "ce_crown_ducal.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "blue"
		instance = { scale = { 0.64 0.64 } position = { 0.5 0.30 } }				
	}		
}
BRE_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.8 0.6 } position = { 0.5 0.5 }  }			
	}		
	colored_emblem = {
		texture = "ce_checkered_orle.dds"
		color1 = "red"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.42 0.42 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_key_bremen.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.51 } }				
	}		
}
BRE_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_checker_08.dds"
		color1 = "white"
		instance = { position = { @[1+1/3] 0.5 } scale = { 1.0 1.0 } }
	}
	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.465 0.465 } position = { 0.16 0.24 } }				
	}	
	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.16 0.24 } }				
	}	
}
BRE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }				
	}		
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.51 } }				
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.51 } }				
	}	
	colored_emblem = {
		texture = "ce_key_bremen.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.52 } }				
	}		
}
BRE_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.51 } }				
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.62 0.62 } position = { 0.5 0.51 } }				
	}	
	colored_emblem = {
		texture = "ce_key_bremen.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.52 } }				
	}		
}

BRI = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"

	colored_emblem = {
		texture = "ce_ermine_spot.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.10 0.00 } scale = { @semy @semy }  }
		instance = { position = { 0.30 0.00 } scale = { @semy @semy }  }
		instance = { position = { 0.50 0.00 } scale = { @semy @semy }  }
		instance = { position = { 0.70 0.00 } scale = { @semy @semy }  }
		instance = { position = { 0.90 0.00 } scale = { @semy @semy }  }
		instance = { position = { 0.00 0.20 } scale = { @semy @semy }  }
		instance = { position = { 0.20 0.20 } scale = { @semy @semy }  }
		instance = { position = { 0.40 0.20 } scale = { @semy @semy }  }
		instance = { position = { 0.60 0.20 } scale = { @semy @semy }  }
		instance = { position = { 0.80 0.20 } scale = { @semy @semy }  }
		instance = { position = { 1.00 0.20 } scale = { @semy @semy }  }
		instance = { position = { 0.10 0.40 } scale = { @semy @semy }  }
		instance = { position = { 0.30 0.40 } scale = { @semy @semy }  }
		instance = { position = { 0.50 0.40 } scale = { @semy @semy }  }
		instance = { position = { 0.70 0.40 } scale = { @semy @semy }  }
		instance = { position = { 0.90 0.40 } scale = { @semy @semy }  }
		instance = { position = { 0.00 0.60 } scale = { @semy @semy }  }
		instance = { position = { 0.20 0.60 } scale = { @semy @semy }  }
		instance = { position = { 0.40 0.60 } scale = { @semy @semy }  }
		instance = { position = { 0.60 0.60 } scale = { @semy @semy }  }
		instance = { position = { 0.80 0.60 } scale = { @semy @semy }  }
		instance = { position = { 1.00 0.60 } scale = { @semy @semy }  }
		instance = { position = { 0.10 0.80 } scale = { @semy @semy }  }
		instance = { position = { 0.30 0.80 } scale = { @semy @semy }  }
		instance = { position = { 0.50 0.80 } scale = { @semy @semy }  }
		instance = { position = { 0.70 0.80 } scale = { @semy @semy }  }
		instance = { position = { 0.90 0.80 } scale = { @semy @semy }  }
		instance = { position = { 0.00 1.00 } scale = { @semy @semy }  }
		instance = { position = { 0.20 1.00 } scale = { @semy @semy }  }
		instance = { position = { 0.40 1.00 } scale = { @semy @semy }  }
		instance = { position = { 0.60 1.00 } scale = { @semy @semy }  }
		instance = { position = { 0.80 1.00 } scale = { @semy @semy }  }
		instance = { position = { 1.00 1.00 } scale = { @semy @semy }  }
	}
}
BRI_republic = {
	# Gwenn-ha-du
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"
	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = color2
		color2 = color2
	}
    sub = {
        parent = "sub_BRI_canton" 
        instance = { scale = { 0.5 @[4/9] }  }
    }
}
BRI_theocracy = {
	# Kroaz Du
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}

BRU = {
	# 1906
	# NB The two bends didnt have the same ratio
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.58 } rotation = -15 }		
	}	
	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.42 } rotation = -15 }		
	}		
}
BRU_absolute_monarchy = {
	# Before 1906 - Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"
}
BRU_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0 0.5 } }
	}
}
BRU_dictatorship = {
	# Inspired from the Sarawak flag with republican colours (yellow & black being the colours of the royalty and the nobles)
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.58 } rotation = -15 }		
	}	
	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.38 } rotation = -15 }		
	}	
	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.18 } rotation = -15 }		
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.33 0.33 } position = { 0.5 0.5 } }			
	}		
}
BRU_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
		
	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.3 } }			
	}	
}
BRU_subject = {
	# Based on North Borneo Red Ensign
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds"
		color1 = "red"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }	
	}
}

BUN = { # Bundelkhand
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
BUN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_shield_heater_large_per_fess.dds"
		color1 = "red"
		color2 = "yellow"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}				
}

BUR = { # Burma	
	pattern = "pattern_solid.tga"
	color1 = "white"
	textured_emblem = {
		texture = "te_peacock.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.51 } }
	}		
}
BUR_absolute_monarchy = {
	# Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.5 } }		
	}
	textured_emblem = {
		texture = "te_peacock.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.51 } }
	}		
}
BUR_republic = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}
BUR_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.33 0.33 } position = { 0.25 0.24 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.355 0.29 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.145 0.29 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.25 0.40 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.32 0.115 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.18 0.115 } }			
	}	
}
BUR_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"	
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.15 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 0.15 0.15 } position = { 0.682 0.281 } }			
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.15 0.15 } position = { 0.727 0.577 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "black"
		color2 = "black"	
		instance = { scale = { 0.15 0.15 } position = { 0.600 0.815 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "green"
		color2 = "green"	
		instance = { scale = { 0.15 0.15 } position = { 0.399 0.815 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red_dark"
		color2 = "red_dark"	
		instance = { scale = { 0.15 0.15 } position = { 0.273 0.578 } }			
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "pink"
		color2 = "pink"	
		instance = { scale = { 0.15 0.15 } position = { 0.317 0.282 } }			
	}		
}
BUR_subject = {
	# Colonial flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { scale = { 0.43 0.43 } position = { 0.75 0.50 } }		
	}
	textured_emblem = {
		texture = "te_peacock.dds"
		instance = { scale = { 0.50 0.50 } position = { 0.75 0.505 } }
	}		
}

#BUR_late = {
#	# 1941 design (similar in colour to colonial flag)
#
#	pattern = "pattern_solid.tga"
#	color1 = "blue"
#	colored_emblem = {
#		texture = "ce_frame_circle.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#		instance = { scale = { 0.85 0.85 } position = { 0.5 0.5 } }		
#	}
#	textured_emblem = {
#		texture = "te_peacock.dds"
#		instance = { scale = { 1.0 1.0 } position = { 0.5 0.51 } }
#	}		
#}

BRZ = { # Brazil
	# 1822-89
	
	pattern = "pattern_rhombus.dds"
	color1 = "green"
	color2 = "yellow"	
	
	textured_emblem = {
		texture = "te_crown_imperial_brazil.dds"
		instance = { scale = { 0.32 0.32 } position = { 0.5 0.25 } }
	}	
	textured_emblem = {
		texture = "te_coa_brazil.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.57 } }
	}
	colored_emblem = {
		texture = "ce_laurel.dds"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.64 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_laurel_knot.dds"
		instance = { scale = { 0.20 0.20 } position = { 0.5 0.835 } }
		color1 = "red"
		color2 = "red"		
	}			
}
BRZ_republic = {
	# design adopted 1889 (after short lived american inspired flag)
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }		
	}		

	colored_emblem = {
		texture = "ce_celestial_sphere_brazil.dds"
		color1 = "azure"
		color2 = "green"
		color3 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }		
	}		
}
BRZ_dictatorship = {
	# 1889 flag (with canton stars rearranged)
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "green"
		color2 = "green"
	}
    sub = {
        parent = "sub_BRZ_canton_21" 
        instance = { scale = { 0.5 @[ 1 / 13 * 7 ] } }
    }
}
BRZ_communist = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "green"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.58 } position = { 0.25 0.25 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.28 } }	
	}
}
BRZ_fascist = {		
	# Flag of the AIB
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sigma.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
BRZ_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"	

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	textured_emblem = {
		texture = "te_coa_brazil.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.50 } }
	}
	colored_emblem = {
		texture = "ce_laurel.dds"
		instance = { scale = { 0.56 0.56 } position = { 0.75 0.54 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_laurel_knot.dds"
		instance = { scale = { 0.10 0.10 } position = { 0.75 0.70 } }
		color1 = "red"
		color2 = "red"		
	}			
}
BRZ_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"	

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	textured_emblem = {
		texture = "te_coa_brazil.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.50 } }
	}
	colored_emblem = {
		texture = "ce_laurel.dds"
		instance = { scale = { 0.56 0.56 } position = { 0.75 0.54 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_laurel_knot.dds"
		instance = { scale = { 0.10 0.10 } position = { 0.75 0.70 } }
		color1 = "red"
		color2 = "red"		
	}			
}
BRZ_subject_USA = {
	# 1889 flag (with canton stars rearranged)
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "green"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
		color1 = "blue"
		color2 = "blue"		
	}	
}

BUK = { # Bukhara
	pattern = "pattern_border_of_3.dds"
	color1 = "green"
	color2 = "orange"
	
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 0.3 0.3 } position = { 0.45 0.70 } }				
	}
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.6 } rotation = 270 position = { 0.45 0.4 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 -0.12 } position = { 0.45 0.38 } }	
		instance = { scale = { 0.08 0.16 } rotation = 270 position = { 0.38 0.25 } }	
		instance = { scale = { 0.08 0.16 } rotation = 90 position = { 0.52 0.25 } }			
	}	
}
BUK_absolute_monarchy = {
	# Starting flag
	# Shahada replaces the legend on the right (name of the emir)
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.40 0.40 } position = { 0.5 0.70 } }				
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.40 0.40 } position = { 0.49 0.32 } }		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } rotation = 180 position = { 0.57 0.20 } }	
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.05 0.05 } position = { 0.57 0.20 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
		instance = { scale = { 0.066 1.0 } position = { 0.033 0.5 } }	
		instance = { scale = { 0.066 1.0 } position = { 0.967 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "brown"
		color2 = "brown"
		instance = { scale = { 0.04 0.12 } rotation = 180 position = { 0.032 0.08 } }		
		instance = { scale = { 0.04 0.12 } rotation = 180 position = { 0.032 0.92 } }
		instance = { scale = { 0.04 0.12 } rotation = 180 position = { 0.968 0.08 } }			
		instance = { scale = { 0.04 0.12 } rotation = 180 position = { 0.968 0.92 } }		
	}	
	colored_emblem = {
		texture = "ce_pattern_bukhara.dds"
		color1 = "saffron"
		color2 = "saffron"		
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.032 0.20 } }	
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.032 0.35 } }		
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.032 0.50 } }
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.032 0.65 } }			
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.032 0.80 } }	
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.968 0.20 } }
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.968 0.35 } }			
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.968 0.50 } }	
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.968 0.65 } }			
		instance = { scale = { 0.14 0.2 } rotation = 100 position = { 0.968 0.80 } }	
	
	}	
	colored_emblem = {
		texture = "ce_pattern_bukhara.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.15 0.15 } position = { 0.15 0.05 } }
		instance = { scale = { 0.15 0.15 } position = { 0.25 0.05 } }
		instance = { scale = { 0.15 0.15 } position = { 0.35 0.05 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.45 0.05 } }
		instance = { scale = { 0.15 0.15 } position = { 0.55 0.05 } }
		instance = { scale = { 0.15 0.15 } position = { 0.65 0.05 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.75 0.05 } }
		instance = { scale = { 0.15 0.15 } position = { 0.85 0.05 } }
		instance = { scale = { 0.15 0.15 } position = { 0.15 0.95 } }
		instance = { scale = { 0.15 0.15 } position = { 0.25 0.95 } }
		instance = { scale = { 0.15 0.15 } position = { 0.35 0.95 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.45 0.95 } }
		instance = { scale = { 0.15 0.15 } position = { 0.55 0.95 } }
		instance = { scale = { 0.15 0.15 } position = { 0.65 0.95 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.75 0.95 } }
		instance = { scale = { 0.15 0.15 } position = { 0.85 0.95 } }		
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "brown"
		color2 = "brown"
		instance = { scale = { 0.05 0.05 } position = { 0.1 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.2 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.3 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.4 0.05 } }			
		instance = { scale = { 0.05 0.05 } position = { 0.5 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.6 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.7 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.8 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.9 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.1 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.2 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.3 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.4 0.95 } }			
		instance = { scale = { 0.05 0.05 } position = { 0.5 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.6 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.7 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.8 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.9 0.95 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.968 0.275 } }		
		instance = { scale = { 0.05 0.05 } position = { 0.968 0.725 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.032 0.275 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.032 0.725 } }			
		instance = { scale = { 0.05 0.05 } position = { 0.968 0.425 } }		
		instance = { scale = { 0.05 0.05 } position = { 0.968 0.575 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.032 0.425 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.032 0.575 } }			
	}	
	colored_emblem = {
		texture = "ce_shahada.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.35 0.9 } rotation = 90 position = { 0.23 0.5 } }	
		instance = { scale = { 0.35 0.9 } rotation = 90 position = { 0.77 0.5 } }			
	}		
}
BUK_republic = {
	# Same construction as the communist flag, without the red
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "orange"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "orange"
		color2 = "orange"
	}	
	colored_emblem = {
		texture = "ce_crescent_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }		
	}		
}
BUK_theocracy = {
	pattern = "pattern_border_of_3.dds"
	color1 = "green"
	color2 = "orange"
	
	colored_emblem = {
		texture = "ce_shahada.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 1.0 1.1 } position = { 0.46 0.5 } }				
	}	
}
BUK_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 1.2 } rotation = 270 position = { 0.5 0.58 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 -0.25 } position = { 0.5 0.50 } }	
	}		
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.37 0.30 } }	
		instance = { scale = { -0.25 0.25 } position = { 0.63 0.30 } }			
	}	
}
BUK_communist = {
	# Legend in uzbek using arabic characters
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 0.7 0.7 } position = { 0.48 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.60 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_legend_bukhara_communist.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.225 0.15 } }	
	}	
}
BUK_soviet = {
	# Russian legend in cyrillic once a soviet republic
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.8 0.8 } position = { 0.48 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.3 0.3 } position = { 0.60 0.5 } }	
	}
    sub = {
        parent = "sub_bnsr" 
		color1 = "yellow"
        instance = { scale = { 0.45 0.45 } offset = { 0.025 0 } }
    }	
}
BUK_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.40 0.40 } position = { 0.75 0.70 } }				
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.40 0.40 } position = { 0.75 0.32 } }		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } rotation = 180 position = { 0.83 0.20 } }	
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.05 0.05 } position = { 0.83 0.20 } }		
	}	
}
BUK_subject_GBR = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.24 0.24 } position = { 0.75 0.62 } }				
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.24 0.24 } position = { 0.75 0.39 } }		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.12 0.12 } rotation = 180 position = { 0.795 0.325 } }	
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.02 0.02 } position = { 0.795 0.325 } }		
	}	
}

BUL = { # Bulgaria
	# 1878
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "red"
	}		
}
BUL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "green"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }
	}
}

BYE = { # Belarus
	# 1917
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "white"
	}		
}
BYE_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.45 0.45 } position = { 0.25 0.25 }  }
	}
    sub = {
        parent = "sub_bssr" 
        instance = { scale = { 0.45 0.45 } offset = { 0.09 0.28 } }
    }
}
BYE_absolute_monarchy = {
	# Tricolor with Pahonia COA
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.73 0.65 } position = { 0.33 0.52 } }		
	}	
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.68 0.6 } position = { 0.33 0.52 } }		
	}	
	textured_emblem = {
		texture = "te_vytis.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.325 0.51 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.33 0.20 } }
	}	
}

BYZ = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_letter_beta.dds"
		color1 = color2
		color2 = color2
		
        instance = { position = { @[canton_scale_cross_x/2] @[canton_scale_cross_y/2] } scale = { @[-1/5*2] @[1/5*2] } } # top left
        instance = { position = { @[1-(canton_scale_cross_x/2)] @[canton_scale_cross_y/2] } scale = { @[1/5*2] @[1/5*2] } } # top right
        instance = { position = { @[canton_scale_cross_x/2] @[1-(canton_scale_cross_y/2)] } scale = { @[-1/5*2] @[1/5*2] } } # bottom left
        instance = { position = { @[1-(canton_scale_cross_x/2)] @[1-(canton_scale_cross_y/2)] } scale = { @[1/5*2] @[1/5*2] } } # bottom right
	}
}

CAL = { # California
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.25 0.25 } position = { 0.12 0.18 } }			
	}
	colored_emblem = {
		texture = "ce_bear_california.dds"
		color1 = "tan"
		color2 = "brown"
		color3 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.4 } }			
	}			
    sub = {
        parent = "sub_legend_california" 
        instance = { scale = { 0.55 0.55 } offset = { 0.15 0.28 } }
    }
    sub = {
        parent = "sub_legend_republic" 
        instance = { scale = { 0.55 0.55 } offset = { 0.31 0.28 } }
    }	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}	
}

CAM = { # Cambodia
	# Flag of Khmer Empire before 1863
	
	pattern = "pattern_border_of_3.dds"
	color1 = "yellow"
	color2 = "green"
	
}
CAM_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_angkor_vat.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.52 } }			
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
CAM_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_angkor_vat.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }
	}
}
CAM_fascist = {	
	# WW2 Kampuchea
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.42 0.58 } position = { 0.5 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.39 0.54 } position = { 0.5 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.08 0.12 } position = { 0.5 0.5 } }
		instance = { scale = { 0.08 0.12 } position = { 0.30 0.22 } }
		instance = { scale = { 0.08 0.12 } position = { 0.70 0.78 } }
		instance = { scale = { 0.08 0.12 } position = { 0.30 0.78 } }
		instance = { scale = { 0.08 0.12 } position = { 0.70 0.22 } }		
	}	
}
CAM_subject_FRA = {
	# French protectorate flag
	
	pattern = "pattern_border_of_4.dds"
	color1 = "red"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_angkor_vat.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.52 } }			
	}
}

CAN = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_thick.dds"
		color1 = color2
		color2 = color1	
	}
	colored_emblem = {
		texture = "ce_maple_leaf.dds"
		color1 = color1
		color2 = color1
		instance = { scale = { 0.8 0.8 } } 
	}
}
CAN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	textured_emblem = {
		texture = "te_coa_canada.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.50 } }
	}
}
CAN_theocracy = {
	# Anglican Church of Canada
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "green"
	color4 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_maple_leaf.dds"
		color1 = color3
		color2 = color4
		
		instance = { scale = { 0.33 0.33 } position = { @[111/256/2] @[102/256/2] } } # top left
		instance = { scale = { 0.33 0.33 } position = { @[1-(111/256/2)] @[102/256/2] } } # top right
		instance = { scale = { 0.33 0.33 } position = { @[1-(111/256/2)] @[1-(102/256/2)] } } # bottom right
		instance = { scale = { 0.33 0.33 } position = { @[111/256/2] @[1-(102/256/2)] } }
	}
}
CAN_fascist = {		
	# Emblem of NUP
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_flame_canada_nup.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.52 } }
	}	
}
CAN_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_laurel.dds"
		color1 = "green"
		color2 = "orange"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.65 } }
	}		
	textured_emblem = {
		texture = "te_coa_canada.dds"
		instance = { scale = { 0.66 0.66 } position = { 0.50 0.58 } }
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.40 0.40 } position = { 0.5 0.225 } }
	}	
}
CAN_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_thick.dds"
		color1 = color2
		color2 = color1
	}
	colored_emblem = {
		texture = "ce_maple_leaf.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.8 0.8 } } 
	}
}
CAN_communist = {
	# Flag of the canadian CP, only with an additionnal white stripe for difference
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.15 0.24 } scale = { 0.4 0.4 } } 
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color1
		color2 = color1
		instance = { position = { 0.15 0.255 } scale = { 0.2 0.2 } } 
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.85 0.5 } scale = { 0.1 1.0 } } 
	}	
}
CAN_oligarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_thick.dds"
		color1 = "red"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_maple_leaf_canada.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } } 
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.75 0.5 } scale = { 0.025 1.0 } } 
		instance = { position = { 0.25 0.5 } scale = { 0.025 1.0 } } 		
	}	
}
CAN_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_bend.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_maple_leaf_canada.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.83 0.71 } scale = { 0.55 0.55 } } 
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.175 0.26 } }			
	}		
}

CAS = { # Castile
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "yellow"
	color4 = "purple"
	color5 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		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_lion_rampant_crowned.dds"
		color1 = color4
		color2 = color3
		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 = color3
		color2 = color5
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.45 } }
		instance = { position = { 0.75 0.75 } scale = { 0.5 0.45 } }
	}
}

CAT = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
CAT_coa = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { rotation = 90 } 
	}
}
CAT_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"
	color4 = "white"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.175 0.5 } scale = { 0.4 0.4 } }
	}
}
CAT_communist = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "yellow"
	color4 = "red"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.175 0.5 } scale = { 0.4 0.4 } }
	}
}

# CEL : Ignore (Removed)
CEL = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.8 0.8 } } 
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color1
		color2 = color1
		instance = { scale = { 0.7 0.7 } } 
	}
	colored_emblem = {
		texture = "ce_triskelion_double.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.7 0.7 } } 
	}
}

CEY = { # Ceylon
	# Flag of Kandy
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	color2 = "purple"
	
	colored_emblem = {		
		texture = "ce_border_ceylon.dds"
		color1 = "red"
		color2 = "yellow"	
		color3 = "black"
	}			
	colored_emblem = {		
		texture = "ce_lion_sri_lanka.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "yellow"
        instance = { position = { 0.49 0.5 } scale = { 1.0 1.0 } }		
	}		
}
CEY_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
	colored_emblem = {		
		texture = "ce_lion_sri_lanka.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "yellow"
        instance = {  scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}		
}
CEY_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

    sub = {
        parent = "sub_CEY" 
        instance = { scale = { 0.7 0.7 } offset = { 0.225 0.15 }  }
    }	
}

CHC = { # Chechnya
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"

	# That's it!
}

CHC_imamate = { # Caucasian Imamate
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.1 } scale = { 0.66 0.2 } }
        instance = { position = { 0.5 0.9 } scale = { 0.66 0.2 } }	
	}	
}

CHE = { # Cherokee
	# Cherokee flag - Alternate circle design
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "yellow"
	
    sub = {
        parent = "sub_CHE_stars" 
    }	
}
CHE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "red"
	color3 = "yellow"

    sub = {
        parent = "sub_CHE_stars" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 } }
    }
}

CHI = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_dragon_china_circle.dds"
		color1 = "blue"
		color2 = "white"
		color3 = "blue_light"
		instance = { scale = { 0.68 0.68 } position = { 0.50 0.51 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.12 0.12 } position = { 0.5 0.525 } }		
	}		
}
CHI_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.16 0.16 } position = { 0.10 0.155 } }		
	}	
	colored_emblem = {
		texture = "ce_clouds_china_02.dds"
		color1 = "azure"
		color2 = "blue"
		color3 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.59 0.45 } }		
	}	

	colored_emblem = {
		texture = "ce_dragon_china.dds"
		color1 = "blue"
		color2 = "white"
		color3 = "blue_light"
		instance = { scale = { 1.4 1.4 } position = { 0.5 0.49 } }			
	}
	colored_emblem = {
		texture = "ce_clouds_china_01.dds"
		color1 = "azure"
		color2 = "blue"
		color3 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.76 0.76 } }				
	}	

	colored_emblem = {
		texture = "ce_clouds_china_03.dds"
		color1 = "white"
		color2 = "blue"
		color3 = "azure"
		instance = { scale = { 0.4 0.4 } position = { 0.39 0.81 } }			
	}	
}
CHI_republic = {
	# Chinese republic 1912
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}		
}
CHI_dictatorship = {
	# Kuomintang flag war flag 1930
	
	pattern = "pattern_border_of_4.dds"
	color1 = "blue"
	color2 = "red"


	colored_emblem = {
		texture = "ce_sun.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.43 0.43 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.38 0.38 } position = { 0.5 0.5 } }		
	}	
}
CHI_theocracy = {
	# Simple variant of the imperial dragon flag with a border
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_border_sikkim.dds"
		color1 = "red"
		color2 = "blue"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_clouds_china_01.dds"
		color1 = "orange"
		color2 = "blue_light"
		color3 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.61 0.49 } }	
	}
	colored_emblem = {
		texture = "ce_clouds_china_02.dds"
		color1 = "white"
		color2 = "blue_light"
		color3 = "orange"
		instance = { scale = { 0.3 0.3 } position = { 0.16 0.62 } }				
	}	
	colored_emblem = {
		texture = "ce_clouds_china_02.dds"
		color1 = "orange"
		color2 = "white"
		color3 = "blue_light"	
		instance = { scale = { 0.3 0.3 } position = { 0.41 0.68 } }			
	}	
	colored_emblem = {
		texture = "ce_clouds_china_03.dds"
		color1 = "white"
		color2 = "blue_light"
		color3 = "orange"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.62 } }			
	}	
	colored_emblem = {
		texture = "ce_clouds_china_03.dds"
		color1 = "blue_light"
		color2 = "white"
		color3 = "orange"
		instance = { scale = { 0.3 0.3 } position = { 0.48 0.32 } }			
	}	
	colored_emblem = {
		texture = "ce_sun.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.16 0.16 } position = { 0.12 0.28 } }		
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.10 0.10 } position = { 0.12 0.28 } }		
	}	
	colored_emblem = {
		texture = "ce_dragon_china.dds"
		color1 = "blue"
		color2 = "white"
		color3 = "blue_light"
		instance = { scale = { 1.12 1.0 } position = { 0.47 0.48 } rotation = -7.5 }			
	}	
}
CHI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_dragon_china_circle.dds"
		color1 = "blue"
		color2 = "white"
		color3 = "blue_light"
		instance = { scale = { 0.52 0.52 } position = { 0.75 0.51 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.08 0.08 } position = { 0.75 0.52 } }		
	}		
}
CHI_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.33 0.33 } position = { 0.165 0.25 }  }
        instance = { scale = { 0.12 0.12 } position = { 0.40 0.35 }  }		
	}
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { -0.12 0.12 } position = { 0.33 0.10 }  }
        instance = { scale = { 0.12 0.12 } position = { 0.40 0.20 }  }
        instance = { scale = { -0.12 0.12 } position = { 0.33 0.45 }  }		
	}	
}

CHL_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	textured_emblem = {
		texture = "te_coa_chile.dds"
		instance = { scale = { 0.54 0.54 } position = { 0.5 0.5 } }
	}	
}
CHI_han_empire = { # Han Imperial China

	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {		
		texture = "ce_rhombus.dds"
		color1 = "blue"
		color2 = "blue"	
		instance = { scale = { 1.0 1.0 } position = { 1 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 1.0 } position = { 0 0.5 } }	
	}
	colored_emblem = {		
		texture = "ce_saltire.dds"
		color1 = "red"
		color2 = "red"
	}
}
CHL = { # Chile
	@chl_width = @[0.5/1.5]
	@chl_height = 0.5
	@chl_star_scale = 0.6
	# Starting/Pres. Oligarchy
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1 @[1/2] } position = { 0.5 0.75 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { @[chl_width] @[chl_height] } position = { @[chl_width/2] @[chl_height/2] }  }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @[chl_height*chl_star_scale] @[chl_height*chl_star_scale] } position = { @[chl_width/2] @[chl_height/2] }  }
	}
}
CHL_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "yellow"
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.23 } }
	}		
	textured_emblem = {
		texture = "te_coa_chile.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_laurel.dds"
		color1 = "green"
		color2 = "orange"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.58 } }
	}	
	colored_emblem = {
		texture = "ce_ribbon.dds"
		color1 = "azure"
		color2 = "azure"
		instance = { scale = { 0.12 0.12 } position = { 0.5 0.77 } }
	}	
}
CHL_fascist = {	
	# MNS/Partido Nacista
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "yellow"
	}	
	colored_emblem = {
		texture = "ce_lightning_bolt_nacista.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}	
}
CHL_communist = { 	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_frame_circle_per_fess.dds"
		color1 = "white"
		color2 = "blue"
		color3 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.48 0.48 } position = { 0.5 0.49 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.14 } position = { 0.5 0.195 } }
	}	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.9 0.88 } position = { 0.5 0.5 } }
	}		
}
CHL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "yellow_dark"
		color2 = "white"		
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.5 } }
		color1 = "white"
		color2 = "white"		
	}	
	textured_emblem = {
		texture = "te_coa_chile.dds"
		instance = { scale = { 0.40 0.38 } position = { 0.75 0.505 } }
	}	
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		instance = { scale = { 0.55 0.53 } position = { 0.75 0.51 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.08 0.08 } position = { 0.75 0.31 } }
		color1 = "yellow_dark"
		color2 = "red"		
	}	
}

CHP = { # Champasak
	pattern = "pattern_solid.tga"
	color1 = "blue"

    sub = {
        parent = "sub_CHP" 
        instance = { scale = { 1.0 1.0 } offset = { 0 0 } }
    }		
}
CHP_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

    sub = {
        parent = "sub_CHP" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 } }
    }		
}

CIR = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {		
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"

		# Right side stars

        instance = { position = { 0.12 0.65 } scale = { 0.15 0.15 } }
        instance = { position = { 0.18 0.43 } scale = { 0.15 0.15 } }
        instance = { position = { 0.27 0.25 } scale = { 0.15 0.15 } }
        instance = { position = { 0.38 0.14 } scale = { 0.15 0.15 } }
        instance = { position = { 0.38 0.3 } scale = { 0.15 0.15 } }

		# Middle row stars
        instance = { position = { 0.5 0.1 } scale = { 0.15 0.15 } }
        instance = { position = { 0.5 0.3 } scale = { 0.15 0.15 } }

		# Left side stars

        instance = { position = { 0.88 0.65 } scale = { 0.15 0.15 } }
        instance = { position = { 0.82 0.43 } scale = { 0.15 0.15 } }
        instance = { position = { 0.73 0.25 } scale = { 0.15 0.15 } }
        instance = { position = { 0.62 0.14 } scale = { 0.15 0.15 } }
        instance = { position = { 0.62 0.3 } scale = { 0.15 0.15 } }
	}

	colored_emblem = {		
		texture = "ce_three_arrows_square.dds"
		color1 = "yellow"
		color2 = "yellow"

        instance = { position = { 0.5 0.67 } scale = { 0.5 0.5 } }
    }
}

CLM = { # Colombia
	# 1831-57 Starting/Republic
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "blue"
		color2 = "yellow"
	}
}
CLM_dictatorship = {
	# 1861 US of New Granada 9 stars design
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "blue"
		color2 = "yellow"
	}

	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.14 0.14 } position = { 0.42 0.38 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.50 0.34 } }
		instance = { scale = { 0.14 0.14 } position = { 0.58 0.38 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.50 0.50 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.40 0.50 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.60 0.50 } }			
		instance = { scale = { 0.14 0.14 } position = { 0.42 0.62 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.50 0.66 } }
		instance = { scale = { 0.14 0.14 } position = { 0.58 0.62 } }			
		color1 = "white"
		color2 = "white"		
	}
}
CLM_oligarchy = {
	# 1834 Merchant flag 
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "blue"
		color2 = "yellow"
	}

	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }	
		color1 = "white"
		color2 = "white"		
	}
}
CLM_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.85 0.8 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.7 0.6 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }			
	}	
}
CLM_gran_colombia = { # Gran Colombia
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_coa_colombia.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "green"
		color2 = "green"
		color3 = "red"
		instance = { scale = { 0.70 0.70 } position = { 0.5 0.5 } }
	}	
}
CLM_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "white"
		instance = { scale = { 0.85 0.775 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "green"
		instance = { scale = { 0.7 0.55 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.51 } }	
		color1 = "yellow"
		color2 = "white"		
	}	
}
CLM_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cornucopias.dds"
		color1 = "yellow"
		color2 = "green"
		color3 = "red_light"
		instance = { scale = { 0.6 0.55 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_pomegranate.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.28 0.28 } position = { 0.752 0.56 } }
	}	
}
CLM_subject_MEX = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.85 0.775 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.7 0.55 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }	
		color1 = "white"
		color2 = "white"		
	}	
}


CMI = { # Chiang Mai
	# Design based on the seal for Chiang Mai, which is rather similar to Lan Na (with an elephant)
	# Colours are conjectured here (it's a red flag for sure and my guess is a golden buddha statue)
	
	pattern = "pattern_solid.tga"
	color1 = "red"	
	
	colored_emblem = {
		texture = "ce_temple_thai.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.52 } }			
	}	
	colored_emblem = {
		texture = "ce_buddha.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.5 } position = { 0.5 0.53 } }			
	}	
}
CMI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"	
	
	colored_emblem = {
		texture = "ce_temple_thai.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.52 } }			
	}	
	colored_emblem = {
		texture = "ce_buddha.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.75 0.54 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
CMI_subject_gold = {
	pattern = "pattern_solid.tga"
	color1 = "red"	
	
	colored_emblem = {
		texture = "ce_temple_thai.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.52 } }			
	}	
	colored_emblem = {
		texture = "ce_buddha.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.75 0.54 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

# IGNORE
CNG = { # Congo
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.51 }  }
	}
}

#CNG_republic = {
#	pattern = "pattern_solid.tga"
#	color1 = "blue"
#	color2 = "yellow"
#
#	colored_emblem = {
#		texture = "ce_bend_sinister.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#		instance = { scale = { 1.25 1.25 } position = { 0.5 0.5 }  }
#	}
#	colored_emblem = {
#		texture = "ce_bend_sinister.dds"
#		color1 = "red"
#		color2 = "red"
#		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
#	}	
# 	colored_emblem = {
#		texture = "ce_star_05.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#		instance = { scale = { 0.5 0.5 } position = { 0.18 0.30 } }				
#	}	
#}
## IGNORE
#CNG_dictatorship = {
#	pattern = "pattern_solid.tga"
#	color1 = "blue"
#	color2 = "yellow"
#
#	colored_emblem = {
#		texture = "ce_star_05.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#		instance = { scale = { 0.6 0.6 } position = { 0.5 0.51 }  }
#	}
# 	colored_emblem = {
#		texture = "ce_star_05.dds"
#		color1 = "yellow"
#		color2 = "white"
#		instance = { scale = { 0.15 0.15 } position = { 0.1 0.10 } }		
#		instance = { scale = { 0.15 0.15 } position = { 0.1 0.26 } }		
#		instance = { scale = { 0.15 0.15 } position = { 0.1 0.42 } }	
#		instance = { scale = { 0.15 0.15 } position = { 0.1 0.58 } }		
#		instance = { scale = { 0.15 0.15 } position = { 0.1 0.74 } }		
#		instance = { scale = { 0.15 0.15 } position = { 0.1 0.90 } }			
#	}	
#}

COM = { # Comanche
	# Design from a period war shield featuring first rays of the sun
	# BG colour works better in red vs blue of modern tribal flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "peach"
		color2 = "peach"
        instance = { position = { 0.4 0.5 } scale = { 0.115 1.0 } }				
	}		
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.4 0.5 } scale = { 0.82 0.82 } }		
	}
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "peach"
		color2 = "peach"
        instance = { position = { 0.4 0.5 } scale = { 0.8 0.8 } }		
	}	
	colored_emblem = {		
		texture = "ce_comanche_sun.dds"
		color1 = "red"
		color2 = "yellow"
        instance = { position = { 0.4 0.5 } scale = { 1.1 1.1 } }		
	}	
}

COR = { # Corsica
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"
	color3 = "yellow"
	
	colored_emblem = {
		texture = "ce_moors_head.dds"
		color1 = "black_light"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}
}
COR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"
	color3 = "yellow"
		
	colored_emblem = {
		texture = "ce_moors_head.dds"
		color1 = "black_light"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.7 0.7 } position = { 0.75 0.60 } }
	}
}

COS = { # Costa Rica
	# Adopted 1848 (variants of the UCA design before that)	
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 @[third*2] } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 @third } position = { 0.5 0.5 } }		
	}	
}
COS_subject = {
	# Based on early CoA
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_coa_costa_rica.dds"
		color1 = "blue_light"
		color2 = "green"
		color3 = "peach"
		instance = { scale = { 0.7 0.7 } position = { 0.75 0.5 } }		
	}		
}
COS_subject_MEX = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_coa_frame_costa_rica.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "black"
		instance = { scale = { 0.425 0.425 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "red"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.5 } }		
	}	
}

CRO = { 
	# default monarchy with crown
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.26 } }
	}	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}		
	colored_emblem = {
		texture = "ce_shield_checkered.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
}
CRO_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}		
	colored_emblem = {
		texture = "ce_shield_checkered.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
}
CRO_dictatorship = {
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_checker_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.225	0.8 } position = { 0.5 0.5 } }		
		mask = { 1 }
	}	
}
CRO_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.30 } }
	}		
	colored_emblem = {
		texture = "ce_shield_checkered.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.55 } }
	}	
}

CSA = {
	# Stars & bars (13 stars version, arranged & rotated in circle)	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
    sub = {
        parent = "sub_CSA_canton_stars" 
        instance = { scale = { 0.5 @[third*2.005] }  } # top left
    }
}
CSA_stainless = {
	# Stainless banner (13 stars design, aligned with saltire)
	
	pattern = "pattern_solid.tga"
	color1 = "white"
    sub = {
        parent = "sub_CSA_canton_saltire" 
        instance = { scale = { 0.5 @[third*2.005] }  } # top left
    }
}
CSA_blood_stained = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
    sub = {
        parent = "sub_CSA_canton_saltire" 
        instance = { scale = { 0.5 @[third*2.005] }  } # top left
    }
}
CSA_battle_flag = {
	pattern = "pattern_solid.tga"
	color1 = "white"
    sub = {
        parent = "sub_CSA_saltire" 
    }
}
CSA_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "white"

 	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.25 } }
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.75 } }
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
	}	
 	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.5 } }
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.1 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.3 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.7 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.9 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.392] 0.5 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.284] 0.5 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.175] 0.5 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.067] 0.5 } }			
		instance = { scale = { 0.15 0.15 } position = { @[0.608] 0.5 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.716] 0.5 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.825] 0.5 } }		
		instance = { scale = { 0.15 0.15 } position = { @[0.933] 0.5 } }			
	}	
}
CSA_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_saltire_fimbriated.dds"
		color1 = "white"
		color2 = "blue"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } } 
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.14 } position = { 0.5 0.505 } }				
		instance = { scale = { 0.14 0.14 } position = { 0.36 0.64 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.64 0.64 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.36 0.36 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.64 0.36 } }	
		instance = { scale = { 0.14 0.14 } position = { 0.22 0.78 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.78 0.78 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.22 0.22 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.78 0.22 } }					
		instance = { scale = { 0.14 0.14 } position = { 0.08 0.92 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.92 0.92 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.08 0.08 } }		
		instance = { scale = { 0.14 0.14 } position = { 0.92 0.08 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.43 0.43 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_hammer_sickle_cogwheel_usa.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.51 }  }	
	}
}
CSA_subject_MEX = {
	# Mexican colours
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
    sub = {
        parent = "sub_CSA_canton_stars" 
        instance = { scale = { 0.5 @[third*2.005] }  } # top left
    }
}

CRE = { # Crete
	# 1898 Ottoman star in canton
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }		
	}
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "white"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.21 0.21 } scale = { 0.4 0.4 } }
	}	
}

CRE_variant = {
	# Variant with stripes
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "blue"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @third @uru_canton_height } position = { @[third/2] @[uru_canton_height/2] } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @[uru_canton_height*0.66] @[uru_canton_height*0.66] } position = { @[third/2] @[uru_canton_height/2] } }
	}
}

CRI = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_tamga_tatar.dds" 
		color1 = color2
		color2 = color2
		instance = { position = { @[1/4] @[1/4] }scale = { @[1/2] @[1/2] } } 
	}
}

CUB = { # Cuba
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = color1
		color2 = color1
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.175 0.5 } scale = { 0.4 0.4 } }
	}
}
CUB_spa = {
	# Autonomista flag. Didn't actually appear until the 1890s.
	# Historically Cuba was using the Spanish flag which is a bit boring

	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = color1
		color2 = color1
	}
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color3
		color2 = color3
	}
}
CUB_early = {
	# Bolivar Flag - First independentist flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
		instance = { scale = { 0.066 1.0 } position = { 0.033 0.5 } }	
		instance = { scale = { 0.066 1.0 } position = { 0.967 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}	
}
CUB_subject_USA = {
	# Inspired from 1847 Independentist flag (Club de la Habana) - Precusor to modern one
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.2 0.5 } scale = { 0.4 1.0 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.2 0.5 } }
	}
}
CUB_oligarchy = {
	# 1848 Independentist Flag (Conspiración de La Mina)
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 0.55 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.20 0.51 } }
	}	
}
CUB_dictatorship = {
	# 1868 Independentist Flag (Grito de Yara)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.5 } position = { 0.5 0.75 } }
	}

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 }  }
	}

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @third @third } position = { 0.25 0.25 }  }
	}
}
CUB_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"

	textured_emblem  = {
		texture = "te_coa_cuba.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.50 } }	
	}			
}

CYP = { # Cyprus
	# Flag used by cypriots during greek war of independence
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_cotised.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }
	}
}
CYP_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds"
		color1 = "red"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.40 } }
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.58 } }		
	}
}
CYP_TUR = {
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.45 0.5 } }				
	}
}

CZH = { # Czechoslovakia
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0 0.5 } }
	}
}
CZH_fascist = {		
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.68 0.68 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_vlajka_emblem.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}	
}

DAG = { # Dagestan
	# Emirate flag, colours sometimes given in inverted order
	
	pattern = "pattern_border_of_3.dds"
	color1 = "green"
	color2 = "red"
}
DAG_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}		
}
DAG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
        instance = { scale = { 0.2 1.0 } position = { 0.1 0.5 }  }
	}
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { @third @third } position = { 0.342 @third }  }
	}
	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color1
        instance = { scale = { 0.145 0.145 } position = { 0.342 0.125 }  }
	}
}

DAH = {
	# Kingdom of Dahomey/Benin
	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_elephant_african.dds"
		color1 = "grey"
		color2 = "pearl"
		color3 = "white"
		instance = { position = { 0.5 0.54 } scale = { 1.0 1.0 } }
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.18 0.22 } position = { 0.325 0.255 } }
	}	
}
DAH_communist = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.20 0.30 } scale = { 0.4 0.4 } } 
	}
}
DAH_republic = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } } 
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { @[third/2] 0.5 } scale = { @third 1.0 } } 
	}	
}
DAH_subject = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "blue_light"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_elephant_african.dds"
		color1 = "grey"
		color2 = "pearl"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.51 } }
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.09 0.11 } position = { 0.66 0.365 } }
	}	
}

DAI = { # Dai Nam
	# Imperial flag
	pattern = "pattern_border_of_3.dds"
	color1 = "yellow"
	color2 = "blue_light"	

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.50 0.50 } }			
	}
}
DAI_monarchy = {
	pattern = "pattern_border_of_3.dds"
	color1 = "yellow"
	color2 = "red"
	
    sub = {
        parent = "sub_DAI_dragon" 
        instance = { scale = { 0.9 0.9 } offset = { 0.05 0.075 } }
    }	
}
DAI_republic = {
	# Annam flag
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.5 } position = { 0.50 0.50 } }			
	}	
}
DAI_subject = {
	# Annam Protectorate
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
}
DAI_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 0.66 0.66 } }
	}
}
DAI_fascist = {		
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.33 } position = { 0.5 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 @[third/5] } position = { 0.5 @[0.5-third/5] } }
		instance = { scale = { 1.0 @[third/5] } position = { 0.5 @[0.5+third/5] } }		
		instance = { scale = { 0.1 0.1 } position = { 0.5 0.5 } }
	}		
}
DAI_subject_FRA = {		
	# Conchinchine
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.33 } position = { 0.5 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 @[third/5] } position = { 0.5 @[0.5-third/5] } }
		instance = { scale = { 1.0 @[third/5] } position = { 0.5 @[0.5+third/5] } }		
	}		
}

DEI = { 
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}
}

DEI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}
}

DEI_voc = { #Company Flag
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_letter_v_serif.dds"
		color1 = "black"
		instance = { position = { 0.5 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_letter_o.dds"
		color1 = "black"
		instance = { position = { 0.47 0.48 } scale = { 0.3 0.23 } }
	}
	colored_emblem = {
		texture = "ce_letter_c_serif.dds"
		color1 = "black"
		instance = { position = { 0.56 0.48 } scale = { 0.23 0.23 } }
	}
}

DES = {
	# Deseret
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
        instance = { position = { 0.25 @[ 1 / 13 * 7 / 2 ] } scale = { 0.5 @[ 1 / 13 * 7 ] } }				
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.05 0.05 } position = { 0.25 0.03 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.18 0.04 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.11 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.04 0.06 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.145 0.075 } }		
		instance = { scale = { 0.05 0.05 } position = { 0.075 0.085 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.215 0.065 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.32 0.04 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.39 0.05 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.46 0.06 } }
		instance = { scale = { 0.05 0.05 } position = { 0.355 0.075 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.425 0.085 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.285 0.065 } }			
	}	
	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "brown_light"
		color2 = "yellow"	
		color3 = "white"
		instance = { scale = { 0.62 0.62 } position = { 0.25 0.28 } }
	}
	colored_emblem = {
		texture = "ce_cannon.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.16 0.44 } }		
		color1 = "yellow_dark"
		color2 = "grey"
		color3 = "orange"
	}
	colored_emblem = {
		texture = "ce_beehive.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.33 0.44 } }		
		color1 = "yellow_dark"
		color2 = "brown_light"		
	}	
}
DES_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "blue"
		color2 = "blue"
	}
    sub = {
        parent = "sub_DES_canton_stars" 
        instance = { scale = { 0.36 0.54 }  } # top left
    }
}

DKT = { # Dakota Sioux
	# Combination of traditionnal pattern and thunderbird symbol
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_thunderbird.dds"
		color1 = "brown"
		color2 = "yellow"
		instance = { scale = { 0.9 0.9 } position = { 0.58 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "beige"
		color2 = "beige"	
		instance = { scale = { 0.14 1.0 } position = { 0.12 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_native_american_pattern_diamond.dds"
		color1 = "yellow"
		color2 = "brown_light"
		instance = { scale = { 0.66 1.0 } position = { 0.12 0.5 } }				
	}	
}

DOM = { # Dominican republic
	# 1844 design
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_per_cross.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "white"
		color2 = "white"
	}	
	textured_emblem = {
		texture = "te_coa_dominican_republic.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
}
#DOM_early = {
#	# 1844 design, possibly used before (haitian flag with white cross, variants with stars)
#
#	pattern = "pattern_solid.tga"
#	color1 = "blue"
#
#	colored_emblem = {
#		texture = "ce_bicolor_bottom.dds"
#		color1 = "red"
#		color2 = "red"
#	}
#	colored_emblem = {
#		texture = "ce_cross_england.dds"
#		color1 = "white"
#		color2 = "white"
#	}
#}

DON = {	# Don Republic
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "red"
	}
}

DZG = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.22 0.48 } }	
		instance = { scale = { 0.3 0.3 } position = { 0.22 0.78 } }				
	}
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.22 } }			
	}		
}
DZG_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.22 } }	
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.5 } }	
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.78 } }			
	}		
}
DZG_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.70 } }	
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.30 } }			
	}	
}
DZG_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.75 } }				
	}	
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.25 } }				
	}	
}
DZG_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.625 } }				
	}
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.35 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

ECU = { # Ecuador
	# 1830-1845 Starting/Republic
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
}
ECU_dictatorship = {
	# 1820 flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue_light"

	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = "blue_light"
		color2 = "blue_light"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.25 0.51 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.5 0.51 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.75 0.51 } }			
	}	
}
ECU_oligarchy = {
	# 1845-60 7 stars design (w-b-w)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "blue_light"
		color2 = "white"
	}
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.16 0.16 } position = { 0.410 0.40 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.500 0.30 } }
		instance = { scale = { 0.16 0.16 } position = { 0.590 0.40 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.50 0.50 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.410 0.60 } }	
		instance = { scale = { 0.16 0.16 } position = { 0.500 0.70 } }
		instance = { scale = { 0.16 0.16 } position = { 0.590 0.60 } }			
		color1 = "white"
		color2 = "white"		
	}	
}
ECU_communist = {
	# Emblem of PCE
	
	pattern = "pattern_solid.tga"
	color1 = "red"
		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}		
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.16 0.29 } }			
	}
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.14 0.14 } position = { 0.11 0.11 } }
	}		
}
ECU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.56 0.54 } position = { 0.75 0.505 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.30 0.30 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.27 0.27 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.5 } }			
	}	
}
ECU_subject_USA = {
	# Based on the 7 provinces flags (so also 7 stripes)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "blue_light"
		color2 = "white"
	}
    sub = {
        parent = "sub_ECU_seven_stars" 
	instance = { scale = { 0.43 0.43 } offset = { 0.0 0.0 } } # top left		
    }
}

ELS = { # El Salvador
	# 1865 design (UCA flag before that)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "blue"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @third @uru_canton_height } position = { @[third/2] @[uru_canton_height/2] } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.15 0.15 } position = { 0.075 0.125 } }
		instance = { scale = { 0.15 0.15 } position = { 0.166 0.125 } }
		instance = { scale = { 0.15 0.15 } position = { 0.258 0.125 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.075 0.275 } }
		instance = { scale = { 0.15 0.15 } position = { 0.166 0.275 } }
		instance = { scale = { 0.15 0.15 } position = { 0.258 0.275 } }	
		instance = { scale = { 0.15 0.15 } position = { 0.075 0.425 } }
		instance = { scale = { 0.15 0.15 } position = { 0.166 0.425 } }
		instance = { scale = { 0.15 0.15 } position = { 0.258 0.425 } }			
	}
}

ENG = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
ENG_coa = {
    sub = {
        parent = "sub_ENG_coa" 
    }
}
ENG_coa_france = {
	sub = {
        parent = "sub_FRA_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } } # bottom right
    } 
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    } 
}

EOT = { # Emirate of Transjordan
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.175 0.175 } position = { 0.175 0.5 } }
	}	
}

EST = { # Estonia
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "white"
	}
}
EST_absolute_monarchy = {
	# variant with centered CoA
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "yellow"
		color2 = "black"
		instance = { position = { 0.5 0.5 } scale = { 0.80 0.74 } }
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds" # dark blue doesnt exactly work
		color1 = "blue"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.50 0.40 } position = { 0.5 0.32 } }
		instance = { scale = { 0.50 0.40 } position = { 0.5 0.49 } }
		instance = { scale = { 0.38 0.36 } position = { 0.5 0.65 } }			
	}
}
EST_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.45 0.45 } position = { 0.20 0.25 }  }
	}
	colored_emblem = {
		texture = "ce_waves_estonia.dds"
		color1 = "blue"
		color2 = "white"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
	}	
}

ETH = {
	# default monarchy (correct colour order before ww2)
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "green"
	}	
	colored_emblem = {
		texture = "ce_lion_judah.dds"
		color1 = "tan"
		color2 = "red"
		color3 = "white"	
		instance = { scale = { -0.60 0.60 } position = { 0.50 0.485 } }		
	}		
}
ETH_absolute_monarchy = {
	# Original design 1875
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "purple"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "purple"
	}	
	colored_emblem = {
		texture = "ce_lion_judah.dds"
		color1 = "yellow_dark"
		color2 = "red"
		color3 = "white"	
		instance = { scale = { -0.60 0.60 } position = { 0.50 0.485 } }		
	}		
}
ETH_republic = {
	# 1881-1941 
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "green"
	}		
}
ETH_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_lion_judah.dds"
		color1 = "yellow_dark"
		color2 = "red"
		color3 = "white"	
		instance = { scale = { -0.5 0.5 } position = { 0.75 0.48 } }		
	}		
}

DEN = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = color2
		color2 = color2
	}
}
DEN_absolute_monarchy = {
	# National Coat of Arms as placeholder
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_royal_mantle.dds"
		instance = { scale = { 0.8 0.8 } position = { @third 0.55 } }
		color1 = "red"
		color2 = "yellow"
		color3 = "white"		
	}	
	colored_emblem = {
		texture = "ce_shield_german_round.dds"
		instance = { scale = { 0.45 0.5 } position = { @third 0.6 } }
		color1 = "yellow_dark"
		color2 = "blue"		
	}	
	colored_emblem = {
		texture = "ce_shield_german_round.dds"
		instance = { scale = { 0.43 0.48 } position = { @third 0.6 } }
		color1 = "yellow"
		color2 = "blue"		
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.35 0.35 } position = { @third 0.21 } }
	}	
	colored_emblem = {
		texture = "ce_lion_passant_guardant_long.dds"
		color1 = "azure"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.24 0.22 } position = { @third 0.5 } }
		instance = { scale = { 0.23 0.22 } position = { @third 0.6 } }
		instance = { scale = { 0.18 0.20 } position = { @third 0.7 } }		
	}	
}
DEN_canton = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
DEN_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 0.5 } scale = { 1.0 0.16 } }
	}
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.15 0.23 } scale = { 0.4 0.4 } } 
	}	
}
DEN_fascist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.33 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.33 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_fatherland_front.dds"
		color1 = "white"
		color2 = "black"
		instance = { scale = { 0.525 0.525 } position = { 0.33 0.5 } }
	}	
}

EGY = { # Egypt
	# 1923-58
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.3 } rotation = -270 position = { 0.70 0.5 } }			
		instance = { scale = { 0.2 0.2 } position = { 0.55 0.38 } }	
		instance = { scale = { 0.2 -0.2 } position = { 0.55 0.62 } }		
	}		
}
EGY_absolute_monarchy = {
	# Late 19th c. design - Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.28 } }		
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.72 } }		
		instance = { scale = { 0.22 0.22 } position = { 0.6 0.5 } }	
	}
}
EGY_republic = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}	
}
EGY_dictatorship = {
	# 1958 revolution
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "grey"
		color2 = "grey"
		instance = { scale = { 0.24 0.24 } position = { 0.395 0.73 } }
		instance = { scale = { 0.24 0.24 } position = { 0.605 0.73 } }		
	}	
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.39 0.725 } }
		instance = { scale = { 0.2 0.2 } position = { 0.60 0.725 } }		
	}	
 	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.14 0.30 } rotation = 270 position = { 0.5 0.52 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.06 0.06 } position = { 0.5 0.44 } }			
		instance = { scale = { 0.06 0.06 } position = { 0.48 0.49 } }	
		instance = { scale = { 0.06 0.06 } position = { 0.52 0.49 } }		
	}	
}
EGY_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
    sub = {
        parent = "sub_EGY" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }
    }	
}
EGY_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
    sub = {
        parent = "sub_EGY_early" 
        instance = { scale = { 0.45 0.45 } offset = { 0.525 0.275 }  }
		color1 = "blue"
		color2 = "red"
    }	
}

FER = {
	# Alleged nationalist flag 

	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
}
FER_republic = {
	# Possibly with DVR legend (like the political flag it's taken from)
	# Or simple change in color (to these) from the communist flag (which is the only historical one)

	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
		color2 = color2
	}
}
FER_communist = {
	# Cyrillic D V R in blue canton
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
        instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 }  }	
	}
    sub = {
        parent = "sub_dvr" 
        instance = { scale = { 0.5 0.5 } offset = { 0.075 0.015 } }
    }	
}

FRA = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
}
FRA_bourbon = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "yellow_dark"

	colored_emblem = {
		texture = "ce_fleur_quebec.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.10 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.10 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.10 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 1.00 } scale = { @sm_fra @sm_fra } }
	}
}
FRA_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "yellow_dark"

	colored_emblem = {
		texture = "ce_fleur_quebec.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.10 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 0.20 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.10 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.10 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.80 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 1.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 1.00 } scale = { @sm_fra @sm_fra } }
	}
	textured_emblem = {
		texture = "te_coa_france_greater.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
}
FRA_subject = {
	# blue ensign with 3 fleur-de-lis
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_fleur_de_lis.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.33 0.33 } position = { 0.67 0.41 } }
		instance = { scale = { 0.33 0.33 } position = { 0.83 0.41 } }
		instance = { scale = { 0.33 0.33 } position = { 0.75 0.64 } }
	}
}
FRA_theocracy = {
	# Inspired from flag from the Ancien Régime (so it may exist already)
	pattern = "pattern_cross.dds"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}	
	colored_emblem = {
		texture = "ce_fleur_quebec.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.435 0.00 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.565 0.00 } scale = { @sm_fra @sm_fra } }		
		instance = { position = { 0.50 0.14 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.435 0.27 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.565 0.27 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.10 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.40 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.00 0.50 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.20 0.50 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.40 0.50 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.60 0.50 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.80 0.50 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 1.00 0.50 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.10 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.30 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.50 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.70 0.60 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.90 0.60 } scale = { @sm_fra @sm_fra } }	
		instance = { position = { 0.435 0.73 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.565 0.73 } scale = { @sm_fra @sm_fra } }		
		instance = { position = { 0.50 0.86 } scale = { @sm_fra @sm_fra } }	
		instance = { position = { 0.435 1.0 } scale = { @sm_fra @sm_fra } }
		instance = { position = { 0.565 1.0 } scale = { @sm_fra @sm_fra } }			
		mask = { 2 }
	}
}
FRA_dictatorship = {
	# Variant based on tricolor with (lesser) coat of arms of the empire
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_shield_accolade.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.74 0.74 } position = { 0.5 0.47 } }		
	}		
	colored_emblem = {
		texture = "ce_eagle_napoleonian.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "blue"
		instance = { scale = { 0.6 0.6 } position = { 0.495 0.48 } }
	}
}
#FRA_dictatorship_emperor = {
#	# Imperial std of Napoleon
#
#	pattern = "pattern_border_double.dds"
#	color1 = "white"
#	color2 = "red"
#	color3 = "blue"
#
#	textured_emblem = {
#		texture = "te_crown_imperial_eagles.dds"
#		instance = { scale = { 0.25 0.25 } position = { 0.5 0.22 } }
#	}			
#	colored_emblem = {
#		texture = "ce_eagle_napoleonian.dds"
#		color1 = "yellow"
#		color2 = "yellow"
#		color3 = "white"
#		instance = { scale = { 0.75 0.75 } position = { 0.5 0.58 } }
#	}
#}
FRA_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { @[1/30] 0.5 } scale = { @[1/15] 1.0 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.1 0.5 } scale = { @[1/15] 1.0 } }
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_star_cogwheel.dds"
		color1 = color4
		color2 = color4
			instance = { position = { 0.26 0.18 } scale = { 0.30 0.30 } } 
	}		
}
FRA_military = {	
	# Personal flag of Pétain
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_labrys_petain.dds"
		color1 = "blue"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.45 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.08 0.08 } position = { 0.44 0.78 } }
		instance = { scale = { 0.08 0.08 } position = { 0.56 0.78 } }	
		instance = { scale = { 0.08 0.08 } position = { 0.38 0.85 } }
		instance = { scale = { 0.08 0.08 } position = { 0.62 0.85 } }
		instance = { scale = { 0.08 0.08 } position = { 0.44 0.92 } }
		instance = { scale = { 0.08 0.08 } position = { 0.56 0.92 } }	
		instance = { scale = { 0.08 0.08 } position = { 0.50 0.85 } }		
	}	
}
FRA_fascist = {	
	# Based on PPF flag and emblem
	pattern = "pattern_per_saltire.dds"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "white"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_frame_octagon.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.82 0.82 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_frame_octagon.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_labrys_ppf.dds"
		color1 = "blue"
		color2 = "black"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}

FIN = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_cross_finland.dds"
		color1 = color2
		color2 = color2
	}
}
FIN_subject = {
	# renamed from FIN_canton
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
FIN_subject_RUS = {
	# Default starting flag - renamed from FIN_subject
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "blue"
}
FIN_fascist = {		
	# Colors and overall design of Lapuan Liike with a pagan cross as the main symbol
	pattern = "pattern_solid.tga"
	color1 = "black"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_cross_finnic.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}

FJI = { # Fidji
	# First design 1865
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.50 0.50 } }			
	}	
}
FJI_subject = {
	# Colonial flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"	
    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { 0.5 0.5 } } 
    }	
	colored_emblem = {
		texture = "ce_legend_fidji.dds"
		color1 = "black"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.51 } }
	}	
	colored_emblem = {
		texture = "ce_lion_statant_guardant.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.75 0.41 } }
	}	
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.08 0.08 } position = { 0.728 0.338 } }
	}	
}

FLA = {	# Flanders
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
		instance = { position = { 0.5 0.49 } scale = { 0.9 0.9 } }
	}
}
FLA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
		instance = { position = { 0.75 0.50 } scale = { 0.75 0.75 } }
	}
}

FRM = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.68 0.25 } position = { 0.66 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }			
	}
	colored_emblem = {
		texture = "ce_shield_german_round.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.64 0.64 } position = { 0.160 0.230 } }				
	}	
	colored_emblem = {
		texture = "ce_eagle_crown.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.58 0.60 } position = { 0.160 0.230 } }				
	}	
}
FRM_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.33 1.0 } position = { 0.165 0.5 } }				
	}		
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.66 0.55 } position = { 0.165 0.58 } }				
	}	
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.65 0.54 } position = { 0.165 0.58 } }				
	}		
	colored_emblem = {
		texture = "ce_eagle_crown.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.49 0.5 } position = { 0.165 0.58 } }				
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.165 0.30 } }
	}	
}
FRM_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_stripes_04.dds"
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.55 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.65 0.54 } position = { 0.5 0.5 } }				
	}		
	colored_emblem = {
		texture = "ce_eagle_crown.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.49 0.5 } position = { 0.5 0.5 } }				
	}		
}
FRM_communist = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_04.dds"
		color1 = "red"
		color2 = "red"		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.33 0.50 } position = { 0.165 0.25 } }				
	}
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.165 0.28 } }	
		color1 = "yellow"
		color2 = "yellow"		
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.07 0.11 } }	
		color1 = "yellow"
		color2 = "yellow"		
	}		
}
FRM_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_shield_german_round.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.58 0.58 } position = { 0.75 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_shield_german_round.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_eagle_crown.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.49 0.5 } position = { 0.75 0.5 } }				
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

FSA = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.70 0.70 } position = { 0.5 0.5 } }
	}	
	textured_emblem = {
		texture = "te_usa_bald_eagle.dds"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.54 } }
	}		
	textured_emblem = {
		texture = "te_coa_usa.dds"
		instance = { scale = { 0.22 0.22 } position = { 0.5 0.55 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.16 0.16 } position = { 0.5 0.25 } }		
		color1 = "white"
		color2 = "white"		
	}	
}
FSA_dictatorship = {
	pattern = "pattern_per_saltire.dds"

	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "white"
	}
	colored_emblem = {
		texture = "ce_frame_star.dds"
		color1 = "blue"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	textured_emblem = {
		texture = "te_usa_bald_eagle.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.5 0.545 } }
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.1 0.1 } position = { 0.5 0.39 } }		
		color1 = "white"
		color2 = "white"		
	}
}
FSA_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_eagle_usa_simple.dds"
		color1 = "yellow"
		color2 = "yellow"	
		color3 = "red"		
		instance = { scale = { 0.4 0.4 } position = { 0.16 0.275 } }
	}		
	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		instance = { scale = { 0.125 0.125 } position = { 0.16 0.10 } }		
		color1 = "yellow"
		color2 = "red"		
	}
}
FSA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.5 } }
	}	
	textured_emblem = {
		texture = "te_usa_bald_eagle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.525 } }
	}		
	textured_emblem = {
		texture = "te_coa_usa.dds"
		instance = { scale = { 0.16 0.16 } position = { 0.75 0.53 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.12 0.12 } position = { 0.75 0.33 } }		
		color1 = "white"
		color2 = "white"		
	}	
}
FSA_subject_MEX = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
	textured_emblem = {
		texture = "te_usa_bald_eagle.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.525 } }
	}		
	textured_emblem = {
		texture = "te_coa_usa.dds"
		instance = { scale = { 0.14 0.14 } position = { 0.5 0.53 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.11 0.11 } position = { 0.5 0.34 } }		
		color1 = "white"
		color2 = "white"		
	}	
}

GAL = { # Galicia (Halych)	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
}

GBR = {
	# 1707-1800 flag without the Irish red diagonals
    sub = {
        parent = "sub_GBR" 
    }
}
GBR_dictatorship = {
	# 1659 ensign
	# Quarterly; England, Scotland, Scotland, England
	pattern = "pattern_checkers_01.tga"
	
	color1 = "white"
	color2 = "blue"
	color3 = "red"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.75 } }
	}
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color1
		color2 = color1
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.75 } }
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.25 } }
	}	
}
GBR_dictatorship_uk = {		
	# Based on personal standard of Jolly Olly
	# Quarterly; England, Scotland, Ireland, England
	pattern = "pattern_checkers_01.tga"
	
	color1 = "white"
	color2 = "blue"
	color3 = "red"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.75 } }
	}
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color1
		color2 = color1
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.25 } }
	}	
	colored_emblem = {
		texture = "ce_harp_ireland.dds"
		color1 = color4
		color2 = color4
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.75 } }
	}	
}
GBR_republic = {
	# same as Hungarian tricolor, also symbolised British Republicanism in this era
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
}
GBR_scotland = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_cross_england_fimbriated.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "white"
		color2 = "red"
	}	
}
GBR_theocracy = {
	# Inspired by the Australian Anglican flag because it still has some blue.
	# Better to save the St George cross for England itself.
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	colored_emblem = {
		texture = "ce_cross_england_fimbriated.dds"
		color1 = color2
		color2 = color3
	}
}
GBR_uk = {
	# the modern British flag, with red diagonals
    sub = {
        parent = "sub_GBR_uk" 
    }
}
GBR_coa = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } } # bottom right
    } 
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    }
}
GBR_coa_scotland = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } } # bottom right
    } 
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    }
}
GBR_coa_france = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_FRA_coa" 
        instance = { scale = { 0.25 0.25 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.25 0.25 } } # bottom right

        instance = { scale = { 0.25 0.25 } offset = { 0.5 0.5 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.75 0.75 } } # bottom right
    } 
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.25 0.25 } offset = { 0.25 0.00 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.00 0.25 } } # bottom right

        instance = { scale = { 0.25 0.25 } offset = { 0.75 0.50 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.50 0.75 } } # bottom right
    } 
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    } 
}
GBR_uk_coa = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } } # bottom right
    } 
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
    } 
	sub = {
        parent = "sub_IRE_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    } 
}
GBR_uk_scotland_coa = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } } # bottom right
    } 
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
    } 
	sub = {
        parent = "sub_IRE_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    } 
}
GBR_uk_scotland_coa_france = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 } } # bottom right
    } 
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.25 0.25 } offset = { 0.75 0.00 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.50 0.25 } } # bottom right
    } 
	sub = {
        parent = "sub_IRE_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    } 
	sub = {
        parent = "sub_FRA_coa" 
        instance = { scale = { 0.25 0.25 } offset = { 0.5 0.0 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.75 0.25 } } # bottom right
    } 
}
GBR_uk_coa_france = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	sub = {
        parent = "sub_FRA_coa" 
        instance = { scale = { 0.25 0.25 } offset = { 0.0 0.0 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.25 0.25 } } # bottom right

        instance = { scale = { 0.25 0.25 } offset = { 0.5 0.5 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.75 0.75 } } # bottom right
    } 
	sub = {
        parent = "sub_ENG_coa" 
        instance = { scale = { 0.25 0.25 } offset = { 0.25 0.00 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.00 0.25 } } # bottom right

        instance = { scale = { 0.25 0.25 } offset = { 0.75 0.50 } } # top left
        instance = { scale = { 0.25 0.25 } offset = { 0.50 0.75 } } # bottom right
    } 
	sub = {
        parent = "sub_SCO_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.0 } } # top right
    } 
	sub = {
        parent = "sub_IRE_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.5 } } # bottom left
    } 
}
GBR_white_ensign  = {
	# white ensign of the Royal Navy
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {		
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
    sub = {
        parent = "sub_GBR" 
        instance = { scale = { @canton_scale_cross_x @canton_scale_cross_y }  } # top left
    }
}
GBR_uk_white_ensign  = {
	# white ensign of the Royal Navy
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {		
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { @canton_scale_cross_x @canton_scale_cross_y }  } # top left
    }
}
GBR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow"
	color5 = "green"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 0.775 } scale = { 1.0 0.15 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color5
		color2 = color5
		instance = { position = { 0.5 0.925 } scale = { 1.0 0.15 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.19 0.29 } scale = { 0.5 0.5 } } 
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color1
		color2 = color1
		instance = { position = { 0.19 0.29 } scale = { 0.4 0.4 } } 
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.19 0.305 } scale = { 0.2 0.2 } } 
	}
}
GBR_fascist = {	
	# BUF
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_buf_emblem.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
}

GEO = { # Georgia
	# since 1918 (outside USSR period)
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "black"
	color3 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.5 0.25 } position = { 0.25 0.125 } }		
	}	
}
GEO_theocracy = {
	# before 1801
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
GEO_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue_light"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 1.0 0.2 } position = { 0.5 @[1/9*5/2] } }		
	}	
    sub = {
        parent = "sub_GEO_canton" 
		instance = { scale = { @[1/9*5/1.5] @[1/9*5] } }			
    }	
}

GER = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
}
GER_iron_cross = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}

	colored_emblem = {
		texture = "ce_iron_cross.dds"
		color1 = color2
		color2 = color1
	}
}
GER_modern = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "red"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
}
GER_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color3
		instance = { scale = { 0.66 0.66 } }
	}
	colored_emblem = {
		texture = "ce_iron_cross.dds"
		color1 = color2
		color2 = color3
		instance = { scale = { 0.7 0.7 } }
	}
}
GER_communist = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "yellow"
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.43 0.43 } position = { 0.5 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_hammer_compass_ddr.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_coa_frame_ddr.dds"
		color1 = "yellow_dark"
		color2 = "black"
		color3 = "red"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.505 }  }	
	}
	colored_emblem = {
		texture = "ce_coa_frame_ddr.dds"
		color1 = "yellow"
		color2 = "black"
		color3 = "red"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 }  }	
	}
}
GER_fascist = {	
	# War ensign with iron cross moved from canton to replace swastika
	pattern = "pattern_solid.tga"
	color1 = "red"
	colored_emblem = {
		texture = "ce_cross_germany_war_ensign.dds"
		color1 = "black"
		color2 = "white"
	}		
	colored_emblem = {
		texture = "ce_iron_cross.dds"
		color1 = "white"
		color2 = "black"
		instance = { scale = { 0.55 0.55 } position = { @third 0.5 } }
	}	
}

GGR_fascist = {
	# Nazi flag, swastika replaced
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.15 0.6 } position = { 0.5 0.5 } }
		instance = { scale = { 0.4 0.225 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 0.6 } position = { 0.5 0.5 } }
		instance = { scale = { 0.4 0.18 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.08 0.6 } position = { 0.5 0.5 } }
		instance = { scale = { 0.4 0.12 } position = { 0.5 0.5 } }		
	}		
}

GLI = { #Galicia
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "light_blue"
	}
}	

GRE = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
GRE_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = color2
		color2 = color2
	}
	
    sub = {
        parent = "sub_GRE_square" 
		instance = { scale = { @[1/9*5/1.5] @[1/9*5] } }			
    }	
}
GRE_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
	}
}
GRE_fascist = {		
	# EON flag, without the crown in canton
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "white"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "yellow_dark"
		color2 = "green"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_labrys.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.52 } }
	}	
}

GRI = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "brown"
	color3 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
}

GRN = {
	@grn_pos_x = @[7/18]
	pattern = "pattern_horizontal_split_01.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { @grn_pos_x 0.5 } }
	}

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { @grn_pos_x 0.5 } }
		mask = { 2 }
	}
}

GUA = { # Guatemala
	# Since 1871 
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "blue_light"
	}
}
GUA_absolute_monarchy = {
	# more or less the 1851 design
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 @third } position = { 0.75 @[1/6] } }			
		instance = { scale = { 0.5 @third } position = { 0.75 @[1/6*5] } }		
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 @third } position = { 0.25 @[1/6*5] } }		
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 @third } position = { 0.25 @[1/6] } }		
	}	
	textured_emblem = {
		texture = "te_coa_guatemala.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
}
GUA_subject_SPA = {
	# 1858 design (UCA & SPA combination)

	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/9*7] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/9*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @third } }
	}	
	textured_emblem = {
		texture = "te_coa_guatemala.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
}
GUA_subject_MEX = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.75 0.5 } scale = { 0.5 1.0 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.25 0.75 } scale = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @third } }
	}		
}
GUA_republic = {
	# 1851
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.75 0.5 } scale = { 0.5 1.0 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.25 0.75 } scale = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @third } }
	}		
}
GUA_subject = {	
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "blue_light"
	}
}

GWA_princely = { # Gwalior
	
	pattern = "pattern_large_bend_senester.dds"
	color1 = "saffron"
	color2 = "red"
		
	textured_emblem = {
		texture = "te_coa_gwalior.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}		
}
GWA = {
	# Alternate type without bend
	
	pattern = "pattern_border_of_3.dds"
	color1 = "saffron"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_cobra_coiled.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.4 0.4 } position = { 0.15 0.5 } }	
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.5 } }			
	}			
	colored_emblem = {
		texture = "ce_sun_face_gwalior.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.6 0.6 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.05 } position = { 0.435 0.125 } }	
		instance = { scale = { 1.0 0.05 } position = { 0.435 0.875 } }			
		instance = { scale = { 0.033 0.8 } position = { 0.92 0.5 } }			
	}	
}
GWA_republic = {
	pattern = "pattern_large_bend_senester.dds"
	color1 = "saffron"
	color2 = "white"

	colored_emblem = {
		texture = "ce_bend_sinister_fimbriated.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }		
	}	
}
GWA_subject = {		
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"
	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_sun_face_gwalior.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
}

HAI = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
}
HAI_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = "red"
		color2 = "red"
	}
}
HAI_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.33 0.5 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_palm_tree.dds"
		color1 = "brown_light"
		color2 = "green"
		instance = { scale = { 0.54 0.54 } position = { 0.5 0.49 } }		
	}
	colored_emblem = {
		texture = "ce_coa_haiti.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "yellow"
		instance = { scale = { 0.40 0.37 } position = { 0.5 0.60 } }		
	}	
}
HAI_communist = { 
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = "blue"
		color2 = "blue"		
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.5 } }
	}		
}
HAI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_palm_tree.dds"
		color1 = "brown_light"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_coa_haiti.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "yellow"
		instance = { scale = { 0.38 0.35 } position = { 0.75 0.59 } }		
	}	
}
HAI_subject_SPA = { 
	# Spanish Haiti, derived from Great Columbia
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }			
	}
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.1 0.1 } position = { 0.42 0.595 } }
		instance = { scale = { 0.1 0.1 } position = { 0.5 0.565 } }
		instance = { scale = { 0.1 0.1 } position = { 0.58 0.595 } }	
		instance = { scale = { 0.1 0.1 } position = { 0.365 0.68 } }
		instance = { scale = { 0.1 0.1 } position = { 0.635 0.68 } }			
	}			
}
HAI_subject_USA = { 
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
				
	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = "red"
		color2 = "red"		
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.5 } }
	}		
}

HAM = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
    sub = {
        parent = "sub_HAM" 
        instance = { scale = { 0.9 0.9 } offset = { 0.05 0.05 }  }
    }
}
HAM_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "white"	
		instance = { scale = { 1.0 0.33 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.63 0.63 } position = { 0.5 0.6 } }				
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.6 } }				
	}	
    sub = {
        parent = "sub_HAM" 
        instance = { scale = { 0.45 0.45 } offset = { 0.275 0.37 }  }
    }
	colored_emblem = {
		texture = "ce_crown_ducal.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "blue"
		instance = { scale = { 0.67 0.67 } position = { 0.5 0.285 } }				
	}	
}
HAM_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 0.5 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.485 } }				
	}	
    sub = {
        parent = "sub_HAM" 
        instance = { scale = { 0.45 0.45 } offset = { 0.275 0.255 }  }
    }	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.125 0.135 } }
		instance = { scale = { 0.35 0.35 } position = { 0.125 0.885 } }
		instance = { scale = { 0.35 0.35 } position = { 0.875 0.135 } }
		instance = { scale = { 0.35 0.35 } position = { 0.875 0.885 } }		
	}	
}
HAM_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
    sub = {
        parent = "sub_HAM" 
        instance = { scale = { 0.75 0.75 } offset = { 0.125 0.1 }  }
		color1 = "red"
		color2 = "red"	
		color3 = "white"
		color4 = "white"
    }
}
HAM_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
    sub = {
        parent = "sub_HAM" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }   
    }
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
HAM_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.51 } }			
	}	
    sub = {
        parent = "sub_HAM" 
		color1 = "white"
		color2 = "white"	
		color3 = "white"
		color4 = "pearl"
        instance = { scale = { 0.48 0.48 } offset = { 0.26 0.26 } }		
    }		
}

HAN = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}
}
HAN_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}
    sub = {
        parent = "sub_crown" 
        instance = { scale = { 0.5 0.5 } offset = { 0.25 0.02 }  } # top left
		color1 = "yellow"
		color2 = "red"
		color3 = "azure"
		color4 = "white"
		color5 = "red_dark"		
    }	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		instance = { scale = { 0.76 0.76 } position = { 0.5 0.58 } }	
		color1 = "brown"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		instance = { scale = { 0.74 0.74 } position = { 0.5 0.58 } }	
		color1 = "red"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_horse.dds"
		instance = { scale = { 0.58 0.58 } position = { 0.51 0.58 } }	
		color1 = "white"
		color2 = "white"
		color3 = "grey"
	}			
}
HAN_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.465 0.465 } position = { 0.16 0.24 } }				
	}
	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.16 0.24 } }				
	}	
	colored_emblem = {
		texture = "ce_stripes_02_bottom_lithuania.dds"
		color1 = "yellow"
		color2 = "white"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
	}	
}
HAN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_horse.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.78 0.6 } scale = { 0.70 0.70 } }
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}
HAN_subject_GBR = {
	# Subject flag for UK
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
    sub = {
        parent = "sub_HAN_uk" 
		instance = { scale = { 0.5 0.5 } }			
    }	
}
HAN_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_horse.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.5 0.5 } scale = { 0.9 0.9 } }
	}
}
HAN_subject_gold = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_horse.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.78 0.6 } scale = { 0.70 0.70 } }
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}
HAN_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_shield_iberian.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.51 } }			
	}	
	colored_emblem = {
		texture = "ce_horse.dds"
		color1 = "white"
		color2 = "white"
		color3 = "red"
		instance = { position = { 0.51 0.51 } scale = { 0.5 0.5 } }
	}		
}


HAR = { # Harar
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.05 0.2 } position = { 0.44 0.70 } }			
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	
		instance = { scale = { 0.23 0.3 } position = { 0.38 0.74 } }		
		instance = { scale = { 0.23 0.3 } position = { 0.50 0.74 } }				
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { @third 0.5 } }			
	}	
		
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.4 0.65 } }		
		instance = { scale = { 0.2 0.2 } position = { 0.48 0.65 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.44 0.56 } }				
	}		
}
HAR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
    sub = {
        parent = "sub_HAR" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }
    }			
}

HAW = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_08_hawaii.dds"
		color1 = "red"
		color2 = "blue"
	}
}

HBC = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	colored_emblem = {		
		texture = "ce_letter_h.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.4 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_letter_b.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.49 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_letter_c.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.635 0.5 } scale = { 0.5 0.5 } }
	}
}
HBC_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	colored_emblem = {		
		texture = "ce_letter_h.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.65 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_letter_b.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.74 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_letter_c.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.885 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
HBC_monarchy = {	
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "brown"
	colored_emblem = {		
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_beaver.dds"
		color1 = "tan"
		color2 = "tan"
		color3 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.20 0.20 } }		
		instance = { scale = { 0.6 0.6 } position = { 0.76 0.80 } }		
		instance = { scale = { 0.6 0.6 } position = { 0.20 0.80 } }		
		instance = { scale = { 0.6 0.6 } position = { 0.76 0.20 } }				
	}	
}
HBC_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_beaver.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "yellow_dark"
		instance = { scale = { 0.5 0.5 } position = { 0.16 0.26 } }			
	}	
	colored_emblem = {
		texture = "ce_letter_h.dds"
		color1 = color2
		color2 = color2
		color3 = color2
		instance = { scale = { 0.15 0.15 } position = { 0.08 0.4 } }
	}	
	colored_emblem = {
		texture = "ce_letter_b.dds"
		color1 = color2
		color2 = color2
		color3 = color2
		instance = { scale = { 0.15 0.15 } position = { 0.15 0.4 } }
	}
	colored_emblem = {
		texture = "ce_letter_s.dds"
		color1 = color2
		color2 = color2
		color3 = color2
		instance = { scale = { 0.15 0.15 } position = { 0.22 0.4 } }
	}
	colored_emblem = {
		texture = "ce_letter_r.dds"
		color1 = color2
		color2 = color2
		color3 = color2
		instance = { scale = { 0.15 0.15 } position = { 0.29 0.4 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.125 0.125 } position = { 0.09 0.11 }  }	
	}			
}

HDJ = { # Hedjaz
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } rotation = 180 position = { 0.5 0.5 } }				
	}
}
HDJ_republic = {
	# 1917-26

	pattern = "pattern_solid.tga"
	color1 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}
}
HDJ_subject = {	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
    sub = {
        parent = "sub_HDJ" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }
    }	
}

HDJ_subject_GBR = {
	# Blue ensign
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
    sub = {
        parent = "sub_HDJ" 
        instance = { scale = { 0.45 0.45 } offset = { 0.525 0.275 }  }
		color1 = "blue"
		color2 = "green"
    }	
}

HES = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	colored_emblem = {
		texture = "ce_shield_accolade.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.74 0.74 } position = { 0.5 0.47 } }		
	}	
	textured_emblem  = {
		texture = "te_lion_hesse.dds"
		instance = { scale = { 0.65 0.65 } position = { 0.51 0.48 } }	
	}			
}
HES_absolute_monarchy = {
	# 1903 design
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.64 0.64 } position = { 0.5 0.48 } }		
	}	
	textured_emblem  = {
		texture = "te_lion_hesse.dds"
		instance = { scale = { 0.60 0.60 } position = { 0.51 0.50 } }	
	}		
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.125 0.135 } }
		instance = { scale = { 0.35 0.35 } position = { 0.125 0.885 } }
		instance = { scale = { 0.35 0.35 } position = { 0.875 0.135 } }
		instance = { scale = { 0.35 0.35 } position = { 0.875 0.885 } }		
	}	
}
HES_republic = { 
	
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"		
	}	
}
HES_oligarchy = { 
	# Merchant flag
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"		
	}	
}
HES_communist = {
	# Merchant flag
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"		
	}

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.42 0.42 } position = { 0.5 0.51 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.51 } }
	}	
	colored_emblem = {
		texture = "ce_coa_frame_austria.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "red"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.53 }  }	
	}		
}
HES_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

    sub = {
        parent = "sub_HES" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.3 }  }   
    }	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.31 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
HES_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.51 } }		
	}	
	textured_emblem  = {
		texture = "te_lion_hesse.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.505 0.53 } }	
	}			
}

HND = { # India
	# Modern flag (azad hind) with dharmachakra (since 1947)
	
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "white"
	color3 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_dharmachakra_india.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
	}
}
HND_subject = {
	# 1879 design, blue ensign with order of the star badge 
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	
	textured_emblem = {
		texture = "te_star_india.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.5 } }
	}	
}
HND_communist = {
	# Communist Party of India rather uniquely uses a white version of the hammer and sickle emblem
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.20 0.30 } } 
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.08 0.08 } position = { 0.17 0.12 } } 
	}	
}
HND_fascist = {	
	# RSS flag
	pattern = "pattern_solid.tga"
	color1 = "saffron"	
}

HOB = { # Hobyo
	# The flag was historically plain red (same as most neighbours) so based on COA (simplified)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.50 } }			
	}		
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.35 } }			
	}		
}
HOB_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.2 0.2 } position = { 0.75 0.375 } }			
	}		
}

HOL = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	textured_emblem  = {
		texture = "te_coa_schleswig_holstein.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.55 } }	
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.38 0.42 } position = { 0.5 0.21 } }
	}		
}
HOL_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}		
}
HOL_oligarchy = {
	# Merchant flag
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.34 } position = { 0.25 @[third/2] } }			
	}	
}
HOL_communist = { 
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.40 0.40 } position = { 0.16 0.25 } }				
	}
	colored_emblem = {
		texture = "ce_waves_latvia.dds"
		color1 = "blue"
		color2 = "yellow"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.6 }  }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "pearl"
		color2 = "blue"
		instance = { scale = { 0.2 0.1 } position = { 1.5 0.69 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.2 0.1 } position = { 1.5 0.696 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.16 0.12 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.12 0.12 } position = { 0.16 0.12 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_ddr.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.16 0.27 } }
	}		
}
HOL_subject_DEN = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.286 0.429 } position = { @[0.286/2] @[0.429/2] } }
	}
	textured_emblem  = {
		texture = "te_coa_schleswig_holstein.dds"
		instance = { scale = { 0.45 0.45 } position = { @[0.286/2] 0.24 } }
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.17 0.17 } position = { @[0.286/2] 0.075 } }
	}
}

HON = { # Honduras
	# 1866 design
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.5 } }
		instance = { scale = { 0.15 0.15 } position = { 0.62 0.41 } }
		instance = { scale = { 0.15 0.15 } position = { 0.38 0.59 } }
		instance = { scale = { 0.15 0.15 } position = { 0.38 0.41 } }
		instance = { scale = { 0.15 0.15 } position = { 0.62 0.59 } }		
	}	
}
#HON_early = {
#	# early unofficial design without stars (1838-49)
#
#	pattern = "pattern_solid.tga"
#	color1 = "blue"
#
#	colored_emblem = {
#		texture = "ce_tricolor_horizontal.dds"
#		color1 = "white"
#		color2 = "blue"
#	}
#}
HON_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.16 -0.16 } position = { 0.75 0.5 } }	
		instance = { scale = { 0.16 -0.16 } position = { 0.68 0.6 } }	
		instance = { scale = { 0.16 -0.16 } position = { 0.82 0.6 } }	
		instance = { scale = { 0.16 -0.16 } position = { 0.68 0.4 } }	
		instance = { scale = { 0.16 -0.16 } position = { 0.82 0.4 } }			
	}		
}
HON_subject_MEX = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.5 } }
		instance = { scale = { 0.15 0.15 } position = { 0.58 0.4 } }
		instance = { scale = { 0.15 0.15 } position = { 0.42 0.6 } }
		instance = { scale = { 0.15 0.15 } position = { 0.42 0.4 } }
		instance = { scale = { 0.15 0.15 } position = { 0.58 0.6 } }		
	}	
} 
HON_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.6 } }
		instance = { scale = { 0.15 0.15 } position = { 0.62 0.41 } }
		instance = { scale = { 0.15 0.15 } position = { 0.38 0.58 } rotation = 11 }
		instance = { scale = { 0.15 0.15 } position = { 0.38 0.41 } }
		instance = { scale = { 0.15 0.15 } position = { 0.62 0.58 } }		
	}	
}

HRO = { # Herero
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.75 0.6 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.3 } position = { 0.5 0.5 } }			
	}	
}

HUN = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
}
HUN_fascist = {		
	# Arrow cross party
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @third 0.5 } position = { 0.5 0.5 } rotation = 45 }
	}	
	colored_emblem = {
		texture = "ce_arrow_cross.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}

HYD = { # Hyderabad	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.8 0.8 } position = { 0.3 0.5 } }		
	}		
}
HYD_princely = {
	# Princely state, before 1900
	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	color2 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }		
	}	
}
HYD_republic = {
	# Adopted c 1900
	
	pattern = "pattern_solid.tga"
	color1 = "orange" # or saffron, sometimes (wrongly) red
	color2 = "white"

	colored_emblem = {
		texture = "ce_bicolor_left.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.66 0.66 } position = { 0.5 0.5 } }		
	}		
}
HYD_absolute_monarchy = {
	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	color2 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.15 } position = { 0.5 0.2 } }		
		instance = { scale = { 1.0 0.15 } position = { 0.5 0.8 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.02 } position = { 0.5 0.24 } }		
		instance = { scale = { 1.0 0.02 } position = { 0.5 0.84 } }	
		instance = { scale = { 1.0 0.02 } position = { 0.5 0.16 } }		
		instance = { scale = { 1.0 0.02 } position = { 0.5 0.76 } }			
	}		
}
HYD_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.55 0.55 } position = { 0.775 0.5 } }		
	}		
}

	
IBE = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "white"
	# top right
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.25 } }
	}
	# bottom left
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.75 } }
	}
	# bottom right
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.75 } }
	}
}

ICL = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = "white"
		color2 = "red"
	}
}

IDN_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "red"
		color2 = "red"
	}
}

IDN = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "red"
		color2 = "red"
	}
}

IND = { # Indore
	# Saffron flag hist. before 1924
	# 1924
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "red"
		color2 = "red"
	}			
}
IND_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_shield_heater_large_per_fess.dds"
		color1 = "red"
		color2 = "white"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}				
}

ION = { # Ionian Islands
	# Septinsular Republic
	
	pattern = "pattern_border_of_4.dds"
	color1 = "blue"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_lion_corfu.dds"
		color1 = "yellow"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }	
	}
}
ION_subject = {
	pattern = "pattern_border_of_3.dds"
	color1 = "blue"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_lion_corfu.dds"
		color1 = "yellow"
		color2 = "pearl"
		instance = { scale = { 0.5 0.5 } position = { 0.68 0.69 } }	
	}
}

IRC = { # Iron Confederacy
	# Painted buffalo skull, borrowing colours from modern tribe flag
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"

	textured_emblem = {
		texture = "te_buffalo_painted_skull.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.48 } }
	}	
}

IRE = { # Ireland
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_harp_ireland.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
IRE_with_canton = {		
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {		
		texture = "ce_harp_ireland.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.75 0.5 } scale = { 0.75 0.75 } }
	}	
}
IRE_republic = {
	# Irish tricolor
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "orange"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}
}
IRE_republic_state_religion = {
	# Irish tricolor, but with Catholic yellow instead of Protestant Orange
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}
}
IRE_republic_state_religion = {
	# Irish tricolor, but with Catholic yellow instead of Protestant Orange
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}
}
IRE_coa = {
    sub = {
        parent = "sub_IRE_coa" 
        #instance = { scale = { 0.5 0.5 }  } # top left
    }
}
IRE_st_patrick_saltire = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
		color2 = color2
	}
}
IRE_theocracy = {
	# Irish tricolor, with Papal Tiara
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "orange"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}

	textured_emblem = {
		texture = "te_coa_papal_states_tiara.dds"
	}
}
IRE_theocracy_state_religion = {
	# Irish tricolor, but with Catholic yellow instead of Protestant Orange. Also has Papal Tiara
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}

	textured_emblem = {
		texture = "te_coa_papal_states_tiara.dds"
	}
}
IRE_dictatorship = {

	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
		color2 = color2
	}
}
IRE_easter_rising = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_irish_republic.dds"
		color1 = "white"
		color2 = "saffron"
	}
}
IRE_fascist = {	
	# Blue shirts (saltire can also be fimbriated gold)
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "red"
		color2 = "red"
	}	
}


IRO = {
	pattern = "pattern_solid.tga"
	color1 = "purple"

	colored_emblem = {
		texture = "ce_hiawathas_belt.dds"
		color1 = "white"
		color2 = "purple"
	}
}

IRQ = { # Iraq
	# Monarchy
	# first design 1921
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}	
}
IRQ_absolute_monarchy = {
	# Second more distinctive design (different from Hedjaz) which was used after 1924
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.34 } position = { 0.83 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.18 0.18 } position = { 0.15 0.325 } }
		instance = { scale = { 0.18 0.18 } position = { 0.15 0.675 } }		
	}	
}
IRQ_republic = {
	# Adopted 1963
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.34 } position = { 0.83 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.25 0.25 } position = { 0.25 0.5 } }
		instance = { scale = { 0.25 0.25 } position = { 0.50 0.5 } }		
		instance = { scale = { 0.25 0.25 } position = { 0.75 0.5 } }			
	}	
}

ISR = { # Israel
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_star_hexagram.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.14 } position = { 0.5 0.16 } }			
		instance = { scale = { 1.0 0.14 } position = { 0.5 0.84 } }				
	}	
}

ITA = { # Italy
	# Until 1946
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_coa_italia.dds"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.62 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.25 } }
	}	
}
ITA_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}		
}
ITA_dictatorship = {
	# Flag of Napoleonic kingdom
	
	pattern = "pattern_rhombus.dds"
	color1 = "red"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_eagle_napoleonian.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "green"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.5 } }
	}
}
ITA_communist = {
	pattern = "pattern_border_double.dds"
	color1 = "red"
	color2 = "white"
	color3 = "green"

	colored_emblem = {
		texture = "ce_hammer_sickle_italy.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.20 0.30 } } 
	}	
}
ITA_fascist = {		
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
    sub = {
        parent = "sub_ITA_eagle" 
        instance = { scale = { 1.0 1.0 } }
    }		
}

IUS = { # Idel-Ural State
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	colored_emblem = {
		texture = "ce_banner_escutcheon.dds"
		color1 = "yellow"
		color2 = "blue_light"
		instance = { scale = { 0.45 0.9 } rotation = -90 position = { 0.8 0.25 } }			
	}	
	colored_emblem = {
		texture = "ce_tamga_idel_ural.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.26 -0.60 } rotation = 90 position = { 0.78 0.25 } }		
	}	
}

KNK = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"

	colored_emblem = {
		texture = "ce_totem_kanak.dds"
		color1 = color2
		color2 = color2
	}
}

KTI = { # Kutai
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_lion_statant_guardant.dds"
		color1 = "orange"
		color2 = "black"
	}
}

JAB = { # Jabal Shammar
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {		
		texture = "ce_crescent_large.dds"
		color1 = "yellow"
		color2 = "yellow"

        instance = { position = { 0.45 0.5 } scale = { 1 1 } }
    }

	colored_emblem = {		
		texture = "ce_star_08.dds"
		color1 = "yellow"
		color2 = "yellow"

        instance = { position = { 0.81 0.25 } scale = { 0.35 0.35 } }
    }
}

JAI = { # Jaipur
	# Sun face only added 1877 but helps differenciate with numerous similar designs in the area
	# Colour order changed 1922 (to RYWGB)
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}	
	colored_emblem = {
		texture = "ce_sun_face.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "yellow_dark"
		instance = { scale = { 0.36 0.36 } position = { 0.5 0.20 } }		
	}		
}
JAI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_shield_heater_large_barry_05_bottom.dds"
		color1 = "white"
		color2 = "blue_light"
		color3 = "yellow"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.238 0.085 } position = { 0.75 0.355 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.238 0.085 } position = { 0.75 0.44 } }			
	}
	colored_emblem = {
		texture = "ce_sun_face.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "yellow_dark"
		instance = { scale = { 0.18 0.18 } position = { 0.75 0.4 } }		
	}	
}

JAM = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_per_saltire.dds"
		color1 = "black"
		color2 = "black"
	}

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
JAM_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {		
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "yellow"
        instance = { position = { 0.75 0.5 } scale = { 0.75 0.75 } }
	}
    sub = {
        parent = "sub_JAM_greater_coa" 
		instance = { scale = { 0.4 0.4 } offset = { 0.55 0.29 } }
    }
	
}
JAM_coa = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "yellow"
	color4 = "green"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}

	colored_emblem = {		
		texture = "ce_pineapple.dds"
		color1 = color3
		color2 = color4
        instance = { scale = { 0.22 0.22 } position = { 0.5 0.5 }  } # centre
        instance = { scale = { 0.22 0.22 } position = { 0.5 0.2 }  } # top
        instance = { scale = { 0.22 0.22 } position = { 0.782 0.5 }  } # right
        instance = { scale = { 0.22 0.22 } position = { 0.5 0.8 }  } # bottom
        instance = { scale = { 0.22 0.22 } position = { 0.218 0.5 }  } # left
	}
}
JAM_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
}

JAN = { # Jan Mayen
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bear_california.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
		color1 = "white"
		color2 = "blue"	
		color3 = "grey"			
	}
}
JAN_republic = {
	pattern = "pattern_verical_bicolor_offset.dds"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"	
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"	
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }	
		mask = { 2 }		
	}
}
JAN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bear_california.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "white"
		color2 = "blue"	
		color3 = "grey"			
	}
}

JAP = { # Japan
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	}
}
JAP_tokugawa = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "white"
	}
}
JAP_tokugawa_late = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "black"
		color2 = "white"
	}
}
JAP_absolute_monarchy = {
	# Imperial standard
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	}	
}
JAP_rising_sun = {
	pattern = "pattern_gironny_32.dds"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = color2
		color2 = color2
		color3 = color2
	}
}
JAP_republic = {
	# based on a naval flag, border could be red too
	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }				
	}
}
JAP_dictatorship = {
	# based on a naval flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	}
}
JAP_theocracy = {
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_logograms_japan.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }				
	}	
}
JAP_subject = {
	# Based on imperial std
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_chrysanthemum_japan.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}	
}
JAP_usa = {
	# Flag during allied occupation
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
}
JAP_fascist = {
	# Variant of the rising sun war flag (naval flag) - Another possibility is the nippon youth flag : red with with roundel (so invert of modern flag) or a mix of both
	pattern = "pattern_gironny_16_center.dds"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = color2
		color2 = color2
		color3 = color2
	}
}

JAS = { # Jaisalmer
	pattern = "pattern_solid.tga"
	color1 = "purple"
	
	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "saffron"
		color2 = "saffron"
	}	
	colored_emblem = {
		texture = "ce_umbrella.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.49 } }			
	}	
}
JAS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "purple"
		color2 = "purple"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_umbrella.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.5 } }			
	}	
}

JAV = { # Java (Green & white flags were adopted by states of the federation, including W & E Java)
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}		
}
JAV_theocracy = {
	# Sultanate of Mataram
	pattern = "pattern_border_of_3.dds"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_crossed_kris_daggers_mataram.dds"
		color1 = "white"	
		color2 = "blue"		
		instance = { scale = { 0.8 0.8 } position = { 0.65 0.525 } }
	}	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"	
		color2 = "blue"		
		instance = { scale = { 0.75 0.75 } position = { 0.25 0.5 } }
	}		
}

JMB = { # Jambi
	# No really, this is it, this is the historical flag. If you read this comment and then file a bug on the forums I will be passive-aggressive and snide.

	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "white"
}

JOD = { # Jodhpur
	# 1877
	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}	
	colored_emblem = {
		texture = "ce_falcon.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "black_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}		
}
JOD_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_shield_heater_large_barry_05_bottom.dds"
		color1 = "red"
		color2 = "yellow"
		color3 = "green"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 0.238 0.085 } position = { 0.75 0.355 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.238 0.085 } position = { 0.75 0.44 } }			
	}
	colored_emblem = {
		texture = "ce_falcon.dds"
		color1 = "pearl"
		color2 = "yellow_dark"
		color3 = "black_light"
		instance = { scale = { 0.425 0.425 } position = { 0.74 0.51 } }			
	}		
}

JOH = { # Johore
	# 1865 design with saltire - Monarchy default
	
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_saltire.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}	
}
JOH_absolute_monarchy = { # Johore
	# Early flag (1855) - Plain white before that
	# Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
}
JOH_republic = {
	# 1871 - 1958
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.45 0.45 } }
	}	
}
JOH_dictatorship = {
	pattern = "pattern_border_double.dds"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"


	colored_emblem = {		
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.5 0.5 } scale = { 0.70 0.70 } }
	}	
}
JOH_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.9 0.9 } position = { 0.45 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_star_09.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { 0.58 0.50 } }			
	}	
}
JOH_subject = {
	# Yellow border to better distinguish from Turkey
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.44 0.44 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.32 0.32 } position = { 0.75 0.5 } }			
	}	
}



KAL = { # Kalat
	# Until 1952
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "green"
		color2 = "green"
	}	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.55 1.25 } rotation = 270 position = { 0.5 0.48 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.4 } }	
	}	
	colored_emblem = {
		texture = "ce_sun_face.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.28 0.28 } position = { 0.78 0.68 } }	
		instance = { scale = { 0.28 0.28 } position = { 0.22 0.68 } }		
	}		
	colored_emblem = {
		texture = "ce_scimitar_pale.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.85 0.5 } }	
		instance = { scale = { -0.75 0.75 } position = { 0.15 0.5 } }		
	}	
}
KAL_republic = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "green"
		color2 = "green"
	}	
}
KAL_theocracy = {
	pattern = "pattern_border_of_3.dds"
	color1 = "green"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 1.0 } rotation = 270 position = { 0.45 0.4 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.45 0.3 } }	
	}			
	colored_emblem = {
		texture = "ce_scimitar.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.25 1.25 } position = { 0.45 0.70 } }		
	}	
}
KAL_subject = { 
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.48 0.48 } position = { 0.75 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.24 0.24 } position = { 0.75 0.425 } }	
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
KAL_subject_green = { 
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.48 0.48 } position = { 0.75 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.24 0.24 } position = { 0.75 0.425 } }	
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

KAS = { # Kashmir
	# Princely state flag (mid 19th to 1936)
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "yellow"
	}	
}

KAZ = { # Kazakhstan
	# Alash Orda flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }	
	}	
}
KAZ_absolute_monarchy = {
	# Starting flag
	# Rearranged the design a little bit (border instead of stars) to make it feel less like a modern fabrication
	
	pattern = "pattern_border_of_3.dds"
	color1 = "blue_light"
	color2 = "red"

	colored_emblem = {
		texture = "ce_eternal_knot.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.45 0.5 } scale = { 0.7 0.7 } }		
	}
}
KAZ_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "red"

	colored_emblem = {
		texture = "ce_eternal_knot.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }		
	}
 	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.15 0.15 } position = { 0.16 0.35 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.16 0.50 } }		
		instance = { scale = { 0.15 0.15 } position = { 0.16 0.65 } }				
	}	
}
KAZ_subject = {
	pattern = "pattern_border_of_3.dds"
	color1 = "blue_light"
	color2 = "red"

	colored_emblem = {
		texture = "ce_eternal_knot.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }		
	}
}

KAZ_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_eternal_knot.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }		
	}
}

KHI = {
	# modern flag of the khanate 1917-20
	pattern = "pattern_border_of_2.dds"
	color1 = "black"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.66 0.66 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.64 0.5 } }		
	}		
}
KHI_absolute_monarchy = { # Khiva
	# early 20th c.
	# Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.4 0.4 } position = { 0.167 0.25 } }		
	}	
}
KHI_republic = {
	# Simplified variant of the modern Uzbek flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}	
}
KHI_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_crescent_star_05_rotated.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.32 } }	
	}	
	colored_emblem = {
		texture = "ce_shahada_02.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.9 1.0 } position = { 0.5 0.68 } }	
	}	
}
KHI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
}
KHI_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.45 0.45 } position = { 0.735 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.20 0.20 } position = { 0.8 0.5 } }		
	}	
}

KOK = { # Kokand
	# Earliest flag of the khanate
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.61 0.51 } }	
	}	
}
KOK_monarchy = {
	# variant of the starting flag with three stars
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.14 0.3 } rotation = 270 position = { 0.55 0.5 } }			
		instance = { scale = { 0.2 -0.2 } position = { 0.69 0.37 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.69 0.63 } }		
	}		
}
KOK_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue"
		color2 = "blue"
	}	
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.42 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 -0.35 } position = { 0.68 0.5 } }		
	}		
}
KOK_dictatorship = {
	# Basmachi flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_stripes_09.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.4 @[1/9*5] } position = { 0.2 0.5 } }	
	}		
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"	
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.5 } }				
	}	
}
KOK_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.5 0.5 } position = { 0.73 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.86 0.5 } }	
	}	
}
KOK_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"	
		instance = { scale = { 0.5 0.5 } position = { 0.73 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.86 0.5 } }	
	}	
}

KOR = { 
	# 1882 flag adopted at end of isolationist era
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_korea_taegeuk.dds"
		color1 = "red"
		color2 = "blue"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}
	colored_emblem = {
		texture = "ce_korea_kwae.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.5 0.5 } scale = { 0.9 0.9 } }		
	}	
}
KOR_subject = { 
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_korea_taegeuk.dds"
		color1 = "red_light"
		color2 = "azure"
        instance = { position = { 0.75 0.5 } scale = { 0.65 0.65 } }		
	}
}
KOR_subject_CHI = {
	# Before 1882 flags with chinese dragons
	# Earliest attested so historical flag at start
	
	pattern = "pattern_border_of_3.dds"
	color1 = "yellow"
	color2 = "red"
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.125 0.125 } position = { 0.11 0.205 } }		
	}	
	colored_emblem = {
		texture = "ce_dragon_china.dds"
		color1 = "black"
		color2 = "white"
		color3 = "red"
		instance = { scale = { 1.2 1.2 } position = { 0.45 0.49 } }			
	}
}
KOR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1 0.70 } }
	}			
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"		
		instance = { position = { 0.5 0.5 } scale = { 1 0.60 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.33 0.5 } scale = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.33 0.5 } scale = { 0.45 0.45 } }
	}
}

KRA = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue"
		color2 = "blue"
	}
}

KTI = { # Kutai
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_tiger_passant.dds"
		color1 = "orange"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.5 0.6 } scale = { 1.0 1.0 } }		
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.39 0.24 } }
	}	
}
KTI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
		
	colored_emblem = {
		texture = "ce_tiger_passant.dds"
		color1 = "orange"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.75 0.515 } scale = { 0.56 0.60 } }		
	}
}
KTI_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_tiger_passant.dds"
		color1 = "orange"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.75 0.515 } scale = { 0.48 0.54 } }		
	}
}

KUK = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "red"
	color2 = "red"
	color3 = "white"
	color4 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color3
		color2 = color1

		mask = { 1 }
	}

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color3
		color2 = color4

		mask = { 2 }
	}
}

KUR = { # Kurdistan
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "yellow"
		instance = { scale = { 0.6 0.6 } }
	}
}

KUT_princely = { # Kutch
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_legend_kutch.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.8 0.8 } position = { 0.50 0.64 } }			
	}
	colored_emblem = {
		texture = "ce_castle_charge_kutch.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.32 0.36 } }			
	}
	colored_emblem = {
		texture = "ce_elephant_charge_kutch.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.68 0.36 } }			
	}	
	colored_emblem = {
		texture = "ce_crown_oudh.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.50 0.40 } }			
	}	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 -0.24 } rotation = -90 position = { 0.50 0.25 } }			
	}		
}
KUT = { # Kutch
	# Merchant flag based on earlier designs

	pattern = "pattern_solid.tga"
	color1 = "red"
	colored_emblem = {
		texture = "ce_star_12.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.3 0.5 } }	
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 1.0 } rotation = 270 position = { 0.7 0.5 } }	
	}	
}
KUT_subject = {
	# Based on later red ensign (1921)
	# Legend (Kutch State) is arranged in circle rather than in line in the correct design

	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_star_12.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.83 0.65 } }	
	}		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.15 0.33 } rotation = 270 position = { 0.69 0.65 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_k.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.61 0.45 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_u.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.68 0.45 } }	
	}
	colored_emblem = {
		texture = "ce_letter_t.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.75 0.45 } }	
	}
	colored_emblem = {
		texture = "ce_letter_c.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.82 0.45 } }	
	}
	colored_emblem = {
		texture = "ce_letter_h.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.90 0.45 } }	
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}

LAD = { # Ladakh
	pattern = "pattern_border_of_3.dds"
	color1 = "green"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "white"	
		color2 = "white"		
		instance = { scale = { 0.65 0.65 } position = { 0.45 0.6 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"	
		color2 = "white"		
		instance = { scale = { 0.33 0.33 } position = { 0.45 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"	
		color2 = "white"		
		instance = { scale = { 0.15 0.125 } position = { 0.45 0.225 } rotation = 45 }
	}	
}

KAT = { # Kathiri
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "yellow"
	}

	colored_emblem = {
		texture = "ce_chevron.dds"
		color1 = "red"
		color2 = "red"		
		instance = { scale = { 0.5 1.0 } position = { 0.18 0.5 } rotation = 90 }				
	}

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.2 0.2 } position = { 0.10 0.62 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.10 0.38 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.25 0.5 } }				
	}
}

LAH = { # Lahej
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"		
		instance = { scale = { 0.5 1.0 } position = { 0.25 0.5 } }				
	}

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.02 0.66 } position = { 0.25 0.5 } }				
	}

	colored_emblem = {
		texture = "ce_spearhead.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.5 1.0 } position = { 0.25 0.25 } }				
	}

	colored_emblem = {
		texture = "ce_crossed_scimitars.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.5 } position = { 0.25 0.5 } rotation = 180 }	
	}
}

LAN = { # Lanfang
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_legend_lanfang.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.5 0.5 } scale = { 1.2 1.2 } }		
	}
}
LAN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
		
	colored_emblem = {
		texture = "ce_legend_lanfang.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.75 0.5 } scale = { 0.6 0.6 } }		
	}
}
LAN_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_legend_lanfang.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.75 0.5 } scale = { 0.45 0.45 } }		
	}
}

LAO = { # Laos
	# 1893 - Same as Luang Prabang (french Laos protectorate based on former flag of LP)
	
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_elephant_erawan.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "orange"		
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.50 } }				
	}		
}
LAO_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_elephant_erawan.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "orange"		
		instance = { scale = { 0.75 0.75 } position = { 0.75 0.50 } }				
	}				
}
LAO_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"	
		color2 = "blue"	
		instance = { position = { 0.5 0.5 } scale = { 1 0.50 } }
	}		
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 0.7 0.7 } }
	}
}

LAT = {
	pattern = "pattern_solid.tga"
	color1 = red
	color2 = white

	colored_emblem = {
		texture = "ce_tricolor_horizontal_fifth.dds"
		color1 = color2
		color2 = color1
	}
}
LAT_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.45 0.45 } position = { 0.20 0.25 }  }
	}
	colored_emblem = {
		texture = "ce_waves_latvia.dds"
		color1 = "blue"
		color2 = "white"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
	}	
}

LEB = { # Lebanon
	# 1861-1915
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_cedar_lebanon.dds"
		color1 = "brown"
		color2 = "green"		
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.54 } }				
	}		
}
LEB_theocracy = {
	# until 1840 (emirate)
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.9 0.9 } position = { 0.50 0.50 } }				
	}		
}
LEB_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_cedar_lebanon.dds"
		color1 = "brown"
		color2 = "green"		
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.55 } }				
	}			
}

LIB = {
	@lib_canton_width = 0.35
	@lib_canton_height = @[ 1 / 13 * 7 ]
	
	@lib_canton_position_x = @[ lib_canton_width / 2 ]
	@lib_canton_position_y = @[ lib_canton_height / 2 ]
	
	@lib_star_scale = 0.75
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { @lib_canton_width @lib_canton_height } position = { @lib_canton_position_x @lib_canton_position_y } }
	}
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @[ lib_canton_height * lib_star_scale ] @[ lib_canton_height * lib_star_scale] } position = { @lib_canton_position_x @lib_canton_position_y } }
	}
}
LIB_dictatorship = {
	# 1827-1847 American Colonization Society
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.35 @[ 1 / 13 * 7 ] } position = { 0.175 @[ 1 / 13 * 7 / 2 ] } }		
	}
	colored_emblem = {
		texture = "ce_cross_switzerland.dds"
		color1 = "white"
		color2 = "white"
		instance = {  scale = { 0.725 0.725 } position = { 0.175 @[ 1 / 13 * 7 / 2 ] } }
	}
}

LIT = { # Lithuania
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "red"
	}
}
LIT_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	textured_emblem = {
		texture = "te_vytis.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.495 0.505 } }
	}
}
LIT_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "yellow"
		instance = { scale = { 0.65 0.65 } position = { 0.33 0.50 } }			
	}	
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "red"
		instance = { scale = { 0.62 0.62 } position = { 0.33 0.50 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		instance = { scale = { 0.05 0.38 } position = { 0.33 0.51 } }	
		instance = { scale = { 0.16 0.075 } position = { 0.33 0.43 } }
		instance = { scale = { 0.16 0.075 } position = { 0.33 0.59 } }		
	}	
}
LIT_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.45 0.45 } position = { 0.20 0.25 }  }
	}
	colored_emblem = {
		texture = "ce_stripes_02_bottom_lithuania.dds"
		color1 = "green"
		color2 = "white"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
	}	
}

LKT = { # Lakota Sioux
	# Medicine wheel as traditionnal symbol
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	textured_emblem = {
		texture = "te_lakota_medicine_wheel.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.52 } }
	}	
}

LOM = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
		color2 = "red"
	}
}

LUA = { # Luang Prabang
	pattern = "pattern_border_of_4.dds"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_elephant_erawan.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "orange"		
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.50 } }				
	}	
}
LUA_subject = {
	pattern = "pattern_border_of_4.dds"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_elephant_erawan.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "orange"		
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.5 } }				
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

LUB = { # Lubeck
	pattern = "pattern_solid.tga"
	color1 = "white"
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
    sub = {
        parent = "sub_LUB_coa" 
        instance = { scale = { 0.9 0.9 } offset = { 0.05 0.05 } }
    }	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"		
		instance = { scale = { 0.3 0.3 } position = { 0.365 0.17 } }		
	}				
}
LUB_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
    sub = {
        parent = "sub_LUB_coa_republican" 
        instance = { scale = { 0.9 0.9 } offset = { 0.05 0.05 } }
		color1 = "yellow"
		color2 = "black"
		color3 = "white"
		color4 = "red"
		color5 = "red_dark"			
    }	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"		
		instance = { scale = { 0.3 0.3 } position = { 0.365 0.17 } }		
	}				
}
LUB_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_eagle_doubleheaded_base.dds"
		color1 = "black"
		color2 = "red_light"
		color3 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.54 } }			
	}	
	colored_emblem = {
		texture = "ce_eagle_doubleheaded_lubeck_claws.dds"
		color1 = "red"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.54 } }			
	}	
	colored_emblem = {
		texture = "ce_shield_german_round_per_fess.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.54 } }		
	}	
	textured_emblem = {
		texture = "te_crown.dds"		
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.20 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.25 0.25 } position = { 0.125 0.125 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.875 0.125 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.125 0.875 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.875 0.875 } }			
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.125 0.135 } }
		instance = { scale = { 0.35 0.35 } position = { 0.125 0.885 } }
		instance = { scale = { 0.35 0.35 } position = { 0.875 0.135 } }
		instance = { scale = { 0.35 0.35 } position = { 0.875 0.885 } }		
	}		
}
LUB_oligarchy = {
	# Derived from the 1890 flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}	
    sub = {
        parent = "sub_LUB_coa_republican" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.02 } }
		color1 = "yellow"
		color2 = "black"
		color3 = "white"
		color4 = "red"
		color5 = "red"		
    }	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"		
		instance = { scale = { 0.15 0.15 } position = { 0.175 0.08 } }		
	}		
}
LUB_dictatorship = {
	# Derived from the 1850 flag (only removed the upper waves and placed the eagle in canton)
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_waves_latvia.dds"
		color1 = "red"
		color2 = "red"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.34 }  }
	}	
	colored_emblem = {
		texture = "ce_waves_latvia.dds"
		color1 = "white"
		color2 = "red"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.625 }  }
	}	
    sub = {
        parent = "sub_LUB_coa_republican" 
        instance = { scale = { 0.5 0.5 } offset = { 0.0 0.02 } }
		color1 = "yellow"
		color2 = "black"
		color3 = "white"
		color4 = "red"
		color5 = "red"		
    }	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"		
		instance = { scale = { 0.15 0.15 } position = { 0.175 0.08 } }		
	}		
}
LUB_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.465 0.465 } position = { 0.16 0.24 } }				
	}
	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.16 0.24 } }				
	}	
	colored_emblem = {
		texture = "ce_waves_latvia.dds"
		color1 = "white"
		color2 = "red"
        instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 }  }
	}	
}

LUC = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.125 0.125 } scale = { 0.250 0.250 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.125 0.187 } scale = { 0.250 0.125 } }		
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.25 } }	
	}	
	textured_emblem = {
		texture = "te_coa_lucca.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.65 } }	
	}	
}
LUC_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
}
LUC_communist = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @[0.25*1.5] 0.5 } position = { @[0.25*1.5/2] 0.25 } }
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_italy.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.17 0.24 } } 
	}	
}
LUC_subject_FRA = {	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "blue"
	color3 = "red"

	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.875 0.8 } position = { 0.5 0.5 } }		
	}		
}

LUX = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}
}

MAC = { # Manchester
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 1.0 0.6 } position = { 0.5 0.7 } }
	}
	colored_emblem = {		
		texture = "ce_ship_manchester.dds"
		color1 = "brown"
		color2 = "pearl"
		color3 = "red"
        instance = { position = { 0.5 0.18 } scale = { 0.65 0.65 } }
	}	
	colored_emblem = {		
		texture = "ce_waves.dds"
		color1 = "azure"
		color2 = "blue"
        instance = { position = { 0.5 0.32 } scale = { 1.33 0.75 } }
	}	
	colored_emblem = {
		texture = "ce_bends_chief_manchester.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}	
}
MAC_communist = { # Manchester
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"

	colored_emblem = {		
		texture = "ce_waves_latvia.dds"
		color1 = "red"
		color2 = "light_blue"
	}
	colored_emblem = {		
		texture = "ce_ship_manchester.dds"
		color1 = "brown"
		color2 = "pearl"
		color3 = "red"
        instance = { position = { 0.5 0.5 } scale = { 1.5 1.5 } }
	}
#	colored_emblem = {		
#		texture = "ce_star_05_safcp.dds"
#		color1 = "red"
#		color2 = "yellow"
#        instance = { position = { 0.525 0.58 } scale = { 0.20 0.20 } } #Bottom middle
#        instance = { position = { 0.345 0.59 } scale = { 0.16 0.16 } } #Bottom left
#        instance = { position = { 0.72 0.57 } scale = { 0.17 0.17 } } #Bottom right
#
#        instance = { position = { 0.54 0.37 } scale = { 0.13 0.13 } } #Center
#        instance = { position = { 0.355 0.415 } scale = { 0.12 0.12 } } #Middle left
#        instance = { position = { 0.72 0.38 } scale = { 0.12 0.12 } } #Middle right
#
#        instance = { position = { 0.56 0.245 } scale = { 0.075 0.075 } } #Top middle
#        instance = { position = { 0.36 0.295 } scale = { 0.06 0.06 } } #Top left
#        
#        instance = { position = { 0.15 0.5 } scale = { 0.12 0.12 } } #Fore right
#        instance = { position = { 0.823 0.51 } scale = { 0.11 0.11 } } #Aft sail
#    }
    colored_emblem = {		
		texture = "ce_waves_latvia.dds"
		color1 = "red"
		color2 = "light_blue"
		instance = { position = { 0.75 0.60 } scale = { 1.5 1.0 } }
	}
	colored_emblem = {		
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { position = { 0.13 0.20 } scale = { 0.40 0.40 } }
	}
}
MAD = { # Madagascar
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
}
MAD_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tribar.dds"
		color1 = "red"
		color2 = "green"
		color3 = "white"
	}
}
MAD_subject_FRA = {
	# French protectorate
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.38 0.38 } position = { @third 0.5 } }	
	}	
}
SUD = { #Sudan
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "green"	
		instance = { position = { 0 0.5 } }				
	}
}
SUD_theocracy = { # Mahdist State
	# Another possible Mahdist flag is the plain black banner
	
	pattern = "pattern_border_double.dds"
	color1 = "yellow"
	color2 = "blue"
	color3 = "red"

	colored_emblem = {
		texture = "ce_mahdist_legend.dds"
		color1 = "blue"
		color2 = "blue"		
		instance = { scale = { 0.95 0.95 } position = { 0.49 0.55 } }				
	}		
}

MAH = { # Mahra
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}

	colored_emblem = {
		texture = "ce_crescent_star_05.dds"
		color1 = "black"
		color2 = "black"		
		instance = { scale = { 0.33 0.33 } position = { 0.5 0.5 } }				
	}
}

MAK = { # Makran
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "blue_light"
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.28 0.28 } position = { 0.83 0.175 } }		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 0.12 } rotation = 180 position = { 0.88 0.11 } }	
	}	
}
MAK_republic = { # Makran
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "blue_light"
	}	
}
MAK_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
 	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.4 1.0 } position = { 0.2 0.5 } }
	}
 	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.15 1.0 } position = { 0.325 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_crescent_star_05_rotated.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.72 0.48 } }		
	}			
}

MAL = {	# Mali
	# 1959
	# The Kanaga man symbol was removed in 1961 (to be more in line w/ islamic precepts)
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "yellow"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_kanaga.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}

MAY = { # Maya
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = "blue"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.2 0.5 } scale = { 0.4 1.0 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { @third @third } position = { 0.2 0.2 } }
		instance = { scale = { @third @third } position = { 0.2 0.5 } }
		instance = { scale = { @third @third } position = { 0.2 @[1-0.2] } }
	}
}

MCH = { # Manchuria
	# Flag as chinese subject (rearranged five stripped flag)
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	color3 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.25 } position = { 0.25 0.125 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.25 } position = { 0.25 0.25 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.125 } position = { 0.25 @[0.125/2+0.250] } }		
	}		
}

MEC = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "red"
	}
}
MEC_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
    sub = {
        parent = "sub_MEC_coa" 
		color1 = "yellow"
		color2 = "black"
		color3 = "white"
		color4 = "red"
		color5 = "yellow_light"	
        instance = { scale = { 0.7 0.7 } offset = { 0.15 0.15 } }		
    }		
}
MEC_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
}
MEC_oligarchy = {
	# 1818 Merchant flag
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_laurel.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.58 0.58 } position = { 0.5 0.53 } }			
	}
    sub = {
        parent = "sub_MEC_coa" 
		color1 = "yellow"
		color2 = "black"
		color3 = "white"
		color4 = "red"
		color5 = "yellow_light"	
        instance = { scale = { 0.6 0.6 } offset = { 0.2 0.2 } }		
    }		
}
MEC_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_ddr_sun_bg.dds"
		color1 = "red"
		color2 = "yellow_dark"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.53 }  }	
	}	
	colored_emblem = {
		texture = "ce_coa_frame_ddr.dds"
		color1 = "yellow"
		color2 = "black"
		color3 = "red"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.53 }  }	
	}	
	colored_emblem = {
		texture = "ce_frame_ddr_flags_tricolour.dds"
		color1 = "blue"
		color2 = "white"
		color3 = "red"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.53 }  }	
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.39 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.20 0.20 } position = { 0.5 0.39 } }
	}
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.28 0.28 } position = { 0.5 0.57 } }
	}		
}
MEC_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}	
    sub = {
        parent = "sub_MEC_coa" 
		color1 = "yellow"
		color2 = "black"
		color3 = "pearl"
		color4 = "red"
		color5 = "yellow"
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 } }		
    }		
}
MEC_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
    sub = {
        parent = "sub_MEC_coa" 
		color1 = "yellow"
		color2 = "black"
		color3 = "pearl"
		color4 = "red_light"
		color5 = "yellow"	
        instance = { scale = { 0.7 0.7 } offset = { 0.15 0.15 } }		
    }		
}

MEW = { # Mewar
	pattern = "pattern_solid.tga"
	color1 = "purple"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.30 0.30 } position = { 0.25 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.56 } rotation = -90 position = { 0.75 0.525 } }			
	}		
	colored_emblem = {
		texture = "ce_katar.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.80 0.66 } position = { 0.5 0.45 } }			
	}			
}
MEW_subject = {
	pattern = "pattern_solid.tga"
	color1 = "purple"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.15 0.15 } position = { 0.64 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.125 0.28 } rotation = -90 position = { 0.86 0.51 } }			
	}		
	colored_emblem = {
		texture = "ce_katar.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.40 0.33 } position = { 0.75 0.45 } }			
	}			
}

MEX = { # Mexico
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}

	textured_emblem = {
		texture = "te_coa_mexico.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}
}
MEX_subject = { 
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_coa_frame_mexico.dds"
		color1 = "white"
		color2 = "yellow_dark"
		color3 = "brown"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.5 } }
	}

	textured_emblem = {
		texture = "te_coa_mexico.dds"
		instance = { scale = { 0.42 0.42 } position = { 0.75 0.51 } }
	}
}
MEX_absolute_monarchy = {
	# 1865 imperial design
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_eagle_mexico.dds"
		instance = { scale = { 0.65 0.65 } position = { 0.51 0.60 } }
	}
	textured_emblem = {
		texture = "te_crown_imperial_eagles.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.23 } }
	}	
}
MEX_dictatorship = {
	# Inspired by the 1815 independentist flag
	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_checker_05.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.225	0.8 } position = { 0.5 0.5 } }		
		mask = { 1 }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.525 0.48 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.5 } }
	}		
	textured_emblem = {
		texture = "te_eagle_mexico.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
}
MEX_communist = {	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1 @[1/2] } position = { 0.5 0.75 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @[1/3] 1 } position = { @[1/3/2] 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { @[1/3/2] 0.22 } }
		instance = { scale = { 0.25 0.25 } position = { @[1/3/2] 0.5 } }
		instance = { scale = { 0.25 0.25 } position = { @[1/3/2] 0.78 } }		
	}
}
MEX_subject_USA = { 
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { @[1/3/2] 0.5 } scale = { 0.33 1.0 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { @[1/3/2] 0.5 } scale = { 0.4 0.4 } }
	}
}

MGD = { # Maguindanao
	# Starting flag
	# Plain yellow flag
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
}

MGL = { # Mongolia
	# 1911 (the design is somewhat simplified, from surviving flag)
	pattern = "pattern_border_double.dds"
	color1 = "saffron"
	color2 = "red"
	color3 = "blue_light"
	colored_emblem = {
		texture = "ce_soyombo_frame.dds"
		color1 = "blue_light"
		color2 = "red"
		color3 = "beige"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_soyombo.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "blue_light"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_lotus_base.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.6 0.5 } position = { 0.5 0.80 } }		
	}	
}
MGL_republic = { 
	# variant in modern style & inverted colours
	pattern = "pattern_border_of_4.dds"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_soyombo_modern.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }		
	}
}
MGL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_soyombo_modern.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } position = { 0.75 0.5 } }		
	}
}
MGL_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
        instance = { scale = { 0.33 1.0 } position = { 0.5 0.5 }  }
	}
	colored_emblem = {
		texture = "ce_soyombo_modern.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.8 0.8 } position = { @[third/2] 0.58 }  }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { 0.2 0.2 } position = { @[third/2] 0.16 }  }
	}
}

MJT = { # Majerteen
	# The flag was historically plain red (same as Hobyo and most sultanate in the area)
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.45 } }			
	}		
}
MJT_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

MKT = { # Miskito
	# 1824-52 6 stripes
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_stripes_06.dds"
		color1 = color2
		color2 = color2
	}
}
#MKT_late = {
#	# Later 1853-81 variants have 10 or 12 stripes
#
#	pattern = "pattern_solid.tga"
#	color1 = "white"
#	color2 = "blue"
#
#	colored_emblem = {
#		texture = "ce_stripes_10.dds"
#		color1 = color2
#		color2 = color2
#	}
#}

MLT = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {		
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}

MOD = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.372 1.0 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.124 1.0 } position = { 0.5 0.5 } }		
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.27 } }
	}	
    sub = {
        parent = "sub_MOD_coa" 
        instance = { scale = { @[third*2] @[third*2] } offset = { @[third/2] 0.20 } }
    }		
}
MOD_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "blue"
	}
}
MOD_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
MOD_subject = {
	pattern = "pattern_border_of_4.dds"
	color1 = "blue"
	color2 = "white"
	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.33 0.33 } position = { 0.725 0.32 } }
	}	
    sub = {
        parent = "sub_MOD_coa_subject" 
        instance = { scale = { 0.6 0.6 } offset = { 0.275 0.25 } }
    }		
}

MOL = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.20 } }		
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.34 } }			
		color1 = "white"
		color2 = "white"		
	}	
	colored_emblem = {
		texture = "ce_aurochs_head.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.52 } }
		color1 = "brown_light"
		color2 = "white"
		color3 = "white"
	}	
	colored_emblem = {
		texture = "ce_laurel.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.57 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_laurel_knot.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.82 } }
		color1 = "red"
		color2 = "red"		
	}		
}
MOL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"	
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
		color1 = "white"
		color2 = "white"		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.75 0.34 } }		
		color1 = "yellow_dark"
		color2 = "yellow_dark"		
	}		
	colored_emblem = {
		texture = "ce_aurochs_head.dds"
		instance = { scale = { 0.525 0.525 } position = { 0.75 0.51 } }
		color1 = "brown_light"
		color2 = "pearl"
		color3 = "white"		
	}	
	
}
MOL_subject_TUR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.20 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.25 0.25 } position = { 0.125 0.125 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.875 0.125 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.125 0.875 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.875 0.875 } }			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.34 } }
		instance = { scale = { 0.2 0.2 } position = { 0.125 0.125 } }
		instance = { scale = { 0.2 0.2 } position = { 0.125 0.875 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.875 0.125 } }
		instance = { scale = { 0.2 0.2 } position = { 0.875 0.875 } }			
		color1 = "white"
		color2 = "white"		
	}		
	colored_emblem = {
		texture = "ce_aurochs_head.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.52 } }
		color1 = "brown_light"
		color2 = "white"
		color3 = "white"		
	}
	colored_emblem = {
		texture = "ce_laurel.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.57 } }
		color1 = "green"
		color2 = "red"		
	}	
	colored_emblem = {
		texture = "ce_laurel_knot.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.82 } }
		color1 = "red"
		color2 = "red"		
	}		
}
MOL_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
        instance = { scale = { 1.0 0.25 } position = { 0.5 0.5 }  }	
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.15 @[0.75/4] } scale = { 0.35 0.35 } }
	}	
}

MON = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.12 0.17 } }	
	}	
}

MON_dictatorship = {
	# 1860 war flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.05 } scale = { 1.0 0.1 } }
		instance = { position = { 0.5 0.95 } scale = { 1.0 0.1 } }		
		instance = { position = { 0.05 0.5 } scale = { 0.1 1.0 } }	
		instance = { position = { 0.95 0.5 } scale = { 0.1 1.0 } }			
	}
	colored_emblem = {
		texture = "ce_cross_patty.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_h.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.12 0.12 } position = { 0.49 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_letter_i.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.12 0.12 } position = { 0.52 0.5 } }	
	}		
}

MON_absolute_monarchy = {
	# 1881 variant with crown and cypher
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "white"
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.45 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_h.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.2 0.2 } position = { 0.48 0.585 } }	
	}
	colored_emblem = {
		texture = "ce_letter_i.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.2 0.2 } position = { 0.54 0.585 } }	
	}		
}

MOR = { # Morocco
	# Adopted 1915
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_star_pentagram.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}		
}
MOR_absolute_monarchy = {
	# Starting flag
	
	pattern = "pattern_border_triangles_morocco.dds"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_crossed_scimitars_horizontal.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.50 } }				
	}	
}
MOR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_star_05_morocco.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}
MOR_subject_gold = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_star_05_morocco.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}

MTC = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_infinity.dds"
		color1 = "white"
		color2 = "white"
	}
}
MTC_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_infinity.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.75 0.5 } scale = { @[third*2] @[third*2] } }
	}
}

MUG = { # Mughal Empire
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.33 0.5 } }
		color1 = "yellow"	
	}
}
MUG_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "green"	
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.8 } position = { 0.435 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.98 0.78 } position = { 0.435 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "yellow_dark"
		color2 = color1
		instance = { position = { 0.05 0.20 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.20 0.20 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.35 0.20 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.125 0.35 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.275 0.35 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.425 0.35 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.05 0.50 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.20 0.50 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.35 0.50 } scale = { 0.05 0.05 } }	
		instance = { position = { 0.125 0.65 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.275 0.65 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.425 0.65 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.05 0.80 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.20 0.80 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.35 0.80 } scale = { 0.05 0.05 } }					
		instance = { position = { 0.50 0.20 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.65 0.20 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.80 0.20 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.575 0.35 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.725 0.35 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.875 0.35 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.50 0.50 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.65 0.50 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.80 0.50 } scale = { 0.05 0.05 } }	
		instance = { position = { 0.575 0.65 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.725 0.65 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.875 0.65 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.50 0.80 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.65 0.80 } scale = { 0.05 0.05 } }		
		instance = { position = { 0.80 0.80 } scale = { 0.05 0.05 } }			
	}	
	colored_emblem = {
		texture = "ce_border_decor_india.dds"
		color1 = "green"
		color2 = "yellow"
		color3 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "green"
		instance = { scale = { 0.8 0.8 } position = { 0.45 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "yellow"
		instance = { scale = { 0.70 0.70 } position = { 0.45 0.5 } }			
	}	
}
MUG_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "yellow"
		
	}
}
MUG_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { 0.5 0.5 }  } # top left
    }
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_star_16.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "yellow"
		
	}
}

MYS = { # Mysore
	# Default
	
	pattern = "pattern_solid.tga"
	color1 = "red"	

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "brown_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
}
MYS_princely = {
	# Princely State/Abs. Monarchy - Starting
	
	pattern = "pattern_solid.tga"
	color1 = "red"	

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "brown_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "black"
		instance = { scale = { 0.625 0.625 } position = { 0.50 0.54 } }			
	}		
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "red"
		instance = { scale = { 0.62 0.62 } position = { 0.50 0.54 } }			
	}		
	colored_emblem = {
		texture = "ce_gandaberunda.dds"
		color1 = "white"
		color2 = "white"
		color3 = "grey"
		instance = { scale = { 0.5 0.5 } position = { 0.50 0.545 } }			
	}		
	colored_emblem = {
		texture = "ce_supporter_yalis.dds"
		color1 = "black_light"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.28 0.54 } }			
		instance = { scale = { -0.75 0.75 } position = { 0.72 0.54 } }			
	}	
	colored_emblem = {
		texture = "ce_legend_mysore.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.70 0.70 } position = { 0.50 0.82 } }			
	}	
	colored_emblem = {
		texture = "ce_crest_mysore.dds"
		color1 = "brown"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.50 0.18 } }			
	}	
}
MYS_dictatorship = {
	# Based on 18th c. naval flag
	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "red"	

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }			
		instance = { scale = { 0.45 0.45 } position = { 0.25 0.30 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.25 0.70 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.30 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.70 } }				
	}		
}
MYS_theocracy = {
	# 18th c. flag of the Sultanate

	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"	
	
	colored_emblem = {
		texture = "ce_pattern_flower.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { position = { 0.00 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.153 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.306 0.20 } scale = { 0.12 0.12 } }
		instance = { position = { 0.46 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.613 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.766 0.20 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.92 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.076 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.230 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.383 0.35 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.536 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.690 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.843 0.35 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.00 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.153 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.306 0.50 } scale = { 0.12 0.12 } }
		instance = { position = { 0.46 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.613 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.766 0.50 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.92 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.076 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.230 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.383 0.65 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.536 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.690 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.843 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.00 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.153 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.306 0.80 } scale = { 0.12 0.12 } }
		instance = { position = { 0.46 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.613 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.766 0.80 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.92 0.80 } scale = { 0.12 0.12 } }					
	}	
	colored_emblem = {
		texture = "ce_border_decor_india.dds"
		color1 = "green"
		color2 = "yellow_dark"
		color3 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_16_bright.dds"
		color1 = "yellow"
		instance = { scale = { 0.70 0.70 } position = { 0.46 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.35 0.35 } position = { 0.46 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.315 0.315 } position = { 0.46 0.5 } }	
	}	
}
MYS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"	

	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "orange"
		instance = { scale = { 0.63 0.59 } position = { 0.75 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "red"
		instance = { scale = { 0.60 0.56 } position = { 0.75 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_gandaberunda.dds"
		color1 = "white"
		color2 = "white"
		color3 = "grey"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.51 } }			
	}			
}

NAG = { # Nagpur
	# Hist. Saffron flag
	
	pattern = "pattern_solid.tga"
	color1 = "orange"
}

NAH = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = color2
        instance = { scale = { 1 @[4/6]} }				
	}			
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = color3
        instance = { scale = { 1 @[2/6]} }				
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.5 } }		
		instance = { scale = { 0.25 0.25 } position = { 0.3 0.5 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.7 0.5 } }			
	}		
}

NAL = { # Natal
	# Natalia republic
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 2 1 } position = { 1 0.5 } }
	}	
}
NAL_subject_GBR = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { 0.5 0.5 }  } # top left
    }
	colored_emblem = {
		texture = "ce_coa_frame_natal.dds"
		color1 = "blue_light"
		color2 = "yellow"
		color3 = "beige"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.52 } }		
	}
	colored_emblem = {
		texture = "ce_coa_saf_wildebeests.dds"
		color1 = "grey"
		color2 = "pearl"
		color3 = "black_light"
		instance = { scale = { -0.4 0.4 } position = { 0.74 0.51 } }	
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.25 } } 		
	}
	colored_emblem = {
		texture = "ce_letter_n.dds"
		color1 = "black"
		instance = { scale = { 0.08 0.08 } position = { 0.71 0.63 } } 		
	}	
	colored_emblem = {
		texture = "ce_letter_a.dds"
		color1 = "black"
		instance = { scale = { 0.08 0.08 } position = { 0.734 0.63 } } 		
		instance = { scale = { 0.08 0.08 } position = { 0.770 0.63 } } 			
	}	
	colored_emblem = {
		texture = "ce_letter_t.dds"
		color1 = "black"
		instance = { scale = { 0.08 0.08 } position = { 0.752 0.63 } } 		
	}	
	colored_emblem = {
		texture = "ce_letter_l.dds"
		color1 = "black"
		instance = { scale = { 0.08 0.08 } position = { 0.790 0.63 } } 		
	}		
}

NAM = { # Namaland
	# Derived from german Namibia
	
	pattern = "pattern_border_double.dds"
	color1 = "blue_light"
	color2 = "white"
	color3 = "black"
	
	colored_emblem = {
		texture = "ce_bull_head_african.dds"
		color1 = "tan"
		color2 = "pearl"
		color3 = "white"
		instance = { scale = { 0.70 0.70 } position = { 0.5 0.5 } }				
	}		
}

NAS = {
	pattern = "pattern_solid.tga"
	color1 = "orange"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "orange"
	}
}
NAS_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "orange"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.15 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.85 } }			
	}
	colored_emblem = {
		texture = "ce_royal_mantle.dds"
		instance = { scale = { 0.58 0.58 } position = { 0.5 0.55 } }
		color1 = "red"
		color2 = "yellow"
		color3 = "white"		
	}	
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.57 } }
		color1 = "blue"
		color2 = "blue"		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 0.01 0.028 } }
		instance = { position = { 0.468 0.485 } scale = { 0.01 0.028 } }		
		instance = { position = { 0.56 0.485 } scale = { 0.01 0.028 } }		
		instance = { position = { 0.5 0.59 } scale = { 0.01 0.028 } }
		instance = { position = { 0.445 0.61 } scale = { 0.01 0.028 } }	
		instance = { position = { 0.47 0.595 } scale = { 0.01 0.028 } }			
		instance = { position = { 0.525 0.59 } scale = { 0.01 0.028 } }		
		instance = { position = { 0.5 0.68 } scale = { 0.01 0.028 } }
		instance = { position = { 0.475 0.675 } scale = { 0.01 0.028 } }		
		instance = { position = { 0.54 0.66 } scale = { 0.01 0.028 } }		
		instance = { position = { 0.56 0.62 } scale = { 0.01 0.028 } }			
	}	
	colored_emblem = {
		texture = "ce_lion_rampant_crowned.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "blue"
		instance = { position = { 0.5 0.58 } scale = { 0.28 0.28 } }
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.30 } }
	}	
}
NAS_republic = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_stripes_04.dds"
		color1 = "blue"
		color2 = "blue"
	}		
}
NAS_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}		
}

NAV = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_chains.dds"
		color1 = "yellow"
		color2 = "green"
	}
}

NAV_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "green"
	color3 = "white"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color3
		color2 = color3
	}
}

NBS = { # New Brunswick
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	color3 = "black"
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.18 } scale = { 1.0 0.36 } }
	}
	colored_emblem = {		
		texture = "ce_leopard_passant_guardant.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.5 0.18 } scale = { 1.0 1.0 } }
	}
	colored_emblem = {		
		texture = "ce_lymphad.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.5 0.65 } scale = { 0.75 0.75 } }
	}
	colored_emblem = {		
		texture = "ce_waves.dds"
		color1 = "blue"
		color2 = "white"
        instance = { position = { 0.5 0.86 } scale = { 1.0 1.0 } }
	}	
}
NBS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "black"
	
   sub = {
        parent = "sub_NBS" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }   
    }
}

NBS_subject_FRA = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	color3 = "black"
	
   sub = {
        parent = "sub_NBS_FRA" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }   
    }
}

NCA = { # Northern Caucasus
	# Emirate flag
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1 1 } position = { 0.5 0.52 } }			
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.5 } }	
		instance = { scale = { 0.3 0.3 } position = { 0.38 0.25 } }	
		instance = { scale = { 0.3 0.3 } position = { 0.62 0.25 } }			
	}	
}
NCA_republic = {
	# Arrangement of those stars seems a bit dubious
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "white"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "azure" # Blue light makes it hard to read
		color2 = "azure"
		instance = { scale = { 0.5 0.435 } position = { 0.25 @[0.435/2] } }
	}
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9+0.5/18] @[0.435/5+0.435/10] } }
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9*3+0.5/18] @[0.435/5+0.435/10] } }
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9*5+0.5/18] @[0.435/5+0.435/10] } }	
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9+0.5/18] @[0.435/5*3+0.435/10] } }
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9*3+0.5/18] @[0.435/5*3+0.435/10] } }
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9*5+0.5/18] @[0.435/5*3+0.435/10] } }	
		instance = { scale = { 0.15 0.15 } position = { @[0.5/9*7+0.5/18] @[0.435/2] } }		
	}		
}
NCA_theocracy = {	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.435 } position = { 0.25 @[0.435/2] } }
	}	
	colored_emblem = {
		texture = "ce_crescent_three.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.60 } position = { 0.25 @[0.435/2] } }		
	}		
}


NEJ = { # Nejd
	# 1822-90
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.5 } }			
	}	
}
NEJ_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.78 0.5 } }			
	}	
}
NEJ_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.735 0.5 } }			
	}	
}

NEN = {	
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}	
	colored_emblem = {
		texture = "ce_tree_new_england.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.6 0.45 } position = { 0.225 0.2 } }
	}
}
NEN_republic = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { @[0.5/1.5] 0.5 } position = { 0.165 0.25 } }
	}
	colored_emblem = {
		texture = "ce_tree_new_england.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.5 0.5 } position = { 0.165 0.25 } }
	}
}
NEN_subject_GBR = {	
	# With modified Union Jack in canton
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "green"	
    sub = {
        parent = "sub_NEN_uk" 
		instance = { scale = { @[0.5/1.5] 0.5 } }
    }	
}

NEP = { # Nepal
	# Blue border after 1930
	
	pattern = "pattern_border_of_3.dds"
	color1 = "red"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_moon_face.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.22 0.24 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_nepal.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.28 } }			
	}	
	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.40 0.40 } position = { 0.22 0.68 } }			
	}		
	colored_emblem = {
		texture = "ce_moon_face.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.22 0.68 } }			
	}	
}

NEP_subject = {	
	pattern = "pattern_border_of_3.dds"
	color1 = "red"
	color2 = "green"

	colored_emblem = {
		texture = "ce_moon_face.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.75 0.28 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_nepal.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.40 0.40 } position = { 0.75 0.31 } }			
	}	
	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.66 } }			
	}		
	colored_emblem = {
		texture = "ce_moon_face.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.75 0.66 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.2 0.3 } }			
	}	
}

NET = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
}
NET_princes_flag = {
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
}
NET_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_lion_rampant_batavian.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { position = { 0.5 0.5 }scale = { 0.9 0.9 } } 		
	}
}
NET_dictatorship = {
	# Inspired by a naval flag with arms of the republic in center
	
	pattern = "pattern_gironny_12_tricolor.dds"
	color1 = "orange"
	color2 = "blue"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.51 } }
	}	
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		color1 = "brown"
		color2 = "black"
		instance = { scale = { 0.51 0.51 } position = { 0.5 0.50 } }		
	}	
	colored_emblem = {
		texture = "ce_shield_hesse.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.50 0.50 } position = { 0.5 0.50 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant_batavian.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.40 0.40 } position = { 0.505 0.51 } }
	}	
}
NET_fascist = {	
	# NSB Flag
	pattern = "pattern_solid.tga"
	color1 = "orange"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wolfsangel_nsb.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
}
NET_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "blue"
	color3 = "white"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		instance = { scale = { 0.15 0.15 } position = { 0.75 0.285 } }	
		instance = { scale = { 0.13 0.13 } position = { 0.71 0.295 } }	
		instance = { scale = { 0.13 0.13 } position = { 0.79 0.295 } }			
	}	
	colored_emblem = {
		texture = "ce_crown_simple.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.285 } }	
	}	

	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { scale = { 0.56 0.51 } position = { 0.75 0.525 } }		
	}	
	colored_emblem = {
		texture = "ce_shield_accolade_02.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.55 0.50 } position = { 0.75 0.525 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_rampant_batavian.dds"
		color1 = "yellow"
		color2 = "azure"
		color3 = "white"
		instance = { scale = { 0.40 0.40 } position = { 0.755 0.53 } }
	}	
}

NEW = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red_dark"
		color3 = "pearl"
		instance = { scale = { 0.42 0.42 } position = { 0.5 0.49 } } 		
	}	
}
NEW_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { 0.5 0.5 } } 
    }		
	textured_emblem = {		
		texture = "te_coa_newfoundland.dds"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}
}
NEW_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "pink"
	}
}
NEW_coa = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_lion_statant_guardant.dds"
		color1 = "yellow"
		color2 = "blue"
		color3 = "grey"
		
		instance = { scale = { @[third*1.3] @[third*1.3] } position = { @[111/256/2] @[102/256/2+0.03] } } # top left
		instance = { scale = { @[third*1.3] @[third*1.3] } position = { @[1-(111/256/2)] @[1-(102/256/2-0.03)] } } # bottom right
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = color3
		color2 = "red"
		color3 = "pearl"
		
		instance = { scale = { 0.125 0.125 } position = { @[111/256/2-0.047] @[102/256/2-0.125] } rotation = 2.5 }
		instance = { scale = { 0.125 0.125 } position = { @[1-(111/256/2+0.047)] @[1-(102/256/2+0.125)] } rotation = 2.5 }
	}	
	colored_emblem = {
		texture = "ce_unicorn.dds"
		color1 = color2
		color2 = color3
		color3 = "grey"
		
		instance = { scale = { @[third*1.33] @[third*1.33] } position = { @[1-(111/256/2)] @[102/256/2] } } # top right
		instance = { scale = { @[third*1.33] @[third*1.33] } position = { @[111/256/2] @[1-(102/256/2)] } } # bottom left
	}
}
NEW_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "pink"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "green"
	}
}

NGF = { # North German Federation
	# Actually used the simple tricolor given to GER
	# version with german state crown
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}	
	textured_emblem  = {
		texture = "te_german_state_crown.dds"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.48 } }	
	}	
}
NGF_absolute_monarchy = {
	# version with prussian eagle
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}	
	textured_emblem  = {
		texture = "te_eagle_prussia_monogram_crown.dds"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.52 } }	
	}	
}
NGF_fascist = {		
	# Same as V2 NGF	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_iron_cross.dds"
		color1 = "white"
		color2 = "black"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
}

NIC = { # Nicaragua
	# design adopted 1838 
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}	
	textured_emblem = {
		texture = "te_coa_nicaragua.dds"
		instance = { scale = { 0.40 0.40 } position = { 0.5 0.5 } }
	}	
}
NIC_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}		
	textured_emblem = {
		texture = "te_coa_nicaragua.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.5 } }
	}			
}
NIC_subject_MEX = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { scale = { 0.455 0.455 } position = { 0.5 0.5 } }
	}		
	textured_emblem = {
		texture = "te_coa_nicaragua.dds"
		instance = { scale = { 0.54 0.54 } position = { 0.5 0.5 } }
	}			
}

NNV = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_inuksuk.dds"
		color1 = "red"
		color2 = "red"
	}
}
NNV_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_inuksuk.dds"
		color1 = "red"
		color2 = "red"
		
		instance = { scale = { 0.75 0.75 } position = { 0.75 0.5 } } # top right
	}
}

NOR = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_cross_norway.dds"
		color1 = color2
		color2 = color3
	}
}
NOR_canton = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_cross_england_fimbriated.dds"
		color1 = color2
		color2 = color3
	}
}
NOR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.5 0.9 } scale = { 1.0 0.2 } }
	}	
	colored_emblem = {
		texture = "ce_stripe_bottom_nkp.dds"
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.16 0.25 } scale = { 0.45 0.45 } } 
	}	
}
NOR_fascist = {	
	# NS Flag
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}	
}

NRU = {
	# Modern flag of Nauru
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_star_12.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.33 0.75 } }				
	}	
}
NRU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_star_12.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }				
	}	
}
NRU_subject_GBR = {
	# Blue ensign with original british name
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.5 } } 		
	}		
	colored_emblem = {
		texture = "ce_legend_nauru.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.5 } }	
	}		
}

NSW = {
	# New South Wales Ensign
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {		
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}

	colored_emblem = {		
		texture = "ce_star_08.dds"
		color1 = color1
		color2 = color1
        instance = { scale = { 0.2 0.2 } position = { 0.5 0.5 }  } # centre
        instance = { scale = { 0.2 0.2 } position = { 0.5 0.2 }  } # top
        instance = { scale = { 0.2 0.2 } position = { 0.782 0.5 }  } # right
        instance = { scale = { 0.2 0.2 } position = { 0.5 0.8 }  } # bottom
        instance = { scale = { 0.2 0.2 } position = { 0.218 0.5 }  } # left
	}
}

NTU = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "red"
	colored_emblem = {
		texture = "ce_star_04.dds"
		color1 = color2
		color2 = color3
	}
}

NVJ = { # Navajo
	# Traditionnal sun emblem with modern tribal flag colours
	
	pattern = "pattern_solid.tga"
	color1 = "peach"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.1 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.9 } }			
	}

	colored_emblem = {
		texture = "ce_sun_xia.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }
	}
}

NVS = { # Nova Scotia
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"
	color3 = "red"

	textured_emblem = {
		texture = "te_coa_nova_scotia.dds"
        instance = { position = { 0.5 0.5 } scale = { 1.5 1.5 } }
	}	
}
NVS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"
	color3 = "red"
	
   sub = {
        parent = "sub_NVS" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }   
    }
}

NZL = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color3
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.25 } } # top
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.5 } } # right
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.75 } } # bottom
		instance = { scale = { 0.4 0.4 } position = { 0.25 0.5 } } # left
	}
}
NZL_canton = {
	# blue ensign
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color3
		instance = { scale = { 0.2 0.2 } position = { 0.74 0.23 } }
		instance = { scale = { 0.2 0.2 } position = { 0.63 0.44 } }
		instance = { scale = { 0.18 0.18 } position = { 0.835 0.385 } }
		instance = { scale = { 0.22 0.22 } position = { 0.74 0.775 } }
	}
}
NZL_republic = {
	# red peak (no black)
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "blue"
	color3 = "white"
	color4 = "red"
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 1.0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_chevron.dds"
		color1 = color3
		color2 = color4
	}
}
NZL_republic_maori = {
	# red peak with maori black
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "blue"
	color3 = "white"
	color4 = "red"
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 1.0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_chevron.dds"
		color1 = color3
		color2 = color4
	}
}
NZL_coa = {
	# Not used in definitions
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	color4 = "yellow"
	color5 = "black"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.75 } scale = { 0.5 0.5 } }
		instance = { position = { 0.75 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 0.5 } scale = { 0.25 1.0 } }
	}
	colored_emblem = {
		texture = "ce_galley.dds"
		color1 = color5
		color2 = color5
		color3 = color5
		instance = { position = { 0.5 @sixth } scale = { @third @third } }
		instance = { position = { 0.5 0.5 } scale = { @third @third } }
		instance = { position = { 0.5 @[1-sixth] } scale = { @third @third } }
	}
	colored_emblem = {
		texture = "ce_golden_fleece.dds"
		color1 = color4
		color2 = color4
		instance = { position = { @[1-NZL_coa_offset] 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_mining_hammers.dds"
		color1 = color4
		color2 = color4
		instance = { position = { @[1-NZL_coa_offset] 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wheat_garb.dds"
		color1 = color4
		color2 = color4
		instance = { position = { @NZL_coa_offset 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		@nzl_coa_star_scale = 0.2
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color3
		instance = { position = { @[0.55*NZL_coa_offset] 0.24 } 	scale = { @nzl_coa_star_scale @nzl_coa_star_scale } }
		instance = { position = { @[1.45*NZL_coa_offset] 0.24 } 	scale = { @nzl_coa_star_scale @nzl_coa_star_scale } }
		instance = { position = { @NZL_coa_offset @[0.5/4] } 	scale = { @nzl_coa_star_scale @nzl_coa_star_scale } }
		instance = { position = { @NZL_coa_offset @[1.5/4] } 	scale = { @[nzl_coa_star_scale*1.33] @[nzl_coa_star_scale*1.33] } }
	}
}
NZL_theocracy = {
	# Based on the arms of the Anglican diocese of Auckland.
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

    sub = {
        parent = "sub_NZL_theocracy" 
        #instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  } # top left
    }
}
NZL_theocracy_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
    sub = {
        parent = "sub_NZL_theocracy" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  } # top left
    }
}
NZL_colony_subject = {
	# Earliest blue ensign, not used in definitions atm
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
    sub = {
        parent = "sub_NZL_colony" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.5 }  } # top left
    }
}
NZL_absolute_monarchy = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "red"
	color4 = "yellow"
	color5 = "black"

    sub = {
        parent = "sub_NZL_coa" 
		instance = { scale = { 0.75 0.75 } offset = { 0.125 0.225 } }
    }
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.26 } } 
	}	
}
NZL_absolute_monarchy_subject = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "red"
	color4 = "yellow"
	color5 = "black"

    sub = {
        parent = "sub_NZL_coa" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.3 } }
    }
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.32 } } 
	}	
}
NZL_dictatorship = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.5 1.0 } position = { 0.5 0.5 } } 
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.4 1.0 } position = { 0.5 0.5 } } 
	}

	colored_emblem = {
		texture = "ce_southern_cross_new_zealand.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } } 
	}
}
NZL_fascist = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.21 } position = { 0.5 0.5 } } 
		instance = { scale = { 0.14 1.0 } position = { 0.4 0.5 } } 		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "blue"
		instance = { scale = { 1.0 0.12 } position = { 0.5 0.5 } } 
		instance = { scale = { 0.08 1.0 } position = { 0.4 0.5 } } 		
	}	

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.70 0.70 } position = { 0.4 0.5 } } 
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.4 0.5 } } 
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.62 0.62 } position = { 0.4 0.5 } } 
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.25 0.06 } position = { 0.4 0.5 } } 
		instance = { scale = { 0.04 0.3 } position = { 0.4 0.5 } } 			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.26 0.26 } position = { 0.52 0.505 } } 
		instance = { scale = { 0.26 0.26 } position = { 0.28 0.505 } } 	
		instance = { scale = { 0.26 0.26 } position = { 0.4 0.32 } } 
		instance = { scale = { 0.26 0.26 } position = { 0.4 0.68 } } 			
	}	
	colored_emblem = {
		texture = "ce_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.2 0.2 } position = { 0.52 0.505 } } 
		instance = { scale = { 0.2 0.2 } position = { 0.28 0.505 } } 	
		instance = { scale = { 0.2 0.2 } position = { 0.4 0.32 } } 
		instance = { scale = { 0.2 0.2 } position = { 0.4 0.68 } } 			
	}
}

NZP = { # Nez Percés

	pattern = "pattern_solid.tga"
	color1 = "beige"
	color2 = "orange"
	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.5 } scale = { 0.77 0.77 } }		
	}
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "orange"
		color2 = "orange"
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle_triangles.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.5 } scale = { 0.76 0.76 } }		
	}	
	colored_emblem = {		
		texture = "ce_horse_tribal.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.5 0.38 } scale = { 0.4 0.4 } }		
        instance = { position = { 0.5 0.62 } scale = { 0.4 0.4 } }			
	}	
}

OCC = { # Occitania
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = { 
		texture = "ce_cross_occitan.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.8 0.25 } }
	}	
}
OCC_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = { 
		texture = "ce_cross_occitan.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.75 0.5 } }
	}	
}
	
OLD = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
		color2 = "red"
	}	
}
OLD_coa = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_coa_mantle.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.52 } }
	}	
	textured_emblem = {
		texture = "te_coa_oldenburg.dds"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.57 } }
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.37 0.37 } position = { 0.5 0.17 } }
	}		
}
OLD_civil_flag = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = color2
		color2 = color2
	}	
}
OLD_oligarchy = {
	# Free state 1919
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_coa_oldenburg_delmenhorst.dds"
		color1 = "blue"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 }  }	
	}			
}
OLD_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 }  }			
	}
	colored_emblem = {
		texture = "ce_frame_ddr_sun_bg.dds"
		color1 = "blue"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.35 0.35 } position = { 0.16 0.25 }  }	
	}	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.36 0.36 } position = { 0.16 0.25 }  }	
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.16 0.16 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.12 0.12 } position = { 0.16 0.16 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.175 0.175 } position = { 0.16 0.275 } }
	}	
}
OLD_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	textured_emblem = {
		texture = "te_coa_oldenburg.dds"
		instance = { scale = { 0.66 0.66 } position = { 0.75 0.555 } }
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.315 } }
	}		
}
OLD_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_coa_oldenburg_delmenhorst.dds"
		color1 = "blue"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 }  }	
	}			
}
	
OMA = { # Muscat-Oman
	# Plain red flag, traditionnal emblem of most, if not all emirates of the arabian peninsula
	# Variant : the (plain) white Imamate flag was in use 1868-71
	
	pattern = "pattern_solid.tga"
	color1 = "red"
}
OMA_merchant = {
	# Merchant flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.5 } }		
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }				
	}
}
OMA_subject = {
	# Based on merchant flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_crescent_three.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.5 } }					
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
OMA_subject_GBR = {
	# Blue ensign
	
	pattern = "pattern_solid.tga"
	color1 = "blue"


	colored_emblem = {
		texture = "ce_crescent_three.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }					
	}
}

ONT = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "green"
	color3 = "yellow"
	color4 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_maple_leafs.dds"
		color1 = color3
		color2 = color2
		instance = { position = { 0.5 0.75] } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.5 0.25 } scale = { 1.0 0.15 } }
		instance = { position = { 0.5 0.25 } scale = { 0.1 0.5 } }
	}
}
ONT_subject = {
	# Red ensign with 1867 CoA
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {		
		texture = "ce_shield_heater_border.dds" 
		color1 = "green"
		color2 = "yellow"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.75 0.37 } scale = { 0.198 0.11 } }
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.75 0.37 } scale = { 0.018 0.11 } }
        instance = { position = { 0.75 0.37 } scale = { 0.198 0.024 } }		
	}		
	colored_emblem = {		
		texture = "ce_maple_leafs.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.75 0.545 } scale = { 0.3 0.3 } }
	}
}
ONT_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	color4 = "yellow"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.33 0.25 } }	
		instance = { scale = { 0.4 0.4 } position = { 0.67 0.25 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2	
		instance = { position = { 0.5 0.75 } scale = { 1.0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_maple_leafs.dds"
		color1 = color3
		color2 = color4
		instance = { position = { 0.5 0.75 } scale = { 0.7 0.7} }
	}
}
ONT_secessionist = {
	# 1837 Upper Canada Revolutionary flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = "blue"
		color2 = "blue"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.33 0.25 } }	
		instance = { scale = { 0.4 0.4 } position = { 0.67 0.25 } }			
	}		
	colored_emblem = {
		texture = "ce_letter_l.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.11 0.75 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_i.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.21 0.75 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_b.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.31 0.75 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_e.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.445 0.75 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_r.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.59 0.75 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_t.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.74 0.75 } }	
	}	
	colored_emblem = {
		texture = "ce_letter_y.dds"
		color1 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.89 0.75 } }	
	}		
}

ORA = {
	pattern = "pattern_solid.tga"
	color1 = "orange"
	
	@ORA_canton_width = @[1/2]
	@ORA_canton_height = @[(1/7*3)+0.005]

	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "white"
		color2 = "white"
	}

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { @[ORA_canton_width/2] @[ORA_canton_height/2] } scale = { @ORA_canton_width @ORA_canton_height } } 
	}
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
		instance = { position = { @[ORA_canton_width/2] @[ORA_canton_height/2] } scale = { @ORA_canton_width @ORA_canton_height } } 
	}
}
ORA_subject_GBR = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }	
	}
}

ORG = { # Oregon/British Columbia
	# More or less the design of the Oregon state flag reverse side (changed orientation since its not a reverse here)
	# Design is possibly a bit lacking and could be improved
	
	pattern = "pattern_solid.tga"
	color1 = "blue"	
		
	colored_emblem = {
		texture = "ce_beaver.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "blue"
		instance = { scale = { 1.0 1.0 } position = { 0.48 0.5 } }			
	}	
}
ORG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"	
		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.32 } }
	}			
	colored_emblem = {
		texture = "ce_beaver.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.51 0.6 } }			
	}	
}
ORG_subject = {	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_beaver.dds"
		color1 = "tan"
		color2 = "tan"
		color3 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "green"
		color3 = "red"
		instance = { scale = { 0.58 0.55 } position = { 0.75 0.51 } }
	}	
}
ORG_subject_GBR = {
	
	pattern = "pattern_solid.tga"
	color1 = "blue"	
    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { 0.5 0.5 } } 
    }	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.36 0.36 } position = { 0.75 0.61 } }
	}	
	colored_emblem = {
		texture = "ce_lion_statant_guardant.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.43 } }
	}	
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.1 0.1 } position = { 0.72 0.325 } rotation = 7.5 }
	}	
	colored_emblem = {
		texture = "ce_letter_b.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.225 0.225 } position = { 0.635 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_letter_c.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.225 0.225 } position = { 0.865 0.5 } }			
	}	
}

ORI = { # Orissa
	# Flag of Baudh, one of the main Orissa princely states
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "purple"
		color2 = "purple"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.3 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.7 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}		
}
ORI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	color2 = "white"

	colored_emblem = {
		texture = "ce_dharmachakra.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.50 } }			
	}
}

PAL = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		instance = { position = { 0 0.5 } }
	}
}

PAN_absolute_monarchy = { # Sikh Empire
	# Starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_khanda.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.7 0.7 } position = { 0.3 0.5 } }		
	}			
}
PAN = {
	# default monarchy
	
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	color2 = "black"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.8 } position = { 0.435 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.98 0.78 } position = { 0.435 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_border_decor_india.dds"
		color1 = "saffron"
		color2 = "black"
		color3 = "black"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}			
	colored_emblem = {
		texture = "ce_scimitar.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.33 -1.33 } position = { 0.475 0.30 } rotation = 5 }		
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.435 0.435 } position = { 0.5 0.505 } }		
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.08 0.08 } position = { 0.47 0.45 } }	
		instance = { scale = { 0.08 0.08 } position = { 0.47 0.55 } }	
		instance = { scale = { 0.08 0.08 } position = { 0.53 0.45 } }	
		instance = { scale = { 0.08 0.08 } position = { 0.53 0.55 } }			
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.07 0.07 } position = { 0.47 0.455 } }	
		instance = { scale = { 0.07 0.07 } position = { 0.47 0.555 } }	
		instance = { scale = { 0.07 0.07 } position = { 0.53 0.455 } }	
		instance = { scale = { 0.07 0.07 } position = { 0.53 0.555 } }			
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.025 0.025 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_katar.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.5 1.0 } position = { 0.45 0.75 } rotation = 90 }		
	}		
}
PAN_republic = {
	pattern = "pattern_solid.tga"
	color1 = "orange"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "orange"
	}
	colored_emblem = {
		texture = "ce_khanda.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.35 0.35 } position = { 0.12 @[third/2] } }		
	}	
}
PAN_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "saffron"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 1.0 0.15 } position = { 0.5 0.2 } }		
		instance = { scale = { 1.0 0.15 } position = { 0.5 0.8 } }			
	}	
	colored_emblem = {
		texture = "ce_khanda.dds"
		color1 = "saffron"
		color2 = "saffron"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }		
	}			
}
PAN_theocracy = {
	# Actually the imperial war flag
	
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "green"	
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 1.0 0.8 } position = { 0.435 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.98 0.78 } position = { 0.435 0.5 } }	
	}	
	colored_emblem = {
		texture = "ce_pattern_flower.dds"
		color1 = color1
		color2 = color1
		instance = { position = { 0.05 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.20 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.35 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.125 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.275 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.425 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.05 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.20 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.35 0.50 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.125 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.275 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.425 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.05 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.20 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.35 0.80 } scale = { 0.12 0.12 } }					
		instance = { position = { 0.50 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.65 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.80 0.20 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.575 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.725 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.875 0.35 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.50 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.65 0.50 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.80 0.50 } scale = { 0.12 0.12 } }	
		instance = { position = { 0.575 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.725 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.875 0.65 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.50 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.65 0.80 } scale = { 0.12 0.12 } }		
		instance = { position = { 0.80 0.80 } scale = { 0.12 0.12 } }			
	}	
	colored_emblem = {
		texture = "ce_border_decor_india.dds"
		color1 = "green"
		color2 = "yellow"
		color3 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sun_sikh.dds"
		color1 = "yellow"
		instance = { scale = { 0.70 0.70 } position = { 0.45 0.5 } }			
	}	
}
PAN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "saffron"
	
	colored_emblem = {
		texture = "ce_khanda.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.50 } }		
	}			
}
PAN_subject_GBR = {	
	# Blue ensign for UK
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_khanda.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.50 } }		
	}			
}

PAP = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "red"
	color2 = "yellow"
}
PAP_theocracy = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "yellow"
	color2 = "white"
	textured_emblem = {
		texture = "te_coa_papal_states_tiara.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.75 0.49 } }
	}		
}
PAP_republic = {
	# BWR republican is for Rome/Latium
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
}
PAP_communist = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.56 0.56 } position = { 0.5 0.5 } } 
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.44 0.44 } position = { 0.5 0.5 } } 
	}
}
PAP_fascist = {	
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_chi_rho.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}	
}

PAR = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "red"
	color2 = "white"
}
PAR_absolute_monarchy = {
	# Great arms flag, before 1802 & after 1847
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
    sub = {
        parent = "sub_PAR_coa" 
		instance = { scale = { 0.85 0.85 } offset = { 0.075 0.075 } }
    }
}
PAR_absolute_monarchy_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
    sub = {
        parent = "sub_PAR_coa_subject" 
		instance = { scale = { 0.75 0.75 } offset = { 0.188 0.15 } }
    }
}
PAR_republic = {
	# 1848 Horiz. Bicolour
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue_light"
		color2 = "blue_light"
	}
}
PAR_dictatorship = {
	# Gironny flag
	
	pattern = "pattern_gironny_8.dds"
	color1 = "yellow"
	color2 = "blue_light"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.05 } scale = { 1.0 0.1 } }
		instance = { position = { 0.5 0.95 } scale = { 1.0 0.1 } }		
		instance = { position = { 0.05 0.5 } scale = { 0.1 1.0 } }	
		instance = { position = { 0.95 0.5 } scale = { 0.1 1.0 } }			
	}
}
PAR_communist = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_hammer_sickle_italy.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.17 0.24 } } 
	}		
}

PAT = { # Patagonia
	# Leftraru flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.05 } }	
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.95 } }		
		instance = { scale = { 0.1 1.0 } position = { 0.05 0.5 } }	
		instance = { scale = { 0.1 1.0 } position = { 0.95 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_leftraru.dds"
		color1 = "blue_light"
		color2 = "white"
		instance = { scale = { 1.45 1.4 } position = { 0.5 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_star_gunelve.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }		
	}
}

PCO = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = color1
		color2 = color1
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.175 0.5 } scale = { 0.4 0.4 } }
	}
}

PER = { # Persia
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.51 0.42 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.4 0.2 } position = { 0.50 0.65 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.51 0.42 } }		
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.5 0.02 } position = { 0.525 0.81 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.49 0.01 } position = { 0.525 0.805 } }		
	}	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.50 0.50 } }			
	}
}
PER_absolute_monarchy = { 
	# Starting flag
	
	pattern = "pattern_border_of_3.dds"
	color1 = "white"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.46 0.42 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.25 } position = { 0.5 0.75 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.46 0.42 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.45 0.50 } }			
	}
}
PER_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.51 0.465 } }			
	}	

	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.08 0.08 } position = { 0.51 0.465 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.10 } position = { 0.5 0.6 } }		
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.26 0.02 } position = { 0.51 0.66 } }		
	}	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.5 0.505 } }			
	}		
}
PER_dictatorship = {
	# removed crown from an imperial standard
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow_dark"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.50 0.46 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.1 } position = { 0.5 0.64 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { scale = { 0.08 0.08 } position = { 0.50 0.46 } }		
	}	
	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.25 0.015 } position = { 0.50 0.67 } }		
	}		
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow_dark"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.49 0.51 } }			
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "green"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.51 } }			
	}	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.6 0.8 } position = { 0 0 } }		
		instance = { scale = { 0.6 0.8 } position = { 1 0 } }		
		instance = { scale = { 0.6 0.8 } position = { 0 1 } }		
		instance = { scale = { 0.6 0.8 } position = { 1 1 } }				
	}	
}
PER_theocracy = {
	# flag of modern islamic republic would probably stand out too much
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.28 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.2 0.72 } }		
		instance = { scale = { 0.45 0.45 } position = { 0.45 0.5 } }				
	}
}
PER_subject = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "green"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.32 0.32 } position = { 0.76 0.45 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.2 0.1 } position = { 0.75 0.6 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.1 0.1 } position = { 0.76 0.45 } }		
	}

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.28 0.015 } position = { 0.765 0.67 } }		
	}	
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.50 } }			
	}	
}
PER_fascist = {		
	# SUMKA flag
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sumka_stylized_eagle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
PER_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.25 0.25 } position = { 0.745 0.45 } }			
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.2 0.1 } position = { 0.74 0.6 } }		
	}	
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.07 0.07 } position = { 0.745 0.45 } }		
	}
	colored_emblem = {
		texture = "ce_lion_persia.dds"
		color1 = "yellow"
		color2 = "orange"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.735 0.50 } }			
	}	
}

PEU = { # Peru
	# Starting (Pres. Dictatorship)
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		instance = { scale = { 0.15 0.12 } position = { 0.5 0.355 } }
		instance = { scale = { 0.13 0.10 } position = { 0.5 0.355 } }		
		color1 = "green"
		color2 = "red"		
	}		
	textured_emblem = {
		texture = "te_coa_peru.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wreath_peru.dds"
		instance = { scale = { 0.50 0.50 } position = { 0.5 0.51 } }
		color1 = "green"
		color2 = "red"	
		color3 = "red"			
	}	
	colored_emblem = {
		texture = "ce_ribbon.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.68 } }
		color1 = "red"
		color2 = "white"		
	}		
}
PEU_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_sun_peru.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
		color1 = "red"
		color2 = "red"		
	}	
}
PEU_monarchy = {
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "red"

	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.30 } }
	}		
	textured_emblem = {
		texture = "te_coa_peru.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.55 } }
	}
	colored_emblem = {
		texture = "ce_flag_supporter_tricolor_vertical.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.375 0.52 } }			
		instance = { scale = { 0.55 0.55 } position = { 0.40 0.50 } }
		color1 = "red"
		color2 = "white"	
		color3 = "yellow"		
	}		
	colored_emblem = {
		texture = "ce_flag_supporter_tricolor_vertical.dds"
		instance = { scale = { -0.55 0.55 } position = { 0.625 0.52 } }				
		instance = { scale = { -0.55 0.55 } position = { 0.60 0.50 } }
		color1 = "red"
		color2 = "white"	
		color3 = "yellow"		
	}		
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		instance = { scale = { 0.48 0.48 } position = { 0.5 0.60 } }
		color1 = "green"
		color2 = "red"		
	}		
	colored_emblem = {
		texture = "ce_ribbon.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.78 } }
		color1 = "red"
		color2 = "white"		
	}
}
PEU_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.25 } }
	}		
	textured_emblem = {
		texture = "te_coa_peru.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.55 } }
	}
		
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.57 } }
		color1 = "green"
		color2 = "red"		
	}		
	colored_emblem = {
		texture = "ce_ribbon.dds"
		instance = { scale = { 0.15 0.15 } position = { 0.5 0.83 } }
		color1 = "red"
		color2 = "red"		
	}
	colored_emblem = {
		texture = "ce_inti.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.15 0.2 } }
		instance = { scale = { 0.25 0.25 } position = { 0.85 0.2 } }
		instance = { scale = { 0.25 0.25 } position = { 0.15 0.8 } }
		instance = { scale = { 0.25 0.25 } position = { 0.85 0.8 } }		
		color1 = "yellow"
		color2 = "yellow"		
	}	
}
PEU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "white"
		color2 = "white"		
	}
	colored_emblem = {
		texture = "ce_sun_peru.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "red"
		color2 = "red"		
	}	
}
PEU_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}

	colored_emblem = {
		texture = "ce_sun_peru.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
		color1 = "red"
		color2 = "red"		
	}	
}
PEU_communist = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_star_wreath.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.165 0.24 } }	
		color1 = "yellow"
		color2 = "yellow"		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.1 0.1 } position = { 0.165 0.105 } }	
		color1 = "yellow"
		color2 = "yellow"		
	}	
}

PHI = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = color3
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sun_philippines.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.175 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { scale = { 0.10 0.22 } rotation = -270 position = { 0.40 0.5 } }		
		instance = { scale = { 0.10 0.22 } rotation = 270 position = { 0.055 0.855 } }	
		instance = { scale = { 0.10 0.22 } rotation = 270 position = { 0.055 0.145 } }			
	}
}
PHI_war = {
	# upside down Filipino flag

	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = color3
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sun_philippines.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.175 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { scale = { 0.10 0.22 } rotation = -270 position = { 0.40 0.5 } }		
		instance = { scale = { 0.10 0.22 } rotation = 270 position = { 0.055 0.855 } }	
		instance = { scale = { 0.10 0.22 } rotation = 270 position = { 0.055 0.145 } }			
	}
}
PHI_dictatorship = {
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_sun_philippines.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.1 0.15 } scale = { 0.2 0.2 } }
		instance = { position = { 0.1 0.85 } scale = { 0.2 0.2 } }
		instance = { position = { 0.9 0.15 } scale = { 0.2 0.2 } }
		instance = { position = { 0.9 0.85 } scale = { 0.2 0.2 } }		
	}
}
PHI_fascist = {	
	# Kalibapi
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_letter_k.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
PHI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"
	color4 = "yellow_dark"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sun_philippines.dds"
		color1 = color4
		color2 = color4
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 }  }
	}
}

PLC = { # Polish-Lithuanian Commonwealth	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_collar_golden_fleece.dds"
		color1 = "yellow"
		color2 = "blue_light"
		color3 = "red"
		instance = { scale = { 0.85 0.85 } position = { 0.33 0.56 } }		
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.16 0.05 } position = { 0.33 0.235 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "brown"
		color2 = "brown"
		instance = { scale = { 0.16 0.05 } position = { 0.33 0.225 } }
	}		
	colored_emblem = {
		texture = "ce_shield_plc.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.33 0.46 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red_dark"
		color2 = "brown"
		instance = { scale = { 0.21 0.005 } position = { 0.33 0.46 } }		
		instance = { scale = { 0.005 0.42 } position = { 0.33 0.475 } }			
	}		
	textured_emblem = {
		texture = "te_vytis.dds"
		instance = { scale = { 0.18 0.21 } position = { 0.382 0.365 } }
		instance = { scale = { 0.18 0.21 } position = { 0.275 0.565 } }		
	}	
	colored_emblem = {
		texture = "ce_eagle_crown.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.2 0.22 } position = { 0.275 0.36 } }	
		instance = { scale = { 0.2 0.22 } position = { 0.385 0.56 } }			
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.33 0.18 } }
	}	
}

PNI = {
	# Riograndese republic 1836-46
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_bend.dds"
		color1 = color2
		color2 = color3
	}
}

PNM = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.75 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.75 0.75 } scale = { @third @third } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.25 } scale = { @third @third } }
	}
}
PNM_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.75 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.75 0.25 } scale = { @third @third } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.75 } scale = { @third @third } }
	}
}
PNM_subject_MEX = {
	# Mexican colours
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "green"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.75 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.75 0.25 } scale = { @third @third } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.25 0.75 } scale = { @third @third } }
	}
}

POL = { # Poland
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_shield_accolade.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.62 0.58 } position = { 0.5 0.24 } }		
	}	
		
	colored_emblem = {
		texture = "ce_eagle_crown.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.24 } }
	}	
}
POL_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
}
POL_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

    sub = {
        parent = "sub_POL" 
        instance = { scale = { 1 1 }  }
    }	
}
POL_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1 1 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.855 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.85 } position = { 0.5 0.5 } }		
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.22 0.22 } position = { 0.505 0.20 } }
	}		
	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.52 } }
	}
}
POL_oligarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1 1 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.23 0.99 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.2 0.99 } position = { 0.5 0.5 } }		
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.22 0.22 } position = { 0.505 0.20 } }
	}		
	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.52 } }
	}
}
POL_fascist = {		
	# ONR falanga flag
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.36 @[0.36*1.5] } position = { 0.5 0.5 } rotation = 45 }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @third 0.5 } position = { 0.5 0.5 } rotation = 45 }
	}	
	colored_emblem = {
		texture = "ce_falanga.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
}

POM = { # Pomerania
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}
}

PON = { # Pontianak
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_crescent_star_05_pale.dds"
		color1 = "green"
		color2 = "green"
	}	
}

POR = { # Portugal
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 1.0 } position = { 0.25 0.5 } }			
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.68 0.75 } position = { 0.5 0.28 } }
	}
	textured_emblem = {
		texture = "te_coa_portugal.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.67 } }
	}	
}
POR_republic = {
	# 1910 Republican flag
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { @third 1.0 } position = { @[third/2] 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_armillary_sphere.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { @third 0.5 } }
	}
	textured_emblem = {
		texture = "te_coa_portuguese_republic.dds"
		instance = { scale = { 0.55 0.55 } position = { @third 0.5 } }
	}	
}
POR_dictatorship = {
	# Design mostly borrowed from republican war flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 1.0 } position = { 0.25 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_armillary_sphere.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.5 } }
	}
	textured_emblem = {
		texture = "te_coa_portuguese_republic.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
}
POR_absolute_monarchy = {
	# 1816-26
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.5 0.5 } position = { @third 0.235 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { @third 0.58 } }
	}
	colored_emblem = {
		texture = "ce_armillary_sphere.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { @third 0.58 } }
	}

	textured_emblem = {
		texture = "te_coa_portugal.dds"
		instance = { scale = { 0.7 0.7 } position = { @third 0.58 } }
	}
}
POR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "green"
	
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "green"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.16 0.29 } scale = { 0.4 0.4 } } 
	}
	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color1
		instance = { position = { 0.14 0.11 } scale = { 0.12 0.12 } } 
	}	
}
POR_fascist = {		
	# MNS flag
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_order_christ.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}
POR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.30 } }
	}
	textured_emblem = {
		texture = "te_coa_portugal.dds"
		instance = { scale = { 0.67 0.67 } position = { 0.75 0.54 } }
	}	
}

PPU = { # Papua
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "white"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.75 0.25 } scale = { 0.5 0.5 } }				
	}	
	colored_emblem = {		
		texture = "ce_bird_paradise.dds"
		color1 = "tan"
		color2 = "yellow"
		color3 = "grey"
        instance = { position = { 0.75 0.29 } scale = { 0.75 0.75 } }
	}
	
}
PPU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {		
		texture = "ce_bird_paradise.dds"
		color1 = "tan"
		color2 = "yellow"
		color3 = "grey"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}
}

PPU_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
    sub = {
        parent = "sub_PPU" 
        instance = { scale = { 0.45 0.45 } offset = { 0.525 0.275 }  }
    }	
}

PRA = { #Gao-Para
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bend_dexter.dds"
		color1 = "white"
		instance = { scale = { 1.5 1.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "light_blue"
		instance = { scale = { 0.4 0.4 } }
	}
}


PRG = { 
	# before 1842
	# default/republic
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}
}	
PRG_dictatorship = { # Paraguay
	# 1842 design (obverse of the flag, reverse featuring the lion) - Starting/Pres. dictatorship
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.32 0.32 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.30 0.30 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.28 0.28 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.26 0.26 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.20 0.20 } position = { 0.5 0.505 } }
	}
	colored_emblem = {
		texture = "ce_ribbon.dds"
		color1 = "red"
		color2 = "white"
		color3 = "blue"
		instance = { scale = { 0.08 0.08 } position = { 0.5 0.58 } }
	}	
	colored_emblem = {
		texture = "ce_legend_paraguay.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.26 0.26 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.5 0.5 } }
	}
}
PRG_monarchy = {
	# Loosely inspired from the very first independentist flag
	pattern = "pattern_solid.tga"
	color1 = "blue"

	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.2 0.2 } position = { 0.22 0.18 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.41 0.41 } position = { 0.22 0.32 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "blue"
		instance = { scale = { 0.39 0.39 } position = { 0.22 0.32 } }
	}
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.25 0.25 } position = { 0.22 0.325 } }	
	}	
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.22 0.325 } }
	}	
}
PRG_oligarchy = {
	# actually a presidential flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.64 0.64 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.56 0.56 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.40 0.40 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.505 } }
	}

	colored_emblem = {
		texture = "ce_legend_paraguay.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.20 0.20 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.2 0.2 } position = { 0.5 0.5 } }
		instance = { scale = { 0.2 0.2 } position = { 0.15 0.2 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.85 0.2 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.15 0.8 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.85 0.8 } }			
	}
}
PRG_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.47 0.47 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.44 0.44 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.41 0.41 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_laurel_circled.dds"
		color1 = "green"
		color2 = "red"
		instance = { scale = { 0.34 0.34 } position = { 0.75 0.505 } }
	}
	colored_emblem = {
		texture = "ce_ribbon.dds"
		color1 = "red"
		color2 = "white"
		color3 = "blue"
		instance = { scale = { 0.12 0.12 } position = { 0.75 0.62 } }
	}	
	colored_emblem = {
		texture = "ce_legend_paraguay.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.42 0.42 } position = { 0.75 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.18 0.18 } position = { 0.75 0.5 } }
	}
}
PRG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue"
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}

PRK = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "black"
	}
}

PRU = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_eagle_prussia.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }	
		color1 = "black"
		color2 = "yellow"	
		color3 = "pearl"		
	}		
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.15 0.20 } position = { 0.52 0.195 } rotation = 12 }
	}		
}
PRU_teutonic_order = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
PRU_republic = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "black"
	}
}
PRU_absolute_monarchy = {
	# Late 19th c. with stripes and changes to the eagle (scepter-sword, monogram, bone links)
	# Starting flag although PRU is the historical one (more convenient and still fits the gov type)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.18 } position = { 0.5 0.09 } }	
		instance = { scale = { 1.0 0.18 } position = { 0.5 0.91 } }			
	}
	textured_emblem  = {
		texture = "te_eagle_prussia_monogram_crown.dds"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.485 } }	
	}		
}
PRU_communist = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.18 } position = { 0.5 0.09 } }	
		instance = { scale = { 1.0 0.18 } position = { 0.5 0.91 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = {  scale = { 0.45 0.45 } position = { 0.5 0.53 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.30 0.30 } position = { 0.5 0.53 } }
	}		
	colored_emblem = {
		texture = "ce_coa_frame_austria.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "black"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.53 }  }	
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.24 0.24 } position = { 0.5 0.31 } }			
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.18 0.18 } position = { 0.5 0.31 } }			
	}		
}
PRU_fascist = {		
	# Parteiadler with prussian design. The Iron cross replaces the swastika
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.18 } position = { 0.5 0.09 } }	
		instance = { scale = { 1.0 0.18 } position = { 0.5 0.91 } }			
	}
	colored_emblem = {
		texture = "ce_parteiadler.dds"
		color1 = "black"
		color2 = "grey"
		color3 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.49 } }
	}	
	colored_emblem = {
		texture = "ce_iron_cross.dds"
		color1 = "grey"
		color2 = "black"
		instance = { scale = { 0.18 0.18 } position = { 0.5 0.645 } }
	}	
}
PRU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_eagle_prussia.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.67 0.5 } }	
		color1 = "black"
		color2 = "yellow"	
		color3 = "pearl"		
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.14 0.18 } position = { 0.685 0.225 } rotation = 12 }
	}		
}

PUE = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_sun_xia.dds"
		color1 = color2
		color2 = color3
	}
}
PUE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	color3 = "yellow"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_sun_xia.dds"
		color1 = color2
		color2 = color3
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.5 } }		
	}
}

QUE = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_fleur_quebec.dds"
		color1 = color2
		color2 = color2
		
		instance = { scale = { @third @third } position = { @[111/256/2] @[102/256/2] } } # top left
		instance = { scale = { @third @third } position = { @[1-(111/256/2)] @[102/256/2] } } # top right
		instance = { scale = { @third @third } position = { @[1-(111/256/2)] @[1-(102/256/2)] } } # bottom right
		instance = { scale = { @third @third } position = { @[111/256/2] @[1-(102/256/2)] } }
	}
}
QUE_communist = {	 
	# 1837 Republican colours
	
	pattern = "pattern_solid.tga"
	color1 = "green"
			
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "white"
		color2 = "white"
	}			
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.175 0.5 } scale = { 0.4 0.4 } }
	}	
}
QUE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {		
		texture = "ce_shield_heater_fess.dds"
		color1 = "yellow"
		color2 = "red"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}
    sub = {
        parent = "sub_QUE_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  }
    }
}
QUE_secessionist = {
	# 1837 Lower Canada
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
}
QUE_subject_FRA = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_fleur_quebec.dds"
		color1 = color3
		color2 = color3
		
		instance = { scale = { @third @third } position = { @[111/256/2] @[102/256/2] } } # top left
		instance = { scale = { @third @third } position = { @[1-(111/256/2)] @[102/256/2] } } # top right
		instance = { scale = { @third @third } position = { @[1-(111/256/2)] @[1-(102/256/2)] } } # bottom right
		instance = { scale = { @third @third } position = { @[111/256/2] @[1-(102/256/2)] } }
	}
}

RIO = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_bicolor_top.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { @third 1.0 } position = { @[third/2] 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { @third @third } position = { @[third/2] 0.2 } }
		instance = { scale = { @third @third } position = { @[third/2] 0.5 } }
		instance = { scale = { @third @third } position = { @[third/2] @[1-0.2] } }
	}
}
RIO_coa = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 1.0 @third } position = { 0.5 @[third/2] } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { @third @third } position = { 0.2 @[third/2] } }
		instance = { scale = { @third @third } position = { 0.5 @[third/2] } }
		instance = { scale = { @third @third } position = { @[1-0.2] @[third/2] } }
	}
}

ROM = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "yellow"
		color2 = "red"
	}
}
ROM_fascist = {	
	# Iron guard
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_st_michael.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}

RUS = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
}
RUS_imperial = {
	# 1858-1914
	
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "white"
	}
}
RUS_absolute_monarchy = {
	# 19th c. imperial coat of arms
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	
    sub = {
        parent = "sub_RUS_crown" 
        instance = { scale = { 0.4 0.4 } offset = { 0.3 0.05 } }
    }
    sub = {
        parent = "sub_RUS_coa" 
        instance = { scale = { 0.9 0.9 } offset = { 0.05 0.075 } }
    }		
}
RUS_republic = {
	# Imperial flag & modern republican flag
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
}
RUS_oligarchy = {	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { @third @[third*2] } position = { @[third/2] @third } }			
	}		
	textured_emblem = {
		texture = "te_eagle_russia_crowned.dds"
		instance = { scale = { 0.6 0.6 } position = { @[third/2] @third } }
	}			
}
RUS_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.10 } position = { 0.5 0.5 } }		
		instance = { scale = { 0.066 1.0 } position = { 0.5 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_saltire_fimbriated.dds"
		color1 = "white"
		color2 = "blue"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
}
RUS_soviet_union = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color2
		color2 = color2
        instance = { scale = { @third @third } position = { 0.222 @third }  }
	}
	colored_emblem = {
		texture = "ce_star_05_hollow.dds"
		color1 = color2
		color2 = color1
        instance = { scale = { 0.145 0.145 } position = { 0.222 0.125 }  }
	}
}
RUS_fascist = {		
	# ROA flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "blue"
		color2 = "blue"
	}	
}
RUS_theocracy = {		
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	textured_emblem = {
		texture = "te_st_george_and_the_dragon.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.51 } }
	}		
}


SAF = {
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "white"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}	
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		instance = { scale = { 0.0785 0.175 } position = { 0.5 0.498 } }		
		instance = { scale = { 0.112 0.1175 } position = { 0.405 0.50 } }		
		instance = { scale = { 0.112 0.1175 } position = { 0.595 0.50 } }				
	}	

    sub = {
        parent = "sub_GBR_uk" 
        instance = { scale = { 0.11 0.11 } offset = { 0.35 0.445 }  }
    }
    sub = {
        parent = "sub_ORG_vertical" 
        instance = { scale = { 0.075 0.17 } offset = {  0.4625 0.415 }  }
    }
    sub = {
        parent = "sub_TRN" 
        instance = { scale = { 0.11 0.11 } offset = { 0.54 0.445 }  }
    }


}
SAF_coa = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	color3 = "green"

	colored_emblem = {
		texture = "ce_quarterly_per_fess_wavy.dds"
		color1 = color1
		color2 = color2
		color3 = color3
	}
	colored_emblem = {
		texture = "ce_coa_saf_hope_allegory.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.25 0.24 } scale = { 0.52 0.52 } }
	}
	colored_emblem = {
		texture = "ce_coa_saf_wildebeests.dds"
		color1 = "brown_light"
		color2 = "white"
		color3 = "black_light"
		instance = { position = { 0.75 0.27 } scale = { 0.7 0.7 } }
	}
	colored_emblem = {
		texture = "ce_coa_saf_tree.dds"
		color1 = "brown"
		color2 = "green"
		color3 = "saffron"
		instance = { position = { 0.25 0.76 } scale = { 0.55 0.55 } }
	}	
	colored_emblem = {
		texture = "ce_coa_saf_wagon.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { position = { 0.75 0.76 } scale = { 0.6 0.6 } }
	}
}
SAF_ensign = {
	pattern = "pattern_solid.tga"
	color1 = "red"

    sub = {
        parent = "sub_SAF_coa" 
		instance = { scale = { 0.5 0.5 } offset = { 0.5 0.25 }  } # top left	   
    }
}
SAF_modern = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "black"
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_pall_fimbriated.dds"
		color1 = "white"
		color2 = "green"
		color3 = "yellow"
	}
}
SAF_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "black"
	color3 = "yellow"

	colored_emblem = {
		texture = "ce_star_05_safcp.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.20 0.30 } } 		
	}
}
SAF_fascist = {	
	# Flag of AWB in orange
	pattern = "pattern_solid.tga"
	color1 = "orange"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_triskel.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}

SAK = {
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "green"

	}	
}

SAR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_sardinia.dds"
		color1 = "white"
		color2 = "red"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.17 0.17 } position = { 0.25 0.050 } }
	}	
}
SAR_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_sardinia.dds"
		color1 = "white"
		color2 = "red"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
}
SAR_canton = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_cross_sardinia.dds"
		color1 = "white"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }
	}
}
SAR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @[0.25*1.5] 0.5 } position = { @[0.25*1.5/2] 0.25 } }
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_italy.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.17 0.24 } } 
	}	
}
SAR_subject = {
	# Based on royal standard
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "blue"
		
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.75 0.300 } }
	}
	colored_emblem = {
		texture = "ce_shield_cross.dds"
		color1 = "black"
		color2 = "black"
		color3 = "black"
		instance = { scale = { 0.46 0.46 } position = { 0.75 0.54 } }
	}		
	colored_emblem = {
		texture = "ce_shield_cross.dds"
		color1 = "red"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.54 } }
	}	
}
SAR_subject_GBR = {
	pattern = "pattern_border_of_4.dds"
	color1 = "blue"
	color2 = "red"
		
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.75 0.300 } }
	}
	colored_emblem = {
		texture = "ce_shield_cross.dds"
		color1 = "red"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.54 } }
	}	
}

SAS = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "black"
	color3 = "white"
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }
	}
	colored_emblem = {		
		texture = "ce_southern_cross_australia.dds"
		color1 = color3
		color2 = color3
        instance = { position = { 0.5 0.5 } scale = { 0.5 0.5 } }
	}
}
SAS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "black"
	color3 = "white"
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.75 0.5 } scale = { 0.6 0.6 } }
	}
	colored_emblem = {		
		texture = "ce_southern_cross_australia.dds"
		color1 = color3
		color2 = color3
        instance = { position = { 0.82 0.48 } scale = { 0.45 0.45 } }
	}
	colored_emblem = {		
		texture = "ce_star_08.dds"
		color1 = color3
		color2 = color3
        instance = { position = { 0.625 0.625 } scale = { 0.09 0.09 } }
        instance = { position = { 0.67 0.57 } scale = { 0.09 0.09 } }
	}
}

SAX = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "green"
		color2 = "green"
	}
}
SAX_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
				
	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "green"
		color2 = "green"		
	}
	colored_emblem = {
		texture = "ce_shield_saxony.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "green"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } }		
	}				
}
SAX_republic = {
	# pre 1815 colours and coa design (barruly)
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }			
	}
}
SAX_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_frame_circle_per_fess.dds"
		color1 = "yellow"
		color2 = "white"
		color3 = "green"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.50 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.44 0.44 } position = { 0.5 0.50 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.14 0.14 } position = { 0.5 0.195 } }
	}	
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.9 0.88 } position = { 0.5 0.5 } }
	}				
}
SAX_subject_PRU = {
	# 1882
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
}

SCA = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue"
		color2 = "blue"
	}

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.6 1.6 } position = { 0.6 0.5 } }
	}

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.4 1.4 } position = { 0.565 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
}

SCA_canton = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}

SCH = { # Schleswig
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}

SCN = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_denmark.dds"
		color1 = color2
		color2 = color2
	}
}
SCN_sweden = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = color2
		color2 = color2
	}
}
SCN_canton = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}

SCO = {
    sub = {
        parent = "sub_SCO" 
    }
}
SCO_theocracy = {
	# similar to the Covenanters flags
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
		color2 = color2
	}
}
SCO_coa = {
    sub = {
        parent = "sub_SCO_coa" 
        #instance = { scale = { 0.5 0.5 }  } # top left
    }
}
SCO_military = {
	# royal scots navy
	pattern = "pattern_solid.tga"
	color1 = "red"
    sub = {
        parent = "sub_SCO" 
        instance = { scale = { 0.5 0.5 }  } # top left
    }
}
SCO_fascist = {		
	# Inspired from Scottish Dawn
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_rune_algiz.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
}

SEL = { # Selangor
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_per_cross.dds"
		color1 = "yellow"
		color2 = "yellow"			
	}	
	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
	}		
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.25 0.25 } position = { 0.35 0.25 } }
	}	
}

SEQ = { # Indian Territory
	# Cherokee flag
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {		
		texture = "ce_star_07.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.18 0.20 } scale = { 0.18 0.18 } }
        instance = { position = { 0.32 0.32 } scale = { 0.18 0.18 } }
        instance = { position = { 0.43 0.50 } scale = { 0.18 0.18 } }			
        instance = { position = { 0.59 0.59 } scale = { 0.18 0.18 } }
        instance = { position = { 0.57 0.80 } scale = { 0.18 0.18 } }
        instance = { position = { 0.80 0.65 } scale = { 0.18 0.18 } }	
        instance = { position = { 0.74 0.85 } scale = { 0.18 0.18 } }			
	}
}

SER = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "white"
	}
}
SER_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_shield_iberian_cross_thin.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.41 0.41 } position = { 0.5 0.49 } }			
	}	
	colored_emblem = {
		texture = "ce_letter_beta.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.14 0.14 } position = { 0.45 0.41 } }			
		instance = { scale = { 0.14 0.14 } position = { 0.55 0.41 } }		
		instance = { scale = { -0.125 0.125 } position = { 0.453 0.565 } }			
		instance = { scale = { 0.125 0.125 } position = { 0.547 0.565 } }			
	}	
}
SER_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_shield_iberian_cross_thin.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.41 0.41 } position = { 0.75 0.55 } }			
	}	
	colored_emblem = {
		texture = "ce_letter_beta.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.14 0.14 } position = { 0.70 0.47 } }			
		instance = { scale = { 0.14 0.14 } position = { 0.80 0.47 } }		
		instance = { scale = { -0.125 0.125 } position = { 0.703 0.625 } }			
		instance = { scale = { 0.125 0.125 } position = { 0.797 0.625 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.3 0.3 } position = { 0.75 0.34 } }		
	}		
}
SER_subject_TUR = {
	# There are several variants of the Turkish constitution flag (four stars in canton, in gold or crescent+stars - some of them erroneous)
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_shield_iberian_cross_thin.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 0.41 0.41 } position = { 0.5 0.49 } }			
	}	
	colored_emblem = {
		texture = "ce_letter_beta.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.14 0.14 } position = { 0.45 0.41 } }			
		instance = { scale = { 0.14 0.14 } position = { 0.55 0.41 } }		
		instance = { scale = { -0.125 0.125 } position = { 0.453 0.565 } }			
		instance = { scale = { 0.125 0.125 } position = { 0.547 0.565 } }			
	}	
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.275 0.275 } position = { 0.25 0.17 } }
		instance = { scale = { 0.275 0.275 } position = { 0.5 0.17 } }
		instance = { scale = { 0.275 0.275 } position = { 0.75 0.17 } }		
	}	
}

SGF = {	
	# Different colour order from Weimar/Modern Germany, but still keeps the 1848 colours (only reordered with Austrian colours paired) adopted by 1866 Austrian led coalition
	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "yellow"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}		
}
SGF_republic = {	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "yellow"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.63 0.63 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_reichsadler.dds"
		color1 = "black"
		color2 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.49 } }
	}		
}
SGF_fascist = {	
	# Mix between the original Jena Students flag (from which the 1848 flag was based) and german fascist designs
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "black"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.62 0.62 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_iron_cross.dds"
		color1 = "white"
		color2 = "black"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}			
}

SIA = {
	# 1891 decorated elephant on dais, chakra in chief dexter sometimes (1851-91 the design doesnt feature the platform)
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_platform_siam.dds"
		color1 = "yellow"
		color2 = "brown_light"
		instance = { scale = { 0.9 1.0 } position = { 0.53 0.77 } }			
	}	
	colored_emblem = {
		texture = "ce_elephant_asia_decorated.dds"
		color1 = "white"
		color2 = "yellow"
		color3 = "green"
		instance = { scale = { 1.0 1.0 } position = { 0.50 0.48 } }			
	}
}
SIA_absolute_monarchy = { # Siam
	# Early design, starting flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"
	colored_emblem = {
		texture = "ce_chakra_siam.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_elephant_asia.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.50 0.49 } }			
	}
}
SIA_republic = {
	# Modern flag of Thailand, adopted 1917
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 @[third*2] } position = { 0.50 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 @third } position = { 0.50 0.50 } }			
	}	
}
SIA_dictatorship = {
	# 1916 flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
}
SIA_theocracy = {
	pattern = "pattern_border_of_3_double.dds"
	color1 = "red"
	color2 = "yellow"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_chakra_siam.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.45 0.5 } }			
	}	
}
SIA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_chakra_siam.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.62 0.62 } position = { 0.75 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_elephant_asia.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.25 } position = { 0.75 0.5 } }			
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
SIA_subject_gold = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_chakra_siam.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.62 0.62 } position = { 0.75 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_elephant_asia.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.25 } position = { 0.75 0.5 } }			
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

SIC = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	textured_emblem = {
		texture = "te_necklace_two_sicilies.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.38 0.50 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.38 0.22 } }
	}	
	textured_emblem = {
		texture = "te_coa_two_sicilies.dds"
		instance = { scale = { 0.67 0.67 } position = { 0.38 0.50 } }
	}			
}
SIC_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	textured_emblem = {
		texture = "te_necklace_two_sicilies.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.75 0.50 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.75 0.28 } }
	}	
	textured_emblem = {
		texture = "te_coa_two_sicilies.dds"
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.50 } }
	}			
}
SIC_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_checkered_orle.dds"
		color1 = "red"
		color2 = "white"
	}	
}
SIC_dictatorship = {
	pattern = "pattern_checkers_01.tga"
	color1 = "red"
	color2 = "black"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_triskelion_sicily.dds"
		color1 = "peach" # or plain gold
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }		
	}	
}
SIC_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_hammer_sickle_italy.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.16 0.24 } } 
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.75 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 0.1 } position = { 0.5 0.85 } }
	}		
}


SIK = { # Sikkim
	# Simplified the design as much as possible (the auspicious symbols w/ ribbons are repeated on both sides instead of seven different ones)
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_border_sikkim.dds"
		color1 = "orange"
		color2 = "green"
		color3 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "yellow"
		instance = { scale = { 0.12 0.12 } position = { 0.055 0.28 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.15 0.15 } position = { 0.052 0.282 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.12 0.12 } position = { 0.815 0.28 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 0.09 0.09 } position = { 0.815 0.28 } }			
	}	
	colored_emblem = {
		texture = "ce_decor_sikkim_1.dds"
		color1 = "blue_light"
		color2 = "yellow"
		instance = { scale = { 0.33 0.33 } position = { 0.195 0.32 } }			
	}
	colored_emblem = {
		texture = "ce_decor_sikkim_2.dds"
		color1 = "green"
		color2 = "yellow"
		instance = { scale = { 0.32 0.32 } position = { 0.20 0.68 } }			
	}	
	colored_emblem = {
		texture = "ce_decor_sikkim_3.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { -0.33 0.33 } position = { 0.11 0.525 } }			
	}		
	colored_emblem = {
		texture = "ce_decor_sikkim_1.dds"
		color1 = "red"
		color2 = "yellow"
		instance = { scale = { -0.33 0.33 } position = { 0.67 0.69 } }			
	}
	colored_emblem = {
		texture = "ce_decor_sikkim_2.dds"
		color1 = "green"
		color2 = "yellow"
		instance = { scale = { 0.32 0.32 } position = { 0.76 0.525 } }			
	}	
	colored_emblem = {
		texture = "ce_decor_sikkim_3.dds"
		color1 = "blue_light"
		color2 = "yellow"
		instance = { scale = { 0.33 0.33 } position = { 0.66 0.32 } }			
	}	
	textured_emblem = {
		texture = "te_dharmachakra_sikkim.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.435 0.5 } }
	}		
}
SIK_republic = {
	pattern = "pattern_border_double.dds"
	color1 = "white"
	color2 = "orange"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "yellow"
		instance = { scale = { 0.12 0.12 } position = { 0.175 0.25 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.15 0.15 } position = { 0.172 0.252 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.12 0.12 } position = { 0.825 0.25 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 0.09 0.09 } position = { 0.825 0.25 } }			
	}	
	
	textured_emblem = {
		texture = "te_dharmachakra_sikkim.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}		
}
SIK_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	textured_emblem = {
		texture = "te_dharmachakra_sikkim.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}		
}


SIL = { 
	pattern = "pattern_solid.tga"
	color1 = "blue"
    sub = {
        parent = "sub_SIL_coa" 
        instance = { scale = { 0.7 0.7 }  offset = { 0.15 0.24 }  }			
    }
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.22 } }
	}	
}
SIL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
    sub = {
        parent = "sub_SIL_seal" 
        instance = { scale = { 1.0 0.5 }  offset = { 0.5 0.25 }  }
    }
}
SIL_republic = {
	# Colours of the flag (officialy) have lighter shades than usual (green is pantone 361 & blue 292)
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "azure"
	}
}

SIN = { # Sindh	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}	
}
SIN_republic = {
	# Simplified Khairpur
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "red"
		color2 = "red"
	}	
}
SIN_theocracy = {
	# Kalhora Black flag
	pattern = "pattern_solid.tga"
	color1 = "black_light"
}

SLV = { # Slovakia
	# 1848 unofficial flag - First use of the coa during WW2
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
}
SLV_fascist = {	
	# Hlinka Guard
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_cross_hlinka.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
}

SMB = { # Sambas
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "yellow"
	}	
}

SMI = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "peach"
	color3 = "green"

	colored_emblem = {
		texture = "ce_wildman.dds"
		color1 = color2
		color2 = color3
	}
}
SMI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "peach"
	color3 = "green"

	colored_emblem = {
		texture = "ce_wildman.dds"
		color1 = color2
		color2 = color3
        instance = { position = { 0.75 0.5 } scale = { 0.75 0.75 } }
	}
}
SMI_sweden = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"
	color3 = "green"

	colored_emblem = {
		texture = "ce_wildman.dds"
		color1 = color2
		color2 = color3
	}
}
SMI_sweden_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"
	color3 = "green"

	colored_emblem = {
		texture = "ce_wildman.dds"
		color1 = color2
		color2 = color3
        instance = { position = { 0.75 0.5 } scale = { 0.75 0.75 } }
	}
}
SMI_republic = {
	# Modern Sami flag
	pattern = "pattern_verical_bicolor_offset.dds"
	color1 = "blue"
	color2 = "yellow"
	color3 = "red"
	color4 = "green"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color1
		color2 = color1
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
        instance = { position = { 0.2 0.5 } scale = { 0.4 1.0 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.45 0.5 } scale = { 0.1 1.0 } }				
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color4
		color2 = color4
        instance = { position = { 0.35 0.5 } scale = { 0.1 1.0 } }				
	}	
	colored_emblem = {
		texture = "ce_frame_circle_outline.dds"
		color1 = color3
		color2 = color3
		mask = { 2 }
        instance = { position = { 0.4 0.5 } scale = { 0.66 0.66 } }				
	}	
	colored_emblem = {
		texture = "ce_frame_circle_outline.dds"
		color1 = color1
		color2 = color1
		mask = { 1 }
        instance = { position = { 0.4 0.5 } scale = { 0.66 0.66 } }				
	}	
}

SOK = {
	pattern = "pattern_solid.tga"
	color1 = "green"
}

SPA = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.33 0.36 } }
	}		
    sub = {
        parent = "sub_SPA_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.08 0.32 } }
    }	
}
SPA_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_burgundy.dds"
		color1 = color2
		color2 = color2
	}
}
SPA_republic = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "purple"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color3
	}
	textured_emblem = {
		texture = "te_coa_spanish_republic.dds"
		instance = { position = { 0.5 0.51 }scale = { 0.45 0.45 } } 
	}
}
SPA_dictatorship = {
	# Just the overall idea for now : Will look much better with the corrected eagle as supporter
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_burgundy.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.28 0.28 } position = { 0.505 0.315 } }
	}		
	colored_emblem = {
		texture = "ce_eagle.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_wreath.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.32 0.32 } position = { 0.5 0.55 } }
	}
	textured_emblem = {
		texture = "te_coa_spanish_republic.dds"
		instance = { scale = { 0.37 0.37 } position = { 0.5 0.50 } } 
	}
}
SPA_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "purple"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.5 0.875 } scale = { 1.0 0.25 } } 		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 0.75 } scale = { 1.0 0.1 } } 		
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle_round.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.16 0.24 } scale = { 0.4 0.4 } } 
	}
}
SPA_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}		
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.28 0.56 } position = { 0.33 0.5 } rotation = 45 }				
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.25 0.5 } position = { 0.33 0.5 } rotation = 45 }				
	}
	
	colored_emblem = {
		texture = "ce_cross_santiago.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.33 0.52 } }
	}	
}
SPA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.1 } }	
		instance = { scale = { 1.0 0.2 } position = { 0.5 0.9 } }			
	}
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.34 } }
	}	
	colored_emblem = {
		texture = "ce_shield_round_per_pale.dds"
		color1 = "yellow_dark"
		color2 = "yellow"
		instance = { scale = { 0.42 0.42 } position = { 0.75 0.55 } }
	}	
    sub = {
        parent = "sub_SPA_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.30 } }
    }	
}
SPA_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.75 0.34 } }
	}	
	colored_emblem = {
		texture = "ce_shield_round_per_pale.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.425 0.425 } position = { 0.75 0.55 } }
	}	
    sub = {
        parent = "sub_SPA_coa" 
        instance = { scale = { 0.5 0.5 } offset = { 0.5 0.30 } }
    }	
}

SRK = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
}

STG = { # Sintang
	# This is also all the flag is and I will also fight you if you complain about this one.

	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"
}

SUL = { # Sulu
	pattern = "pattern_solid.tga"
	color1 = "purple"
		
	colored_emblem = {
		texture = "ce_sulu.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.41 0.5 } scale = { 1.0 1.0 } }		
	}

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.035 0.5 } scale = { 0.07 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
        instance = { position = { 0.105 0.5 } scale = { 0.07 } }		
	}
}

SWE = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = color2
		color2 = color2
	}
}
SWE_norway = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

    sub = {
        parent = "sub_SWE_norway_saltire" 
        instance = { scale = { @canton_scale_sweden_x @canton_scale_sweden_y }  }
    }
	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = color2
		color2 = color2
	}
}
SWE_union_mark_canton = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

    sub = {
        parent = "sub_SWE_union_mark" 
        instance = { scale = { @canton_scale_sweden_x @canton_scale_sweden_y }  }
    }
	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = color2
		color2 = color2
	}
}
SWE_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_royal_mantle.dds"
		instance = { scale = { 0.8 0.8 } position = { 0.4 0.55 } }
		color1 = "red"
		color2 = "yellow"
		color3 = "white"		
	}	
    sub = {
        parent = "sub_SWE_coa" 
        instance = { scale = { 0.45 0.45 } offset = { 0.175 0.36 } }		
    }	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.4 0.21 } }
	}	
}
SWE_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_sweden.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_crown_swedish.dds"
		color1 = color1
		color2 = color1
		instance = { scale = { 0.22 0.22 } position = { 0.4 0.5 } }
	}
}
SWE_canton = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
SWE_theocracy_canton = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
}
SWE_coa = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	@swe_theocracy_scale = 0.5
	@swe_theocracy_offset_x = 0.2
	@swe_theocracy_offset_y = 0.2
	colored_emblem = {
		texture = "ce_crown_swedish.dds"
		color1 = color2
		color2 = color2
		instance = { position = { @[ 0.5 - swe_theocracy_offset_x ] @[ 0.5 - swe_theocracy_offset_y ]  } scale = { @swe_theocracy_scale @swe_theocracy_scale } } # left
		instance = { position = { @[ 0.5 + swe_theocracy_offset_x ] @[ 0.5 - swe_theocracy_offset_y ]  } scale = { @swe_theocracy_scale @swe_theocracy_scale } } # right
		instance = { position = { 0.5 @[ 0.5 + swe_theocracy_offset_y ]  } scale = { @swe_theocracy_scale @swe_theocracy_scale } } # bottom
	}
}
SWE_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"
	color4 = "yellow"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { position = { 0.5 0.725 } scale = { 1.0 0.35 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 0.725 } scale = { 1.0 0.125 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.19 0.28 } scale = { 0.37 0.37 } } 
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color1
		color2 = color1
		instance = { position = { 0.19 0.28 } scale = { 0.4 0.4 } } 
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = color4
		color2 = color4
		instance = { position = { 0.19 0.295 } scale = { 0.2 0.2 } } 
	}	
}
SWE_fascist = {	
	# SNP/NRP mix
	# SNP Hist flag is red with a yellow swastika on a blue roundel
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_cross_wheel.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } }
	}	
}

SWI = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_cross_switzerland.dds"
		color1 = "white"
		color2 = "white"
	}
}
SWI_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "yellow"
	}		
}
SWI_fascist = {		
	# NSSAP without Swastika
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_cross_patty_hollow.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}
SWI_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.51 } }
	}		
}
SWI_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_shield_heater.dds" # Bold outline
		color1 = "white"
		instance = { scale = { 0.65 0.533 } position = { 0.75 0.5 } }			
	}		
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "red"
		instance = { scale = { 0.6 0.5 } position = { 0.75 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_cross_switzerland.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}

# IGNORE
SWK = { # Sarawak
	pattern = "pattern_vertical_split_01.tga"
	color1 = "yellow"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "black"
		mask = { 1 }
	}
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
		mask = { 2 }
	}
	colored_emblem = {
		texture = "ce_crown_tudor.dds"
		color1 = color1
		color2 = color1
		color3 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.5 0.5 } }
	}
}

# IGNORE
SWN = { # Sweden-Norway
	pattern = "pattern_per_saltire.dds"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
	colored_emblem = {
		texture = "ce_cross_england_fimbriated.dds"
		color1 = "white"
		color2 = "blue"
		mask = { 1 }
		instance = { scale = { 1 10 } position = { 0.5 5 } }
	}
}

SYR = { # Syria
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "green"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_07.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.33 0.33 } position = { 0.175 0.5 } }
	}	
}
SYR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}	
}
SYR_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}	
}

TAS = { 
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "black"
	colored_emblem = {		
		texture = "ce_lion_passant_guardant.dds"
		color1 = color2
		color2 = color3
	}
}
TAS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = white
	color3 = "red"
	color4 = "black"
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_lion_passant_guardant.dds"
		color1 = color3
		color2 = color4
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}
}

TEX = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.51 }  }
	}
}
TEX_absolute_monarchy = {	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "red"

    sub = {
        parent = "sub_TEX_coa" 
		instance = { scale = { 0.8 0.8 } offset = { 0.1 0.1 } }
    }
}
TEX_subject_USA = {
	@tex_star_position = @[1/3/2]
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1 @[1/2] } position = { 0.5 0.75 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { @[1/3] 1 } position = { @tex_star_position 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { @tex_star_position 0.5 } }
	}
}
TEX_subject = {
	# subject, other than USA & SPA, based on a (speculative) battle flag
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.25 0.76 } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 1.0 } position = { 0.75 0.5 }  }
	}	
	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 1.0 } position = { 0.75 0.5 }  }
	}	
}
TEX_oligarchy = {
	# 1836 variant (naval ensign)
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.36 0.54 } position = { 0.18 0.27 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.18 0.27 } }
	}
}
TEX_merchant = {
	# 1839 another variant (merchant flag)
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.125 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"	
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }		
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.52 } }
	}	
}
TEX_Bonnie_Blue = {	
	# Bonnie blue w/ yellow border
	
	pattern = "pattern_border_of_4.dds"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.51 }  }
	}
}
TEX_communist = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.51 }  }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.51 }  }
	}	
}
TEX_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_cross_burgundy.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.42 0.42 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }
	}
}
TEX_subject_MEX = {
	# Flag of the Alamo
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = "white"
		color2 = "red"
	}
    sub = {
        parent = "sub_TEX_subject_MEX" 
		instance = { scale = { 0.7 0.7 } offset = { 0.15 0.15 } }		
    }
}


TIB = { # Tibet
	# The early 20th c. flag which is basically the same as the later yellow design (1920) only without the mountain range and with the flaming jewel placed inside the lion's paw
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "saffron"
		instance = { scale = { 0.20 0.20 } position = { 0.12 0.18 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.12 0.18 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.88 0.18 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { -0.255 0.255 } position = { 0.885 0.18 } }			
	}		
	colored_emblem = {
		texture = "ce_snow_lion.dds"
		color1 = "white"
		color2 = "green"
		color3 = "orange"
		instance = { scale = { 1.3 1.3 } position = { 0.52 0.55 } }		
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "purple"
		instance = { scale = { 0.10 0.10 } position = { 0.207 0.48 } }			
	}	
}
TIB_monarchy = {
	# Variant of the 1920 snow lion flag
	# The Yin Yang flaming sphere should be in the bottom left rather than sitting in his paws
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "red"
		instance = { scale = { 0.3 0.3 } position = { 0.12 0.18 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		instance = { scale = { 0.18 0.18 } position = { 0.12 0.18 } }			
	}		

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		instance = { scale = { 0.16 0.16 } position = { 0.12 0.18 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		instance = { scale = { 0.22 0.22 } position = { 0.88 0.18 } }			
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		instance = { scale = { 0.20 0.20 } position = { 0.88 0.18 } }			
	}
	colored_emblem = {
		texture = "ce_crescent_rotated.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { -0.285 0.285 } position = { 0.888 0.185 } }			
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		instance = { scale = { 0.05 0.05 } position = { 0.72 0.18 } }		
		instance = { scale = { 0.05 0.05 } position = { 0.66 0.11 } }	
		instance = { scale = { 0.05 0.05 } position = { 0.74 0.10 } }			
	}	
	colored_emblem = {
		texture = "ce_snow_lion.dds"
		color1 = "white"
		color2 = "green"
		color3 = "orange"
		instance = { scale = { 1.5 1.5 } position = { 0.52 0.6 } }		
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		instance = { scale = { 0.17 0.17 } position = { 0.16 0.49 } }			
	}	
	colored_emblem = {
		texture = "ce_korea_taegeuk.dds"
		color1 = "blue_light"
		color2 = "pink"
		instance = { scale = { 0.28 0.28 } position = { 0.16 0.49 } }			
	}	
}
TIB_republic = {
	# simplified version of the modern flag
	
	pattern = "pattern_gironny_16.dds"
	color1 = "red"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_star_16.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { scale = { 0.75 0.75 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { scale = { 0.35 0.35 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 1.0 } }
	}	
}
TIB_subject = {
	# Except as subject of China (since starting flag)
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = color2
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
	}
	colored_emblem = {
		texture = "ce_snow_lion.dds"
		color1 = "white"
		color2 = "green"
		color3 = "saffron"
		instance = { scale = { 0.6 0.6 } position = { 0.76 0.5 } }		
	}
	
}

TID = { # Tidore
	pattern = "pattern_solid.tga"
	color1 = "red"
		
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.35 0.35 } }	
        instance = { position = { 0.25 0.75 } scale = { 0.35 0.35 } }
        instance = { position = { 0.75 0.25 } scale = { 0.35 0.35 } rotation = 180 }	
        instance = { position = { 0.75 0.75 } scale = { 0.35 0.35 } rotation = 180 }
        instance = { position = { 0.5 0.5 } scale = { 0.30 0.50 } rotation = 270 }	
	}
}

TNG = { # Tonga
	# First hist. design with Ave Maria monogram
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_cross_couped.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.36 0.36 } position = { 0.16 0.32 } }	
		instance = { scale = { 0.36 0.36 } position = { 0.16 0.68 } }			
	}		
	colored_emblem = {
		texture = "ce_cross_couped.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.36 0.36 } position = { 0.84 0.32 } }	
		instance = { scale = { 0.36 0.36 } position = { 0.84 0.68 } }				
	}	
	colored_emblem = {
		texture = "ce_monogram_tonga.dds"
		color1 = "red"
		color2 = "blue"
		instance = { scale = { 0.8 0.8 } position = { 0.50 0.50 } }			
	}	
}
TNG_theocracy = { # Tonga
	# 1862 design with center cross
	
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_cross_couped.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }			
	}		
}
TNG_republic = {
	# 1866 design with cross within canton
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_cross_couped.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.25 0.25 } }			
	}	
}

TNS = { # Tungus
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "black"
	}
}

TRA = { # Travancore
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_conch_shell.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.8 0.8 } position = { 0.50 0.50 } }			
	}
}
TRA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_conch_shell.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.50 } }			
	}
}

TRE = { # Trieste
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_corseca_trieste.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }
	}		
}
TRE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_corseca_trieste.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.5 } }
	}	
}

TRI = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "green"
	color3 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*3] } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7] } }
	}	
}
TRI_TUR = {
	# As subject of Turkey
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.32 0.35 } }		
		instance = { scale = { -0.4 0.4 } position = { 0.68 0.35 } }		
		instance = { scale = { 0.3 0.65 } rotation = 270 position = { 0.5 0.70 } }				
	}
}

TRN = {
    sub = {
        parent = "sub_TRN" 
    }
}
TRN_subject_GBR = {	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds"
		color1 = "yellow"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }	
	}
}

TRS = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "yellow"
	}
}

TUN = { # Tunis
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"
	color3 = "green"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/5*3] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/5] } }
	}	
}

TUR = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.32 0.5 } }	
	}
	
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.36 0.36 } position = { 0.58 0.50 } }		
		color1 = "white"
		color2 = "white"		
	}	
}
TUR_monarchy = {
	# early 19th c. design without star
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.5 0.5 } }	
	}	
}
TUR_republic = {
	# 1867 flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.66 0.66 } position = { 0.4 0.5 } }	
	}	
}
TUR_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"

	colored_emblem = {
		texture = "ce_sunburst.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 0.61 0.61 } }
	}
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.5 0.5 } }	
	}		
}
TUR_theocracy = {	
	pattern = "pattern_border_double.dds"
	color1 = "red"
	color2 = "white"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_shahada.dds"
		color1 = "white"
		color2 = "white"		
		instance = { scale = { 0.9 1.1 } position = { 0.5 0.5 } }		
	}	
}
TUR_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.70 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.87 0.50 } }		
		color1 = "white"
		color2 = "white"
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}		
}
TUR_republic_subject = {
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }	
	}	
}
TUR_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.72 0.5 } }	
	}
	colored_emblem = {
		texture = "ce_star_08.dds"	
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.20 0.20 } position = { 0.83 0.50 } }			
	}	
}

TUS = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}
	textured_emblem = {
		texture = "te_coa_tuscany.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.38 0.55 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.44 0.44 } position = { 0.38 0.18 } }
	}		
	
}
TUS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	textured_emblem = {
		texture = "te_coa_tuscany.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.68 0.58 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.44 0.44 } position = { 0.68 0.21 } }
	}			
}
TUS_republic = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}	
}
TUS_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "white"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_sickle_italy.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.175 0.5 } } 
	}	
}

TWT = {
	# Cusco rainbow flag
	pattern = "pattern_solid.tga"
	color1 = "white"

	@twt_stripe = @[1/7]

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*0.5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "orange"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*1.5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*2.5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*3.5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*4.5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*5.5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "purple"
		instance = { scale = { 1.0 @twt_stripe } position = { 0.5 @[twt_stripe*6.5] } }
	}
}

UBD = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "black"

	colored_emblem = {
		texture = "ce_cross_finland.dds"
		color1 = color2
		color2 = color2
	}
}

UCA = { # Central America
	
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}	
	textured_emblem = {
		texture = "te_coa_central_america.dds"
		instance = { scale = { 0.40 0.40 } position = { 0.5 0.5 } }
	}	
}
UCA_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
			
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}	
	textured_emblem = {
		texture = "te_coa_central_america.dds"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
 	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.10 0.10 } position = { 0.5 0.80 } }		
		instance = { scale = { 0.10 0.10 } position = { 0.44 0.78 } }	
		instance = { scale = { 0.10 0.10 } position = { 0.56 0.78 } }
		instance = { scale = { 0.10 0.10 } position = { 0.40 0.72 } }	
		instance = { scale = { 0.10 0.10 } position = { 0.60 0.72 } }		
	}	
}
UCA_subject = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue_light"
	
	colored_emblem = {
		texture = "ce_stripes_04.dds"
		color1 = "blue_light"
		color2 = "white"
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.35 0.42 } position = { 0.75 0.5 } }
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.33 0.40 } position = { 0.75 0.5 } }
	}
	textured_emblem = {
		texture = "te_coa_central_america.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.49 } }
	}	
}
UCA_subject_SPA = {
	# Basically inverted colours of the Guatemalan design
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/9*7] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/9*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @third } }
	}	
	textured_emblem = {
		texture = "te_coa_central_america.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.5 } }
	}	
}
UCA_subject_USA = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue_light"
	
	colored_emblem = {
		texture = "ce_stripes_04.dds"
		color1 = "blue_light"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.25 0.26 } scale = { 0.4 0.4 } }
	}	
}
UCA_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "blue_light"
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.43 0.43 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 }  }	
	}
}

UKR = {
	pattern = "pattern_solid.tga"
	color1 = "blue_light"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "yellow"
		color2 = "yellow"
	}
}
UKR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue_light"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
        instance = { scale = { 1.0 @third } position = { 0.5 @[1-third/2] }  }	
	}
	colored_emblem = {
		texture = "ce_hammer_sickle_star_ussr.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.25 @third } scale = { 0.5 0.5 } }
	}	
}
UKR_fascist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "black"
		color2 = "black"
	}
}
UKR_free_state = {
	pattern = "pattern_solid.tga"
	color1 = "black"
}

ULS = {
	# Ulster province
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
	}
	colored_emblem = {
		texture = "ce_shield_heater.dds"
		color1 = "white"
		instance = { scale = { 0.5 0.5 }  }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "red"
		instance = { scale = { 0.35 0.35 }  }
	}
}
ULS_uk = {
	# Ulster Banner (Northern Ireland) without crown
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "black"
		instance = { scale = { 0.75 0.75 }  }
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		instance = { scale = { 0.7 0.7 }  }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "red"
		instance = { scale = { 0.3 0.3 }  }
	}
}
ULS_uk_monarchy = {
	# Ulster Banner (Northern Ireland) with crown
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "red"
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "black"
		instance = { scale = { 0.75 0.75 }  }
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "white"
		instance = { scale = { 0.7 0.7 }  }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "red"
		instance = { scale = { 0.3 0.3 }  }
	}
	colored_emblem = {
		texture = "ce_crown_tudor.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { position = { 0.5 0.2 } scale = { 0.25 0.25 }  }
	}
}
ULS_theocracy = {
	# Orange Order flag. Not the best match, but a nice unique flag.
	
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "purple"
	color3 = "white"
	color4 = "red"
	
	# Star
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 0.4 0.4 } position = { 0.75 0.75 } }
	}	
	# Canton
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color3
		color2 = color3
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
	}
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color4
		color2 = color4
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }
	}
}
ULS_third_way = {
	# Red saltire on blue
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"


	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 }  }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "red"
		instance = { scale = { 0.3 0.3 }  }
	}
}
ULS_third_way_monarchy = {
	# Red saltire on blue
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "red"


	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = color2
	}
	colored_emblem = {
		texture = "ce_star_06.dds"
		color1 = "yellow"
		instance = { scale = { 0.7 0.7 }  }
	}
	colored_emblem = {
		texture = "ce_hand.dds"
		color1 = "red"
		instance = { scale = { 0.3 0.3 }  }
	}
	colored_emblem = {
		texture = "ce_crown_tudor.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "white"
		instance = { position = { 0.5 0.2 } scale = { 0.25 0.25 }  }
	}
}

UNT = {
	# with black fimbriation
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
    sub = {
        parent = "sub_UNT_canton_black" 
        instance = { scale = { @canton_scale_cross_x @canton_scale_cross_y }  } # top left
    }
}
UNT_subject = {
	# with white fimbriation
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
		color2 = color2
	}
    sub = {
        parent = "sub_UNT_canton_white" 
        instance = { scale = { @canton_scale_cross_x @canton_scale_cross_y }  } # top left
    }
}

UOM_state_of_michigan = {
	pattern = "pattern_solid.tga"
	color1 = "usa_monarchy_blue"

	textured_emblem = {
		texture = "te_coa_michigan.dds"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } } 
	}	
}


URU = { # Uruguay
	# 1830 design (square canton, geometrical sun design)
	# Starting/Republic
	
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "white"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { @third @uru_canton_height } position = { @[third/2] @[uru_canton_height/2] } }
	}
	colored_emblem = {
		texture = "ce_sol_de_mayo.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { @[uru_canton_height*0.8] @[uru_canton_height*0.8] } position = { @[third/2] @[uru_canton_height/2] } }
	}
}
URU_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.43 0.43 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.5 } }
	}	
}
URU_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_laurel.dds"
		color1 = "green"
		color2 = "orange"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.65 } }
	}	
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.27 } }
	}	
	textured_emblem = {
		texture = "te_coa_uruguay.dds"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.55 } }
	}	
	colored_emblem = {
		texture = "ce_ribbon.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.12 0.12 } position = { 0.5 0.84 } }
	}		
}
URU_absolute_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_laurel.dds"
		color1 = "green"
		color2 = "orange"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.66 } }
	}	
	colored_emblem = {
		texture = "ce_inti.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.15 0.2 } }
		instance = { scale = { 0.25 0.25 } position = { 0.85 0.2 } }
		instance = { scale = { 0.25 0.25 } position = { 0.15 0.8 } }
		instance = { scale = { 0.25 0.25 } position = { 0.85 0.8 } }		
		color1 = "yellow"
		color2 = "yellow"		
	}	
	textured_emblem = {
		texture = "te_coa_uruguay.dds"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.56 } }
	}
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.26 } }
	}	
	colored_emblem = {
		texture = "ce_ribbon.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.12 0.12 } position = { 0.5 0.85 } }
	}		
}
URU_communist = { 
	# Inspired from UJC flag
	
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.51 } }
	}	
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.54 } }
	}	
}
URU_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow_dark"
		color2 = "yellow_dark"
		instance = { scale = { 0.52 0.52 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_inti.dds"
		color1 = "yellow_dark"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}	
}
URU_subject_BRZ = {
	# Provincia Cisplatina before uruguayan independence
	@cisplatine_scale = 0.36	
	
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "green"
	}
	colored_emblem = {
		texture = "ce_cross_order_christ.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { @[cisplatine_scale*1.15] @[cisplatine_scale*1.15] } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { @[cisplatine_scale*0.55] @[cisplatine_scale*0.55] } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_armillary_sphere.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { @[cisplatine_scale*0.75] @[cisplatine_scale*0.75] } position = { 0.5 0.5 } }
	}		
}
URU_subject_USA = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_stripes_09.dds"
		color1 = "white"
		color2 = "white"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		instance = { scale = { 0.5 0.555 } position = { 0.25 @[0.555/2] } }
		color1 = "white"
		color2 = "white"		
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.25 @[0.555/2+0.015] } }
		color1 = "red"
		color2 = "red"		
	}		
}
URU_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_stripes_9.dds"
		color1 = "white"
	}		
}

USA = {
	@usa_canton_width = 0.5
	@usa_canton_height = @[ 1 / 13 * 7 ]
	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
    sub = {
        parent = "sub_USA_canton_24" 
        instance = { scale = { @usa_canton_width @usa_canton_height }  } # top left
    }
}
USA_coa = {
	# USA Coat of Arms used as a royal banner
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color3
		color2 = color3
	}
	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 @[5/6] } rotation = 90 }
	}
}
USA_theocracy = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { position = { 0.25 @[ 1 / 13 * 7 / 2 ] } scale = { 0.5 @[ 1 / 13 * 7 ] } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.25 @[ 1 / 13 * 7 / 2 ] } scale = { 0.06 0.4 } }
		instance = { position = { 0.25 @[ 1 / 13 * 7 / 2 - 0.05 ] } scale = { 0.2 0.09 } }		
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.25 @[ 1 / 13 * 7 / 2 ] } scale = { 0.04 0.37 } }
		instance = { position = { 0.25 @[ 1 / 13 * 7 / 2 - 0.05 ] } scale = { 0.18 0.06 } }		
	}	
}
USA_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	textured_emblem = {
		texture = "te_usa_bald_eagle.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.52 } }
	}		
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.5 0.16 } }
	}
	textured_emblem = {
		texture = "te_coa_usa.dds"
		instance = { scale = { 0.30 0.32 } position = { 0.5 0.55 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		instance = { scale = { 0.2 0.2 } position = { 0.125 0.125 } }
		instance = { scale = { 0.2 0.2 } position = { 0.125 0.875 } }	
		instance = { scale = { 0.2 0.2 } position = { 0.875 0.125 } }
		instance = { scale = { 0.2 0.2 } position = { 0.875 0.875 } }			
		color1 = "white"
		color2 = "white"		
	}	
}
USA_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"

	colored_emblem = {
		texture = "ce_stars_circle_13.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { position = { 0.20 0.30 } scale = { 0.5 0.5 } } 
	}	
	colored_emblem = {
		texture = "ce_hammer_sickle_cogwheel_usa.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { position = { 0.20 0.31 } scale = { 0.33 0.33 } } 
	}
}
USA_fascist = {	
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripes_13.dds"
		color1 = "red"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }	
	}
    sub = {
        parent = "sub_USA_fascist_eagle" 
        instance = { scale = { 0.5 0.5 } }
    }			
}

VEN = { # Venice
	pattern = "pattern_border_venice.dds"
	color1 = "red"
	color2 = "yellow"
	color3 = "white"
	
	textured_emblem = {
		texture = "te_lion_san_marco.dds"
		instance = { scale = { 1.2 1.2 } position = { 0.50 0.52 } }
	}		
}
VEN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	textured_emblem = {
		texture = "te_lion_san_marco.dds"
		instance = { scale = { 0.8 0.8 } position = { 0.72 0.65 } }	
	}	
}

VIE = { # Vientiane
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }		
	}	
	colored_emblem = {
		texture = "ce_elephant_asia.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.245 0.26 } }			
	}		
}
VIE_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_elephant_asia.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.75 0.5 } }			
	}		
}

VNT = { # Vanuatu
	# Simplified Independentist flag
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"
	color3 = "white"
	
	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.6 1.0 } position = { 1 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.2 1.0 } position = { 0.1 0.5 } }		
	}	
}
VNT_subject = {
	# Offset for overlord flag
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "blue"
	color3 = "white"
	
	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 1.0 } position = { 1 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 1.0 } position = { 0.25 0.5 } }		
	}	
}
VNT_subject_GBR = {
	# New Hebrides blue ensign
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_crown_st_edward.dds"
		color1 = "yellow"
		color2 = "red"
		color3 = "pearl"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.5 } } 		

	}		
	colored_emblem = {
		texture = "ce_legend_new_hebrides.dds"
		color1 = "black"
		color2 = "yellow"
		color3 = "white"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.5 } }	
	}		
}
VNT_subject_FRA = {
	# Franceville flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_right.dds"
		color1 = color2
		color2 = color2
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }				
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.12 0.12 } position = { 0.5 0.36 } }		
		instance = { scale = { 0.12 0.12 } position = { 0.40 0.47 } }	
		instance = { scale = { 0.12 0.12 } position = { 0.60 0.47 } }	
		instance = { scale = { 0.12 0.12 } position = { 0.44 0.63 } }	
		instance = { scale = { 0.12 0.12 } position = { 0.56 0.63 } }		
	}		
}

VNZ_republic = { # Venezuela
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}		
}
VNZ_oligarchy = { 
	# 1830-36 Starting flag
	# Arms are sometimes represented directly in the field (this variant is easier to read)
	# Varying size for the stripes too

	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "blue"
		color2 = "blue"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.625 } }			
	}
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.25 } position = { 0.5 0.875 } }			
	}

	textured_emblem = {
		texture = "te_coa_venezuela.dds"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.45 } }
	}		
}
VNZ_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.40 0.44 } position = { 0.5 0.5 } }		
	}		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "blue_light"
		color2 = "blue_light"
		instance = { scale = { 0.38 0.42 } position = { 0.5 0.5 } }		
	}		
	textured_emblem = {
		texture = "te_coa_colombia_lesser.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.505 } }
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.235 } }
	}	
}
VNZ_absolute_monarchy = {
	pattern = "pattern_border_of_4.dds"
	color1 = "red"
	color2 = "blue"

	textured_emblem = {
		texture = "te_coa_colombia_lesser.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.5 0.6 } }
	}	
	textured_emblem = {
		texture = "te_crown.dds"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.25 } }
	}	
}
VNZ_dictatorship = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.07 0.17 } rotation = -270 position = { 0.545 0.40 } }		
		instance = { scale = { 0.07 0.17 } rotation = 270 position = { 0.455 0.40 } }	
		instance = { scale = { 0.11 0.11 } position = { 0.5 0.5 } }		
		instance = { scale = { 0.07 0.17 } rotation = -270 position = { 0.585 0.5 } }		
		instance = { scale = { 0.07 0.17 } rotation = 270 position = { 0.415 0.5 } }		
		instance = { scale = { 0.07 0.17 } rotation = -270 position = { 0.455 0.60 } }		
		instance = { scale = { 0.07 0.17 } rotation = 270 position = { 0.545 0.60 } }			
	}	
}
VNZ_communist = { 
	
	pattern = "pattern_solid.tga"
	color1 = "red"
				
	colored_emblem = {
		texture = "ce_hammer_and_sickle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.45 0.45 } position = { 0.5 0.58 } }			
	}
	colored_emblem = {
		texture = "ce_stars_venezuela.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.40 } }
	}		
}
VNZ_subject_SPA = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	textured_emblem = {
		texture = "te_coa_colombia_lesser.dds"
		instance = { scale = { 0.75 0.75 } position = { 0.3 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.4 1.0 } position = { 0.8 0.5 } }		
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.2 1.0 } position = { 0.9 0.5 } }		
	}		
}
VNZ_subject = { 
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }
		color1 = "white"
		color2 = "white"		
	}
	textured_emblem = {
		texture = "te_coa_venezuela.dds"
		instance = { scale = { 0.45 0.45 } position = { 0.75 0.50 } }
	}	
	colored_emblem = {
		texture = "ce_wreath.dds"
		instance = { scale = { 0.56 0.56 } position = { 0.75 0.50 } }
		color1 = "green"
		color2 = "red"		
	}	
}
VNZ_subject_USA = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "white"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "blue"
		color2 = "red"
	}		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.5 0.51 } scale = { 0.3 0.3 } }
	}	
}

WAL = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_eagle_wallachia.dds"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }	
		color1 = "black"
		color2 = "yellow_dark"	
		color3 = "white"		
	}		
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.15 0.20 } position = { 0.52 0.195 } rotation = 12 }
	}		
}
WAL_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.25 } }	
	}
	colored_emblem = {
		texture = "ce_star_08.dds"
		instance = { scale = { 0.25 0.25 } position = { 0.125 0.15 } }	
		instance = { scale = { 0.25 0.25 } position = { 0.250 0.35 } }
		instance = { scale = { 0.25 0.25 } position = { 0.375 0.15 } }			
		color1 = "white"
		color2 = "white"		
	}		
	colored_emblem = {
		texture = "ce_eagle_wallachia.dds"
		instance = { scale = { 0.9 0.9 } position = { 0.75 0.55 } }	
		color1 = "black"
		color2 = "yellow_dark"	
		color3 = "white"		
	}	
	textured_emblem = {
		texture = "te_crown_cut.dds"
		instance = { scale = { 0.14 0.18 } position = { 0.765 0.275 } rotation = 12 }
	}	
}

WAS = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	color3 = "black"
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }
	}
	colored_emblem = {		
		texture = "ce_swan.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }
	}
}
WAS_subject = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"
	color3 = "black"
	colored_emblem = {		
		texture = "ce_frame_circle.dds"
		color1 = color2
		color2 = color2
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {		
		texture = "ce_swan.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
        instance = { position = { 0.75 0.51 } scale = { 0.5 0.5 } }
	}
}

WES = { # Westphalia
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "blue"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "blue"
		color2 = "blue"
	}
}


WIN = { # West Indies Federation
	# 1958 design, a bit uncertain (sun can be yellow or red, the stripes are sometimes mirrored, sometimes not)
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	
	colored_emblem = {
		texture = "ce_sun_waves.dds"
		color1 = "white"
		color2 = "orange"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }			
	}		
}

WLL = { # Wallonia
	# Arms of Hainaut (the rooster flag is very recent)
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		instance = { scale = { 1.0 0.01 } position = { 0.5 0.5 } }
		instance = { scale = { 0.007 1.0 } position = { 0.5 0.5 } }		
	}
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "black"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.25 0.235 } }
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.735 } }		
	}
	colored_emblem = {
		texture = "ce_lion_rampant.dds"
		color1 = "red"
		color2 = "blue"
		color3 = "white"
		instance = { scale = { 0.55 0.55 } position = { 0.25 0.735 } }
		instance = { scale = { 0.55 0.55 } position = { 0.75 0.235 } }		
	}	
}

WLS = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0.5 1 } }
	}
	colored_emblem = {
		texture = "ce_dragon_wales.dds"
		color1 = "red"
		color2 = "red"
		color3 = "white"
		instance = { scale = { 1.25 1.2 } position = { 0.5 0.5 } }		
	}
}
WLS_theocracy = {
	# St David's Cross
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "yellow"
	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = color2
	}		
}
WLS_coa = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }
		instance = { position = { 0.75 0.75 } scale = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds"
		color1 = color1
		color2 = color3
		instance = { position = { 0.25 0.25 } scale = { 0.6 0.6 } }
		instance = { position = { 0.75 0.75 } scale = { 0.6 0.6 } }
	}
	colored_emblem = {
		texture = "ce_lion_passant_guardant.dds"
		color1 = color2
		color2 = color3
		instance = { position = { 0.75 0.25 } scale = { 0.6 0.6 } }
		instance = { position = { 0.25 0.75 } scale = { 0.6 0.6 } }
	}
}
WLS_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"
	color4 = "black"
	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { position = { @[sixth*5] 0.5 } scale = { 0.5 0.5 } }
	}			
}
WLS_communist = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "red"
	color3 = "white"
	color4 = "red"
	colored_emblem = {
		texture = "ce_tricolor_vertical.dds"
		color1 = color2
		color2 = color3
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = color4
		color2 = color4
		instance = { position = { @[sixth*5] 0.5 } scale = { 0.5 0.5 } }
	}			
}
WLS_fascist = {		
	pattern = "pattern_solid.tga"
	color1 = "green"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.4 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 0.7 0.7 } position = { 0.4 0.5 } }
	}
	colored_emblem = {
		texture = "ce_eryr_gwyn.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.7 0.7 } position = { 0.4 0.5 } }
	}	
}
WLS_subject_GBR = {
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "ce_dragon_wales.dds"
		color1 = "yellow"
		color2 = "red_light"
		color3 = "pearl"
		instance = { scale = { 0.65 0.65 } position = { 0.75 0.5 } }		
	}
}

WSG = {
	# Flag of the Dervish state
	pattern = "pattern_border_of_4.dds"
	color1 = "azure"
	color2 = "red"	
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.72 0.65 } position = { 0.5 0.5 } }			
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "azure"
		color2 = "red"
		instance = { scale = { 0.60 0.525 } position = { 0.5 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.36 0.36 } position = { 0.5 0.5 } }				
	}				
}

WUR = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "red"
	}
}
WUR_absolute_monarchy = {		
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.68 0.68 } position = { 0.5 0.5 } }
	}
	colored_emblem = {
		texture = "ce_wreath_thin.dds"
		color1 = "green_light"
		color2 = "green"
		color3 = "red"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.495 } }
	}
	colored_emblem = {
		texture = "ce_wreath_thin.dds"
		color1 = "green"
		color2 = "green"
		color3 = "red"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.50 } }
	}	
    sub = {
        parent = "sub_WUR_coa" 
        instance = { scale = { 0.7 0.7 } offset = { 0.15 0.15 } }
    }	
}
WUR_republic = {
	# 1810-16
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "red"
	}
}
WUR_oligarchy = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "black"

	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "black"
		color2 = "black"
	}			
}
WUR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "black"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "black"
		color2 = "red"
	}		
	colored_emblem = {
		texture = "ce_coa_frame_ddr.dds"
		color1 = "yellow"
		color2 = "black"
		color3 = "red"
		instance = { scale = { 0.60 0.60 } position = { 0.5 0.53 }  }	
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.42 0.42 } position = { 0.5 0.51 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.35 0.35 } position = { 0.5 0.51 } }
	}	
}
WUR_subject_PRU = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "white"
	}
}

XIN = { # Xinjiang
	# Kashgaria 1865 - A plain white banner was also used by the Kashgarian sultanate
	# ext. similar to Turkey
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_crescent_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 0.5 } scale = { 0.8 0.8 } }
	}
}
XIN_republic = {
	# East Turkestan 1933 - A more distinctive flag (short lived republic of Uighuristan)
	
	pattern = "pattern_border_of_3.dds"
	color1 = "blue_light"
	color2 = "red"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_crescent_star_05_rotated.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.45 0.48 } scale = { -0.8 0.8 } }
	}
}
XIN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "white"
	
	colored_emblem = {
		texture = "ce_crescent_star_08.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.75 0.5 } scale = { 0.55 0.55 } }
	}	
}

YAK = { # Yakutia
	# very modern flag (only SSR flags before, 1922-91)
	pattern = "pattern_solid.tga"
	color1 = "blue_light"
	color2 = "green"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "green"
		color2 = "green"
		instance = { position = { 0.5 @[1-third/2] } scale = { 1.0 @third } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.75 } scale = { 1.0 @[third/2] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 @[0.75-third/8] } scale = { 1.0 @[third/4] } }
	}
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { 0.5 @third } scale = { 0.65 0.65 } }
	}	
}

YEM = { # Yemen
	# Adopted 1917
	
	pattern = "pattern_solid.tga"
	color1 = "red"
	
	colored_emblem = {
		texture = "ce_scimitar.dds"
		color1 = "white"
		instance = { scale = { 1.1 1.1 } position = { 0.5 0.5 } }	
	}	
	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.16 0.16 } position = { 0.1 0.15 } }			
		instance = { scale = { 0.16 0.16 } position = { 0.5 0.25 } }		
		instance = { scale = { 0.16 0.16 } position = { 0.90 0.15 } }		
		instance = { scale = { 0.16 0.16 } position = { 0.1 0.85 } }		
		instance = { scale = { 0.16 0.16 } position = { 0.90 0.85 } }				
	}	
}
YEM_subject = {
	# Scimitar only w/ canton
	
	pattern = "pattern_solid.tga"
	color1 = "red"
		
	colored_emblem = {
		texture = "ce_scimitar.dds"
		color1 = "white"
		instance = { scale = { 0.75 0.75 } position = { 0.7 0.74 } }	
	}	
	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.25 0.25 } scale = { 0.5 0.5 } }				
	}	
}
YEM_subject_GBR = {
	# Blue ensign for UK
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
		
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.75 0.5 } }		
	}			
	colored_emblem = {
		texture = "ce_scimitar.dds"
		color1 = "red"
		instance = { scale = { 0.48 0.48 } position = { 0.75 0.55 } }	
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.16 0.16 } position = { 0.75 0.45 } }		
	}		
}

YOG = {
	pattern = "pattern_solid.tga"
	color1 = "black"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "yellow"
		color2 = "yellow"	
	}		
}

YUC = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "green"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = color2
		color2 = color1
	}
    sub = {
        parent = "sub_YUC_hoist" 
        instance = { scale = { @third 1 }  } # top left
    }
}

YUG = { # Yugoslavia
	# 1918-46
	
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}		
}
YUG_communist = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "white"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.72 0.72 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
}

ZIM = { # Zimbabwe Rhodesia
	# Modern flag 1980
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "red"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*5] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7*3] } }
	}
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "black"
		color2 = "black"
		instance = { position = { 0.5 0.5 } scale = { 1.0 @[1/7] } }
	}	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "black"
		color2 = "black"
		instance = { position = { 0 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_rhombus.dds"
		color1 = "white"
		color2 = "white"
		instance = { position = { -0.025 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.175 0.5 } }
	}
}

ZUL = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "red"
	}
}

TRH = { # Turkestan, using the flag of the Basmachi movement as a base
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1 0.11 } position = { 0.5 0.06 } }
		instance = { scale = { 1 0.11 } position = { 0.5 0.28 } }
		instance = { scale = { 1 0.11 } position = { 0.5 0.5 } }
		instance = { scale = { 1 0.11 } position = { 0.5 0.72 } }
		instance = { scale = { 1 0.11 } position = { 0.5 0.94 } }
	}

	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "orange"
		color2 = "orange"
		instance = { scale = { 0.5 0.55 } position = { 0.25 0.5 } }
	}

	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.45 0.45 } position = { 0.25 0.5 } }				
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.22 0.22 } position = { 0.3 0.5 } rotation = 18 }	
	}
}

LOU = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "white"
	color3 = "yellow"

	textured_emblem = {
		texture = "te_louisiana_swan.dds"
		instance = { scale = { 0.85 0.85 } position = { 0.5 0.5 } }
	}
}
LOU_monarchy = {
	pattern = "pattern_solid.tga"
	color1 = "blue"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_fleur_quebec.dds"
		color1 = color2
		color2 = color2
		instance = { position = { 0.2 0.6 } scale = { 0.6 0.6 } }
		instance = { position = { 0.5 0.4 } scale = { 0.6 0.6 } }
		instance = { position = { 0.8 0.6 } scale = { 0.6 0.6 } }
	}
}

KLM = { # Kalmykia
	# using the old flag of the Khanate rather than the 1930s-40s design
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	color2 = "yellow"

	colored_emblem = {		
		texture = "ce_border_checkered.dds"
		color1 = "red"
		color2 = "red"			
	}	
}
