@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

## China / Great Qing ##

Qing_WB_portrait = {
	textured_emblem = {
		texture = "wb_chi_monarch_qing.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.5 0.53 } }
	}
}

Qing_WB_subject_portrait = {
	textured_emblem = {
		texture = "wb_chi_monarch_qing.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.7 0.6 } }
	}
}

RoC_chan_WB_portrait = {
	textured_emblem = {
		texture = "wb_chi_repub.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.45 0.6 } }
	}
}

PRC_chan_WB_portrait = {
	textured_emblem = {
		texture = "wb_chi_comm.dds"
		instance = { scale = { 1.65 1.65 } position = { 0.545 0.71 } }
	}
}

Fascist_China_WB_portrait = {
	textured_emblem = {
		texture = "wb_chi_fasch.png"
		instance = { scale = { 1.55 1.55 } position = { 0.455 0.67 } }
	}
}

Han_China_WB_portrait = {
	textured_emblem = {
		texture = "wb_chi_han_placeholder.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.45 0.6 } }
	}
}

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 } }		
	}	

	sub = {
        parent = "Qing_WB_portrait" 
    }	
}
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 } }			
	}	
	
	sub = {
        parent = "Qing_WB_portrait" 
    }
}
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 } }			
	}		
	
	sub = {
        parent = "RoC_chan_WB_portrait" 
    }
}
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 } }		
	}	
	
	sub = {
        parent = "Fascist_China_WB_portrait" 
    }
}
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 }			
	}	
	
	# Placeholder until unique portrait can be made
	sub = {
        parent = "Qing_WB_portrait" 
    }
}
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 } }		
	}		
	
	sub = {
        parent = "Qing_WB_subject_portrait" 
    }
}
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 }  }		
	}	
	
	sub = {
        parent = "PRC_chan_WB_portrait" 
    }
}
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"
	}
	
	# Placeholder until unique portrait can be made
	sub = {
        parent = "Han_China_WB_portrait" 
    }
}

CHI_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "black"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_dragon_china_circle.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }				
	}
	
	# Placeholder until unique portrait can be made
	sub = {
        parent = "Fascist_China_WB_portrait" 
    }
}


## Japan and Tokugawa ##

Japan_WB_portrait = {

	textured_emblem = {
		texture = "wb_japan_monarch_petals.dds"
		instance = { scale = { 1.8 1.8 } position = { 0.5 0.5	 } }
	}
	
	textured_emblem = {
		texture = "wb_japan_monarch.png"
		instance = { scale = { 2.0 2.0 } position = { 0.5 0.65	 } }
	}
}

Japan_WB_taishogirl_portrait = {
	textured_emblem = {
		texture = "wb_japan_repub.dds"
		instance = { scale = { 1.7 1.70 } position = { 0.5 0.75	 } }
	}
}

Japan_WB_military_portrait = {
	textured_emblem = {
		texture = "wb_japan_fasch.dds"
		instance = { scale = { 2 2 } position = { 0.63 0.78	 } }
	}
}

Japan_WB_subject_portrait = {	
	textured_emblem = {
		texture = "wb_japan_monarch.png"
		instance = { scale = { 1.9 1.9 } position = { 0.7 0.65	 } }
	}
}

Japan_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_japan_comm.dds"
		instance = { scale = { 1.2 1.2 } position = { 0.63 0.53	 } }
	}
}

Tokugawa_WB_portrait = {
	textured_emblem = {
		texture = "wb_japan_tokugawa.dds"
		instance = { scale = { 1.8 1.8 } position = { 0.5 0.68 } }
	}
}

Tokugawa_WB_Japan_in_BG_portrait = {
	textured_emblem = {
		texture = "wb_japan_blurred.dds"
		instance = { scale = { 1.6 1.6 } position = { 0.67 0.65 } }
	}
}

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

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

