
# default image if there is none

default_images := [
 c: "/magic-default-image.mse-include/colorless.jpg"
 a: "/magic-default-image.mse-include/artifact.jpg"
 m: "/magic-default-image.mse-include/multicolor.jpg"
 w: "/magic-default-image.mse-include/white.jpg"
 u: "/magic-default-image.mse-include/blue.jpg"
 b: "/magic-default-image.mse-include/black.jpg"
 r: "/magic-default-image.mse-include/red.jpg"
 g: "/magic-default-image.mse-include/green.jpg"
 l: "/magic-default-image.mse-include/land.jpg"
]

default_image := {
	color_background(color_combination: {
		combine := "symmetric overlay"
		base :=
		if      color_count == 0 then if land then default_images.l else default_images.c
		else if color_count == 1 then default_images[colors]
		else if color_count == 2 then combine_blend(
		                              	image1: default_images[colors.0],
		                              	image2: default_images[colors.1],
		                              )
		else                           default_images.m
		
		if      land    then if color_count == 0  then default_images.l else combine_blend(image1: default_images.l, image2: base)
		else if multi    then combine_blend(image1: default_images.m, image2: base)
		else if artifact then combine_blend(image1: default_images.a, image2: base)
		else                  base
	})
}
