@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

@pi = 3.1416

### East Africa ###

## Ethiopia ##

Ethiopia_WB_portrait = {
	textured_emblem = {
		texture = "wb_eth_monarch.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.51 0.64 } }
	}
}

Ethiopia_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_eth_repub.dds"
		instance = { scale = { 1.29 1.29 } position = { 0.505 0.605 } }
	}
}

Ethiopia_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_eth_comm.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.415 0.575 } }
	}
}

Ethiopia_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_eth_fasch.dds"
		instance = { scale = { 1.63 1.63 } position = { 0.577 0.66 } }
	}
}

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 } }		
	}		
	
	sub = {
        parent = "Ethiopia_WB_portrait" 
    }
}

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 } }		
	}		
	
	sub = {
        parent = "Ethiopia_WB_portrait" 
    }
}
ETH_republic = {
	# 1881-1941 
	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "red"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "red"
	}		
	
	# WB edits
	# 1996 - 2009
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "light_blue"
		color2 = "blue"
		instance = { scale = { 0.65 0.65 } position = { 0.5 0.5 } }
	}
	
	colored_emblem = {
		texture = "wb_ce_ethiopia_pentagram.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Ethiopia_WB_republican_portrait" 
    }
}
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 } }		
	}	

	textured_emblem = {
		texture = "wb_eth_monarch.dds"
		instance = { scale = { 1.35 1.35 } position = { 0.74 0.64 } }
	}
}

# WB originals

ETH_monarchy_post_1913 = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_lion_judah.dds"
		color1 = "tan"
		color2 = "red"
		color3 = "white"	
		instance = { scale = { -0.60 0.60 } position = { 0.50 0.485 } }		
	}		
	
	sub = {
        parent = "Ethiopia_WB_portrait" 
    }
}

ETH_dictatorship = {	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "red"

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

ETH_communist = {	
	pattern = "pattern_solid.tga"
	color1 = "green"
	color2 = "yellow"
	color3 = "red"

	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "red"
	}	
	
	textured_emblem = {
		texture = "wb_eth_derg.dds"
		instance = { scale = { 0.5 0.5 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Ethiopia_WB_communist_portrait" 
    }
}

ETH_anarchist = {	
	pattern = "pattern_solid.tga"
	color1 = "black"
	color2 = "yellow"
	color3 = "green"

	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.5 } }
	}	
	colored_emblem = {
		texture = "ce_lion_judah.dds"
		color1 = "red"
		color2 = "red"
		color3 = "black"	
		instance = { scale = { -0.60 0.60 } position = { 0.50 0.485 } }		
	}		
	
	sub = {
        parent = "Ethiopia_WB_communist_portrait" 
    }
}

ETH_subject_ITA = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	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 } }		
	}	

	textured_emblem = {
		texture = "wb_eth_monarch.dds"
		instance = { scale = { 1.35 1.35 } position = { 0.74 0.64 } }
	}
}


### West Africa ###

## Sokoto ##

Sokoto_WB_portrait = {
	textured_emblem = {
		texture = "wb_sok_monarch.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.5 0.64 } }
	}
}

Sokoto_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_sok_repub.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.55 0.69 } }
	}
}

Sokoto_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_sok_comm.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.55 0.7 } }
	}
}

Sokoto_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_sok_fasch.dds"
		instance = { scale = { 1.65 1.65 } position = { 0.4 0.75 } }
	}
}


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

	sub = {
        parent = "Sokoto_WB_portrait" 
    }
}

SOK_republic = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {		
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.45 0.5 } scale = { 0.8 0.7 } }
	}

	sub = {
        parent = "Sokoto_WB_republican_portrait" 
    }
}

SOK_communist = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.57 0.52 } position = { 0.2 0.26 } }				
	}
	
	colored_emblem = {
		texture = "ce_hammer_hoe.dds"
		color1 = "green"
		color2 = "white"
		instance = { scale = { 0.3 0.3 } position = { 0.21 0.3 } }				
	}


	sub = {
        parent = "Sokoto_WB_communist_portrait" 
    }
}