JAP_tokugawa = { # The Tokugawa mon flag - WB edit
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "wb_ce_tokugawa_mon.dds"
		color1 = "black"
		color2 = "white"
		instance = { scale = { 0.95 0.95 } }
	}
	
	sub = {
        parent = "Tokugawa_WB_portrait" 
    }
}
JAP_tokugawa_late = { # WB edit
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripe_center.dds"
		color1 = "black"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } }
	}
	
	sub = {
        parent = "Tokugawa_WB_Japan_in_BG_portrait" 
    }
	
	sub = {
        parent = "Tokugawa_WB_portrait" 
    }
}
JAP_absolute_monarchy = {
	# Imperial standard
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "yellow"
	
	colored_emblem = {
		texture = "ce_chrysanthemum_japan.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.9 0.9 } position = { 0.5 0.5 } }			
	}	
	
	sub = {
        parent = "Japan_WB_portrait" 
    }
}
JAP_rising_sun = {
	pattern = "pattern_gironny_32.dds"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = color2
		color2 = color2
		color3 = color2
	}
	
	sub = {
        parent = "Japan_WB_military_portrait" 
    }
}
JAP_republic = {
	# based on a naval flag, border could be red too
	
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "blue"
	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.5 0.5 } scale = { 0.75 0.75 } }				
	}
	
	sub = {
        parent = "Japan_WB_taishogirl_portrait" 
    }
}
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"
	}
	
	sub = {
        parent = "Japan_WB_military_portrait" 
    }
}
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 } }				
	}	
	
	sub = {
        parent = "Japan_WB_portrait" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Japan_WB_subject_portrait" 
    }
}
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"
	}	
	
	sub = {
        parent = "Japan_WB_taishogirl_portrait" 
    }
}
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
	}
	
	sub = {
        parent = "Japan_WB_military_portrait" 
    }
}

# WB originals
# Thank you to DDalgona for researching the Tokugawa Shogunate flags

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


	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "red"
		color2 = "red"
	}
	
	
	textured_emblem = {
		texture = "wb_japan_jcp.png"
		instance = { scale = { 0.6 0.6 } position = { 0.23 0.3 } }
	}
	
	sub = {
        parent = "Japan_WB_communist_portrait" 
    }
}

# For the subject cantons
JAP_tokugawa_naval_jack = {
	pattern = "pattern_solid.tga"
	color1 = "white"

	colored_emblem = {
		texture = "ce_stripe_center.dds"
		color1 = "black"
		color2 = "white"
		instance = { scale = { 1.1 1.1 } }
	}
	
	sub = {
        parent = "Tokugawa_WB_portrait" 
    }
}

JAP_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "red"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_dragon_china.dds"
		color1 = "white"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 1.5 1.5 } position = { 0.5 0.45 } }				
	}
	
	sub = {
        parent = "Japan_WB_communist_portrait" 
    }
}

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

	colored_emblem = {
		texture = "ce_stripe_center.dds"
		color1 = "black"
		color2 = "white"
	}
	
	textured_emblem = {
		texture = "wb_japan_tokugawa.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.675 0.6 } }
	}
}

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

	colored_emblem = {
		texture = "ce_stripe_center.dds"
		color1 = "black"
		color2 = "white"
	}
	
	textured_emblem = {
		texture = "wb_japan_blurred.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.835 0.605 } }
	}
	
	textured_emblem = {
		texture = "wb_japan_tokugawa.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.63 0.6 } }
	}
}

JAP_republic_subject = {
	pattern = "pattern_border_of_4.dds"
	color1 = "white"
	color2 = "blue"
	
	textured_emblem = {
		texture = "wb_japan_repub.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.65 0.72	 } }
	}
}


## Korea ##

Korea_WB_portrait = {
	textured_emblem = {
		texture = "wb_kor_monarch.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.453 0.7 } }
	}
}

Korea_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_kor_repub.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.615 0.69 } }
	}
}

Korea_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_kor_comm.png"
		instance = { scale = { 1.6 1.6 } position = { 0.65 0.64 } }
	}
}

Korea_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_kor_fasch.dds"
		instance = { scale = { 1.35 1.35 } position = { 0.53 0.56 } }
	}
}

Korea_WB_imperial_portrait = {
	textured_emblem = {
		texture = "wb_kor_imperial_alt.dds"
		instance = { scale = { 1.35 1.35 } position = { 0.505 0.56 } }
	}
}


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 } }		
	}	
	
	sub = {
        parent = "Korea_WB_portrait" 
    }
}
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 } }		
	}
	
	textured_emblem = {
		texture = "wb_kor_monarch.dds"
		instance = { scale = { 1.46 1.46 } position = { 0.75 0.73 } }
	}
}
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 } }			
	}
	
	textured_emblem = {
		texture = "wb_kor_monarch.dds"
		instance = { scale = { 1.46 1.46 } position = { 0.65 0.73 } }
	}
}
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 } }
	}
	
	sub = {
        parent = "Korea_WB_communist_portrait" 
    }
}

# WB originals

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

	colored_emblem = {
		texture = "wb_ce_korea_modern_taegeukgi.dds"
		color1 = "red"
		color2 = "blue"
		color3 = "black"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}	
	
	sub = {
        parent = "Korea_WB_republican_portrait" 
    }
}

KOR_dictatorship = { 
	# Supreme Council for National Reconstruction flag after the 16 May 1961 coup d'état 
	pattern = "pattern_solid.tga"
	color1 = "blue"

	colored_emblem = {
		texture = "wb_ce_korea_modern_taegeukgi.dds"
		color1 = "blue"
		color2 = "red"
		color3 = "blue"
        instance = { position = { 0.5 0.5 } scale = { 0.6 0.6 } }		
	}
	colored_emblem = {
		texture = "wb_ce_korea_scnr_frame.dds"
		color1 = "yellow"
		color3 = "white"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}	
	
	sub = {
        parent = "Korea_WB_fascist_portrait" 
    }
}

KOR_empire = {
	
	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 = "blue"
		color2 = "blue"
        instance = { position = { 0.5 0.5 } scale = { 0.9 0.9 } }		
	}	
	
	sub = {
        parent = "Korea_WB_portrait" 
    }
}

KOR_empire_alt = {
	
	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 = "blue"
		color2 = "blue"
        instance = { position = { 0.5 0.5 } scale = { 0.9 0.9 } }		
	}	
	
	sub = {
        parent = "Korea_WB_imperial_portrait" 
    }
}

KOR_joseon = {
	pattern = "pattern_solid.tga"
	color1 = rgb { 146 0 52 }
	color2 = rgb { 232 159 96 }
	
	colored_emblem = {
		texture = "ce_frame_square.dds"
		color1 = color2
		color2 = color2
		instance = { scale = { 1.5 0.05 } position = { 0.5 0.02 } }
		instance = { scale = { 1.5 0.05 } position = { 0.5 0.98 } }
		instance = { scale = { 0.05 1.0 } position = { 0.98 0.5 } }
		instance = { scale = { 0.05 1.0 } position = { 0.02 0.5 } }
	}
	
	colored_emblem = {
		texture = "wb_ce_joseon_taegeukgi.dds"
		color1 = color2
		color2 = "white"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}
	
	sub = {
        parent = "Korea_WB_portrait" 
    }
}

KOR_anarchist = {
	pattern = "pattern_per_bend_senester.dds"
	color1 = "black"
	color2 = "red"	
	
	colored_emblem = {
		texture = "ce_korea_taegeuk.dds"
		color1 = "black"
		color2 = "red"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}
	
	sub = {
        parent = "Korea_WB_republican_portrait" 
    }
}

KOR_secessionist = {
	# Based off the Korean National Revolutionary Party flag
	pattern = "pattern_rhombus.dds"
	color1 = "blue"
	color2 = "brown"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "white"		
	}
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "white"		
	}	
	
	sub = {
        parent = "Korea_WB_republican_portrait" 
    }
}

KOR_communist_revolutionary = {
	# Based off the People's Committee flag
	pattern = "pattern_solid.tga"
	color1 = "white"
	color2 = "red"

	colored_emblem = {
		texture = "ce_stripe_center.dds"
		color1 = "red"	
		instance = { position = { 0.5 0.5 } scale = { 1.0 0.35 } }
		instance = { position = { 0.5 0.4 } scale = { 1.0 0.35 } }
		instance = { position = { 0.5 0.6 } scale = { 1.0 0.35 } }
	}	
	
	colored_emblem = {
		texture = "ce_korea_taegeuk.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.4 0.5 } scale = { 1.05 1.05 } }		
	}
	
	colored_emblem = {
		texture = "ce_korea_taegeuk.dds"
		color1 = "red"
		color2 = "blue"
        instance = { position = { 0.4 0.5 } scale = { 1.0 1.0 } }		
	}
	
	sub = {
        parent = "Korea_WB_communist_portrait" 
    }
}