SOK_fascist = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_frame_square.dds"
		color1 = "white"
		color2 = "blue"
		instance = { scale = { 0.25 1.0 } position = { 0.92 0.5 } }
	}

	sub = {
        parent = "Sokoto_WB_fascist_portrait" 
    }
}


SOK_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "red"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_crescent_pale.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }				
	}
	
	sub = {
        parent = "Sokoto_WB_communist_portrait" 
    }
}

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

	textured_emblem = {
		texture = "wb_sok_repub.dds"
		instance = { scale = { 1.7 1.7 } position = { 0.72 0.81 } }
	}
}

# Mossi

MOS_waifu_universalis = {
	pattern = "pattern_solid.tga"
	color1 = "green"
	
	colored_emblem = {
		texture = "ce_stripes_05.dds"
		color1 = "orange"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } rotation = 90 }				
	}

	textured_emblem = {
		texture = "wb_mossi.png"
		instance = { scale = { 1.2 1.2 } position = { 0.6 0.5 } }
	}
}


### Southern Africa ###

## Madagascar / Waifu Universalis' Imerina

Imerina_WB_portrait = {
	textured_emblem = {
		texture = "wb_mad_autocratic.dds"
		instance = { scale = { 1.25 1.25 } position = { 0.495 0.56 } }
	}
}

Imerina_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_mad_civil.dds"
		instance = { scale = { 1.18 1.18 } position = { 0.43 0.54 } }
	}
}

Imerina_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_mad_civil_alt.dds"
		instance = { scale = { 1.18 1.18 } position = { 0.62 0.54 } }
	}
}

Imerina_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_mad_autocratic_alt.dds"
		instance = { scale = { 1.25 1.25 } position = { 0.495 0.56 } }
	}
}

MAD = { # Madagascar
	pattern = "pattern_solid.tga"
	color1 = "white"

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

	colored_emblem = {
		texture = "ce_tribar.dds"
		color1 = "red"
		color2 = "green"
		color3 = "white"
	}
	
	sub = {
        parent = "Imerina_WB_republican_portrait" 
    }
}
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 } }	
	}	
	
	textured_emblem = {
		texture = "wb_mad_civil.dds"
		instance = { scale = { 1.18 1.18 } position = { 0.54 0.54 } }
	}
}

# WB originals

MAD_dictatorship = { # Madagascar
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_tribar.dds"
		color1 = "red"
		color2 = "green"
		color3 = "white"
	}
	
	sub = {
        parent = "Imerina_WB_fascist_portrait" 
    }
}

MAD_communist = { 
	# Based off Didier Ratsiraka's first presidential standard

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

	colored_emblem = {
		texture = "ce_tribar.dds"
		color1 = "red"
		color2 = "green"
		color3 = "white"
	}
	
	textured_emblem = {
		texture = "wb_mad_presidential_emblem_socialist.png"
		instance = { scale = { 0.45 0.44 } position = { 0.17 0.5 } }
	}
	
	sub = {
        parent = "Imerina_WB_communist_portrait" 
    }
}

MAD_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "red"
	color2 = "black"	
	
	textured_emblem = {
		texture = "wb_mad_civil_alt.dds"
		instance = { scale = { 1.18 1.18 } position = { 0.52 0.54 } }
	}
}

MAD_subject = { # heh, mad subject...

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

	colored_emblem = {
		texture = "ce_bicolor_bottom.dds"
		color1 = "red"
		color2 = "red"
	}
	
	textured_emblem = {
		texture = "wb_mad_civil.dds"
		instance = { scale = { 1.18 1.18 } position = { 0.75 0.54 } }
	}
}

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

	colored_emblem = {
		texture = "ce_tribar.dds"
		color1 = "red"
		color2 = "green"
		color3 = "white"
	}
	
	textured_emblem = {
		texture = "wb_mad_civil.dds"
		instance = { scale = { 1.18 1.18 } position = { 0.68 0.54 } }
	}
}