KOR_secessionist_dictatorship = {
	# Based off the Korean National Revolutionary Party flag
	pattern = "pattern_rhombus.dds"
	color1 = "blue"
	color2 = "brown"

	colored_emblem = {
		texture = "ce_cross_england.dds"
		color1 = "white"		
	}
	colored_emblem = {
		texture = "ce_saltire.dds"
		color1 = "white"		
	}	
	
	sub = {
        parent = "Korea_WB_fascist_portrait" 
    }
}

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

	colored_emblem = {
		texture = "wb_ce_korea_modern_taegeukgi.dds"
		color1 = "red"
		color2 = "blue"
		color3 = "black"
        instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 } }		
	}	
	
	sub = {
        parent = "Korea_WB_fascist_portrait" 
    }
}

### Southeast Asia ###

## Burma / Waifu Universalis' Taungu ##

Burma_WB_portrait = {
	textured_emblem = {
		texture = "wb_bur_monarch.dds"
		instance = { scale = { -1.4 1.4 } position = { 0.6 0.7 } }
	}
}

Burma_WB_subject_portrait = {
	textured_emblem = {
		texture = "wb_bur_monarch.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.7 0.7 } }
	}
}

Burma_WB_republican_portrait = {
	textured_emblem = {
		texture = "wb_bur_repub.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.48 0.67 } }
	}
}

Burma_WB_communist_portrait = {
	textured_emblem = {
		texture = "wb_bur_comm.dds"
		instance = { scale = { 1.55 1.55 } position = { 0.68 0.5 } }
	}
}

Burma_WB_fascist_portrait = {
	textured_emblem = {
		texture = "wb_bur_fasch.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.55 0.52 } }
	}
}

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 } }
	}		
	
	sub = {
        parent = "Burma_WB_portrait" 
    }
}
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 } }
	}		
	
	sub = {
        parent = "Burma_WB_portrait" 
    }
}
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 } }
	}	
	
	# WB edits
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.7 0.7 } position = { 0.5 0.5 } }		
	}
	textured_emblem = {
		texture = "te_peacock.dds"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.51 } }
	}
	
	sub = {
        parent = "Burma_WB_republican_portrait" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Burma_WB_fascist_portrait" 
    }
}
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 } }			
	}		
	
	sub = {
        parent = "Burma_WB_republican_portrait" 
    }
}
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 } }
	}	

sub = {
        parent = "Burma_WB_subject_portrait" 
    }	
}

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

# WB originals

BUR_communist = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "green"
		color2 = "red"
	}	
	colored_emblem = {
		texture = "ce_circle.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 1.2 1.2 } position = { 0.5 0.5 } }
	}	
	
	colored_emblem = {
		texture = "ce_hammer_and_sickle_round.dds"
		color1 = "red"
		color2 = "white"
		instance = { scale = { -0.7 0.7 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Burma_WB_communist_portrait" 
    }
}

BUR_anarchist = {
	pattern = "pattern_solid.tga"
	color1 = "black"
		
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.2 0.3 } }
	}

	sub = {
        parent = "Burma_WB_communist_portrait" 
    }
}


## Dai Nam / Dai Viet / Vietnam ft. Annam and Tonkin ##

Dai_Viet_WB_portriat = {
	textured_emblem = {
		texture = "wb_dai_monarch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.5 0.55 } }
	}
}

Dai_Viet_WB_fascist_portriat = {
	textured_emblem = {
		texture = "wb_dai_fasch.dds"
		instance = { scale = { 1.65 1.65 } position = { 0.5 0.71 } }
	}
}

Annam_WB_portriat = {
	textured_emblem = {
		texture = "wb_dai_repub_annam.dds"
		instance = { scale = { 1.7 1.7 } position = { 0.5 0.84 } }
	}
}

Tonkin_WB_portriat = {
	textured_emblem = {
		texture = "wb_dai_comm_tonkin.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.5 0.7 } }
	}
}


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 } }			
	}
	
	sub = {
        parent = "Dai_Viet_WB_portriat" 
    }
}
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 } }
    }	
	
	sub = {
        parent = "Dai_Viet_WB_portriat" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Annam_WB_portriat" 
    }
}
DAI_subject = {
	# Annam Protectorate
	
	pattern = "pattern_solid.tga"
	color1 = "yellow"
	
	textured_emblem = {
		texture = "wb_dai_repub_annam.dds"
		instance = { scale = { 1.45 1.45 } position = { 0.72 0.73 } }
	}
}
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 } }
	}
	
	sub = {
        parent = "Tonkin_WB_portriat" 
    }
}
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 } }
		
		# WB edit
		instance = { scale = { 0.2 1.0 } position = { 0.05 0.5 } }
		instance = { scale = { 0.2 1.0 } position = { 0.95 0.5 } }
	}		
	
	sub = {
        parent = "Dai_Viet_WB_fascist_portriat" 
    }
}
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] } }		
	}		
	
	sub = {
        parent = "Annam_WB_portriat" 
    }
}

# WB originals

DAI_dictatorship = {

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

DAI_theocracy = {
	# Vietnamese five-color flag
	pattern = "pattern_border_of_4.dds"
	color1 = "light_blue"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_border_orle.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { scale = { 0.7 0.6 } position = { 0.5 0.5 } }	
	}
	
	colored_emblem = {
		texture = "ce_border_orle.dds"
		color1 = "green"
		color2 = "green"
		instance = { scale = { 0.5 0.4 } position = { 0.5 0.5 } }	
	}
	
	colored_emblem = {
		texture = "ce_border_orle.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.3 0.2 } position = { 0.5 0.5 } }	
	}
	
	sub = {
        parent = "Dai_Viet_WB_portriat" 
    }
}

DAI_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "black"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_moon_face.dds"
		color1 = "red"
		color2 = "black"
		color3 = "black"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }				
	}
	
	sub = {
        parent = "Tonkin_WB_portriat" 
    }
}


## Johor / Johore / Bangsa J ##
# With the exception of the communist and subject flags, these are all actual Johorean flags (yes, including the anarchist one)

Johor_WB_portriat = {
	textured_emblem = {
		texture = "wb_joh_monarch.dds"
		instance = { scale = { 1.7 1.7 } position = { 0.48 0.62 } }
	}
}

Johor_WB_subject_portriat = {
	textured_emblem = {
		texture = "wb_joh_puppet.dds"
		instance = { scale = { 1.1 1.1 } position = { 0.72 0.58 } }
	}
}
Johor_WB_republican_portriat = {
	textured_emblem = {
		texture = "wb_joh_repub.dds"
		instance = { scale = { 1.35 1.35 } position = { 0.53 0.65 } }
	}
}
Johor_WB_communist_portriat = {
	textured_emblem = {
		texture = "wb_joh_comm.dds"
		instance = { scale = { 1.2 1.2 } position = { 0.51 0.6 } }
	}
}
Johor_WB_fascist_portriat = {
	textured_emblem = {
		texture = "wb_joh_fasch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.6 0.73 } }
	}
}

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 } }
	}	
	
	sub = {
        parent = "Johor_WB_portriat" 
    }
}
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 } }
	}
	
	sub = {
        parent = "Johor_WB_portriat" 
    }
}
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 } }
	}	
	
	sub = {
        parent = "Johor_WB_republican_portriat" 
    }
}
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 } }
	}	
	
	sub = {
        parent = "Johor_WB_fascist_portriat" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Johor_WB_portriat" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Johor_WB_subject_portriat" 
    }
}


# WB originals

JOH_communist = {
	
	pattern = "pattern_border_double.dds"
	color1 = "red"
	color2 = "yellow"
	color3 = "blue"
	
	colored_emblem = {
		texture = "ce_star_05_pinwheeled.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 0.6 0.6 } position = { 0.5 0.47 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_r.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.12 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_e.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.16 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_p.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.20 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_u.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.24 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_b.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.28 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_l.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.32 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_i.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.35 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_k.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.38 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_r.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.44 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_a.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.48 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_k.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.52 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_y.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.56 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_a.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.6 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_t.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.64 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_j.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.7 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_o.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.735 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_h.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.775 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_o.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.815 0.8 } }		
	}
	
	colored_emblem = {
		texture = "ce_letter_r.dds"
		color1 = "yellow"
		instance = { scale = { 0.11 0.11 } position = { 0.855 0.8 } }		
	}
	
	sub = {
        parent = "Johor_WB_communist_portriat" 
    }
}

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

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "red"
		color2 = "red"
        instance = { position = { 0.25 0.25 } scale = { 0.65 0.8 } }
	}
	colored_emblem = {		
		texture = "wb_ce_johor_cresent_star.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.28 0.33 } scale = { 0.6 0.6 } }
	}	
	
	sub = {
        parent = "Johor_WB_portriat" 
    }
}

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

	colored_emblem = {		
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
        instance = { position = { 0.18 0.25 } scale = { 0.7 0.7 } }
	}
	colored_emblem = {
		texture = "ce_crescent.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.5 0.5 } position = { 0.2 0.3 } }			
	}
	colored_emblem = {
		texture = "ce_star_05.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 0.3 0.3 } position = { 0.35 0.3 } }			
	}

	colored_emblem = {
		texture = "ce_crossed_kris_daggers.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.4 0.4 } position = { 0.85 0.75 } }			
	}	
	
	sub = {
        parent = "Johor_WB_fascist_portriat" 
    }
}

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

	colored_emblem = {
		texture = "ce_crescent_large.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.9 0.9 } position = { 0.45 0.50 } }			
	}
	colored_emblem = {
		texture = "ce_star_05_tilted.dds"
		color1 = "white"
		color2 = "white"
		instance = { scale = { 0.5 0.5 } position = { 0.63 0.50 } }			
	}	
	
	sub = {
        parent = "Johor_WB_republican_portriat" 
    }
}

JOH_anarchist = { #This is literally the Batu Pahat flag
	pattern = "pattern_per_bend.dds"
	color1 = "red"
	color2 = "black"

	
	colored_emblem = {		
		texture = "ce_crescent_star_turkey.dds"
		color1 = "white"
		color2 = "white"
        instance = { position = { 0.5 0.5 } scale = { 0.6 0.6 }  }
	}
	
	sub = {
        parent = "Johor_WB_communist_portriat" 
    }
}


## Lanfang ##

Lanfang_WB_portriat = {
	textured_emblem = {
		texture = "wb_lan_repub.dds"
		instance = { scale = { 1.45` 1.45 } position = { 0.55 0.65 } }
	}
}

Lanfang_WB_monarchist_portriat = {
	textured_emblem = {
		texture = "wb_lan_monarch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.5 0.57 } }
	}
}

Lanfang_WB_communist_portriat = {
	textured_emblem = {
		texture = "wb_lan_comm.png"
		instance = { scale = { 1.35 1.35 } position = { 0.64 0.6 } }
	}
}

Lanfang_WB_fascist_portriat = {
	textured_emblem = {
		texture = "wb_lan_fasch.dds"
		instance = { scale = { 1.3 1.3 } position = { 0.53 0.61 } }
	}
}

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

	colored_emblem = {
		texture = "wb_ce_lanfang_grand_authority.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1. 1. } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Lanfang_WB_portriat" 
    }
}
LAN_subject = {
	pattern = "pattern_solid.tga"
	color1 = "yellow"
		
	colored_emblem = { # WB edits
		texture = "wb_ce_lanfang_characters.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.75 0.5 } scale = { 0.6 0.6 } }		
	}
	
	textured_emblem = {
		texture = "wb_lan_repub.dds"
		instance = { scale = { 1.45` 1.45 } position = { 0.67 0.65 } }
	}
}
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 = { # WB edit
		texture = "wb_ce_lanfang_characters.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.75 0.5 } scale = { 0.5 0.5 } }		
	}
	
	textured_emblem = {
		texture = "wb_lan_repub.dds"
		instance = { scale = { 1.45` 1.45 } position = { 0.67 0.65 } }
	}
}

# WB originals

LAN_monarchy = {
	pattern = "pattern_border_of_4.dds"
	color1 = "yellow"
	color2 = "blue"	

	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.7 } }				
	}	
	colored_emblem = {
		texture = "ce_clouds_china_02.dds"
		color1 = "orange"
		color2 = "white"
		color3 = "blue_light"	
		instance = { scale = { 0.3 0.3 } position = { 0.85 0.5 } }			
	}	
	colored_emblem = {
		texture = "ce_clouds_china_03.dds"
		color1 = "white"
		color2 = "blue_light"
		color3 = "orange"
		instance = { scale = { 0.3 0.3 } position = { 0.85 0.75 } }			
	}	
	colored_emblem = {
		texture = "ce_clouds_china_03.dds"
		color1 = "blue_light"
		color2 = "white"
		color3 = "orange"
		instance = { scale = { 0.3 0.3 } position = { 0.8 0.2 } }			
	}	
	colored_emblem = {
		texture = "ce_clouds_china_03.dds"
		color1 = "blue_light"
		color2 = "white"
		color3 = "orange"
		instance = { scale = { 0.5 0.5 } position = { 0.25 0.2 } }		
	}		
	
	textured_emblem = {
		texture = "wb_lan_formosa_tiger.png"
		instance = { scale = { 0.8 0.8 } position = { 0.5 0.5 } }
	}
	
	sub = {
        parent = "Lanfang_WB_monarchist_portriat" 
    }
}

LAN_communist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "white"
	color3 = "white"
	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/6] 1.0 } }
	}
	colored_emblem = {
		texture = "wb_ce_communist_west_kalimantan.dds"
		color1 = "yellow"
		color2 = "black"
		instance = { position = { 0.33 0.25 } scale = { 0.50 0.50 } } 
	}
	
	colored_emblem = {
		texture = "wb_ce_lanfang_peoples_kongsi.dds"
		color1 = "black"
		color2 = "black"
		instance = { position = { 0.095 0.5 } scale = { 1.0 1.0 } } 
	}
	
	sub = {
        parent = "Lanfang_WB_communist_portriat" 
    }
}

LAN_fascist = {
	pattern = "pattern_solid.tga"
	color1 = "red"
	color2 = "red"
	
	colored_emblem = {
		texture = "ce_solid.dds"
		color1 = "yellow"
		color2 = "yellow"
		instance = { position = { 0.3 0.5 } scale = { 0.45 0.8 } }
	}
	
	colored_emblem = {
		texture = "wb_ce_6_stripes_with_gaps.dds"
		color1 = "red"
		color2 = "black"
		color3 = "highlight"
		instance = { position = { 0.6 0.5 } scale = { 0.8 1.0 } }
	}
		
	colored_emblem = {
		texture = "wb_ce_lanfang_characters.dds"
		color1 = "black"
		color2 = "black"
        instance = { position = { 0.32 0.5 } scale = { 0.8 0.8 } }		
	}
	
	sub = {
        parent = "Lanfang_WB_fascist_portriat" 
    }
}

LAN_theocracy = {
	# Theocratic Lanfang is using the international Buddhist flag
	
	pattern = "pattern_solid.tga"
	color1 = "orange"
	color2 = "red"
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "blue"
        instance = { scale = { @[1/6] 1.0 } position = { 0.08 0.5 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "yellow"
        instance = { scale = { @[1/6] 1.0 } position = { 0.25 0.5 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "red"
        instance = { scale = { @[1/6] 1.0 } position = { 0.41 0.5 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "white"
        instance = { scale = { @[1/6] 1.0 } position = { 0.56 0.5 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "blue"
        instance = { scale = { @[1/6] @[1/5] } position = { 0.92 0.1 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "yellow"
        instance = { scale = { @[1/6] @[1/5] } position = { 0.92 0.3 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "red"
        instance = { scale = { @[1/6] @[1/5] } position = { 0.92 0.5 } }
    }
	
	colored_emblem = {
        texture = "ce_solid.dds"
        color1 = "white"
        instance = { scale = { @[1/6] @[1/5] } position = { 0.92 0.7 } }
    }

	
	sub = {
        parent = "Lanfang_WB_monarchist_portriat" 
    }
}

LAN_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "black"
	color2 = "black"	
	
	colored_emblem = {
		texture = "wb_ce_lanfang_characters.dds"
		color1 = "red"
		color2 = "black"
        instance = { position = { 0.26 0.5 } scale = { 0.8 0.8 } }		
	}
	
	colored_emblem = {
		texture = "wb_ce_6_stripes_with_gaps.dds"
		color1 = "black"
		color2 = "black"
		color3 = "highlight"
	}
	
	sub = {
        parent = "Lanfang_WB_communist_portriat" 
    }
}


## Siam / Thailand ##

Siam_WB_portriat = {
	textured_emblem = {
		texture = "wb_sia_monarch.dds"
		instance = { scale = { 1.35 1.35 } position = { 0.5 0.55 }	 }
	}
}

Siam_WB_republican_portriat = {
	textured_emblem = {
		texture = "wb_sia_repub.dds"
		instance = { scale = { 1.6 1.6 } position = { 0.46 0.61 } }
	}
	
	textured_emblem = {
		texture = "wb_sia_repub_blurred_paper.dds"
		instance = { scale = { 0.7 0.7 } position = { 0.85 0.73 } }
	}
}

Siam_WB_communist_portriat = {
	textured_emblem = {
		texture = "wb_sia_comm.dds"
		instance = { scale = { 1.4 1.4 } position = { 0.6 0.55 } }
	}
}

Siam_WB_fascist_portriat = {
	textured_emblem = {
		texture = "wb_sia_fasch.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.38 0.7 } }
	}
}

Siam_WB_subject_portriat = {
	textured_emblem = {
		texture = "wb_sia_monarch_smol.dds"
		instance = { scale = { 1.5 1.5 } position = { 0.68 0.55 }	 }
	}
}

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 } }			
	}
	
	sub = {
        parent = "Siam_WB_portriat" 
    }
}
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 } }			
	}
	
	sub = {
        parent = "Siam_WB_portriat" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Siam_WB_republican_portriat" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Siam_WB_fascist_portriat" 
    }
}
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 } }			
	}	
	
	sub = {
        parent = "Siam_WB_portriat" 
    }
}
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 } }				
	}	
	
	sub = {
        parent = "Siam_WB_subject_portriat" 
    }
}
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 } }				
	}	
	
	sub = {
        parent = "Siam_WB_subject_portriat" 
    }
}

# WB originals

SIA_communist = {
	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 } }			
	}	
	
	colored_emblem = {
		texture = "ce_star_frame_hammer_sickle.dds"
		color1 = "yellow"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.45 } }				
	}
	
	sub = {
        parent = "Siam_WB_communist_portriat" 
    }
}

SIA_anarchist = {
	pattern = "pattern_per_bend.dds"
	color1 = "black"
	color2 = "black"	
	
	colored_emblem = {
		texture = "ce_elephant_asia.dds"
		color1 = "red"
		color2 = "white"
		color3 = "white"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }				
	}
	
	sub = {
        parent = "Siam_WB_communist_portriat" 
    }
}


# Indonesia Placeholders

IDN_JOH = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "white"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_per_cross.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
		mask = { 1 }
	}
	
	colored_emblem = {
		texture = "ce_per_cross.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
		mask = { 2 }
	}

	
	sub = {
        parent = "Johor_WB_portriat" 
    }
}

IDN_JOH_republic = {
	pattern = "pattern_solid.tga"
	color1 = "white"
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 0.75 } position = { 0.5 0.37 } }
	}
	
	colored_emblem = {
		texture = "ce_tricolor_horizontal.dds"
		color1 = "yellow"
		color2 = "black"
		instance = { scale = { 1.0 0.75 } position = { 0.5 0.65 } }
	}
	
	colored_emblem = {
		texture = "ce_frame_circle.dds"
		color1 = "white"
		color2 = "red"
		instance = { scale = { 0.45 0.35 } position = { 0.5 0.5 } }
	}
	
	colored_emblem = {
		texture = "ce_tiger_passant.dds"
		color1 = "black"
		color2 = "yellow"
		instance = { scale = { 0.4 0.4 } position = { 0.5 0.51 } }
	}
	
	sub = {
        parent = "Johor_WB_republican_portriat" 
    }
}

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

	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "white"
		color2 = "blue"
		instance = { scale = { 1.0 0.5 } position = { 0.5 0.33 } }
	}
	
	colored_emblem = {
		texture = "ce_stripes_07.dds"
		color1 = "white"
		color2 = "blue"
		instance = { scale = { 1.0 0.5 } position = { 0.5 0.76 } }
	}
	
	colored_emblem = {
		texture = "ce_canton.dds"
		color1 = blue
		color2 = "blue"
		instance = { scale = { 1.5 1.5 } position = { 0.56 0.58 } }
	}
	
	colored_emblem = {
		texture = "ce_star_05_safcp.dds"
		color1 = "yellow"
		color2 = "black"
		instance = { scale = { 0.5 0.5 } position = { 0.22 0.3 } }
	}
	
	sub = {
        parent = "Johor_WB_communist_portriat" 
    }
}

IDN_JOH_dictatorship = {
	pattern = "pattern_vertical_split_01.tga"
	color1 = "white"
	color2 = "yellow"

	colored_emblem = {
		texture = "ce_per_cross.dds"
		color1 = "black"
		color2 = "black"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
		mask = { 1 }
	}
	
	colored_emblem = {
		texture = "ce_per_cross.dds"
		color1 = "red"
		color2 = "red"
		instance = { scale = { 1.0 1.0 } position = { 0.5 0.5 } }
		mask = { 2 }
	}

	
	sub = {
        parent = "Johor_WB_fascist_portriat" 
    }
}

