Commit 4e777bf3 authored by twanvl's avatar twanvl

New blend scripts based on multiple choice field

parent 6717e356
# Scripts for blending images
# Included by a style file in its init script
# Credits:
# 3/4/5 color blends by Guinea Pig
# vertical blends by Wolfwood
########################################################################
# Filenames and other defaults
########################################################################
mask_hybrid_with_land := { false }
land_template := { input + "lcard.jpg" }
card_template := { input + "card.jpg" }
pt_template := { input + "pt.jpg" }
pt2_template := { input + "pt2.jpg" }
typeline_template := { input + "typeline.png" }
typelineland_template := { input + "ltypeline.png" }
textbox_template := { input + "textbox.png" }
textboxland_template := { input + "ltextbox.png" }
########################################################################
# Hybrid blends
########################################################################
# Make parts of the input grey (land color)
card_hybrid_nt := {
if mask_hybrid_with_land() then
masked_blend(
mask: "hybrid_blend_nt.png",
dark: land_template(""),
light: input,
)
else input
}
# Card hybrid without land blending
card_hybrid := {
linear_blend(
image1: card_template(input[0])
image2: card_template(input[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
}
card_hybrid_2 := card_hybrid + card_hybrid_nt
# vertical 2 color hybrid
card_hybrid_2v := {
card_hybrid_nt(
linear_blend(
image1: card_template(input[0])
image2: card_template(input[1])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'overlay' 2 color hybrid
card_hybrid_overlay := {
card_hybrid_nt(
combine_blend(
image1: card_template(input[0]),
image2: card_template(input[1]),
combine: "symmetric overlay"
)
)
}
# 'star' 3 color hybrid
card_hybrid_3 := {
card_hybrid_nt(
linear_blend(
image1: card_hybrid(input[0] + input[1]),
image2: card_template(input[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)
)
}
# 'star' 4 color hybrid
card_hybrid_4 := {
card_hybrid_nt(
linear_blend(
image1: card_hybrid(input[0] + input[1])
image2: card_hybrid(input[2] + input[3])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'star' 5 color hybrid, fixed for 6 colors
card_hybrid_5 := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: card_hybrid(input[0] + input[1]),
image2: card_hybrid(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: card_template(input[4]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 6 color hybrid
card_hybrid_6 := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: card_hybrid(input[0] + input[1]),
image2: card_hybrid(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: card_hybrid(input[4] + input[5]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 7 color hybrid
card_hybrid_7 := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: card_hybrid(input[0] + input[1]),
image2: card_hybrid(input[2] + input[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: card_hybrid(input[4] + input[5]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: card_template(input[6]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)
)
}
# horizontal 3 color hybrid
card_hybrid_3h := {
card_hybrid_nt(
linear_blend(
image1: card_template(input[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: card_template(input[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: card_template(input[2])
))
)
}
# horizontal 4 color hybrid
card_hybrid_4h := {
card_hybrid_nt(
linear_blend(
# blend = 0.16
image1: card_template(input[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: card_template(input[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: card_template(input[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: card_template(input[3])
)))
)
}
# horizontal 5 color hybrid, fixed for 6 colors
card_hybrid_5h := {
card_hybrid_nt(
linear_blend(
image1: card_template(input[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: card_template(input[4])
))))
)
}
# horizontal 6 color hybrid
card_hybrid_6h := {
card_hybrid_nt(
linear_blend(
image1: card_template(input[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: card_template(input[5])
)))))
)
}
# horizontal 7 color hybrid
card_hybrid_7h := {
card_hybrid_nt(
linear_blend(
image1: card_template(input[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: card_template(input[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: card_template(input[6])
))))))
)
}
########################################################################
# Multicolor blends
########################################################################
# Make a hybrid blend into a multicolor blend
multi_hybrid := {
masked_blend(
mask: "multicolor_dual_blend.png",
dark: "mcard.jpg",
light: input,
)
}
########################################################################
# Land blends
########################################################################
land_hybrid_2 := {
card_hybrid_nt(
linear_blend(
image1: land_template(input[0])
image2: land_template(input[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
)
}
land_hybrid_3 := {
card_hybrid_nt(
linear_blend(
image1: land_hybrid_2(input[0] + input[1]),
image2: land_template(input[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)
)
}
# 'star' 4 color hybrid
land_hybrid_4 := {
card_hybrid_nt(
linear_blend(
image1: land_hybrid_2(input[0] + input[1])
image2: land_hybrid_2(input[2] + input[3])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'star' 5 color hybrid, fixed for 6 colors
land_hybrid_5 := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: land_hybrid_2(input[0] + input[1]),
image2: land_hybrid_2(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: land_template(input[4]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 6 color hybrid
land_hybrid_6 := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: land_hybrid_2(input[0] + input[1]),
image2: land_hybrid_2(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: land_hybrid_2(input[4] + input[5]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 7 color hybrid
land_hybrid_7 := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: land_hybrid_2(input[0] + input[1]),
image2: land_hybrid_2(input[2] + input[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: land_hybrid_2(input[4] + input[5]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: land_template(input[6]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)
)
}
# horizontal 3 color hybrid
land_hybrid_3h := {
card_hybrid_nt(
linear_blend(
image1: land_template(input[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: land_template(input[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: land_template(input[2])
))
)
}
# horizontal 4 color hybrid
land_hybrid_4h := {
card_hybrid_nt(
linear_blend(
# blend = 0.16
image1: land_template(input[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: land_template(input[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: land_template(input[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: land_template(input[3])
)))
)
}
# horizontal 5 color hybrid, fixed for 6 colors
land_hybrid_5h := {
card_hybrid_nt(
linear_blend(
image1: land_template(input[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: land_template(input[4])
))))
)
}
# horizontal 6 color hybrid
land_hybrid_6h := {
card_hybrid_nt(
linear_blend(
image1: land_template(input[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: land_template(input[5])
)))))
)
}
# horizontal 7 color hybrid
land_hybrid_7h := {
card_hybrid_nt(
linear_blend(
image1: land_template(input[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: land_template(input[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: land_template(input[6])
))))))
)
}
########################################################################
# Multicolor blends for Typelines
########################################################################
# Make a hybrid blend into a multicolor blend
multi_hybrid_typeline := {
masked_blend(
mask: "multicolor_dual_blend_typeline.png",
dark: "mtypeline.png",
light: input,
)
}
########################################################################
# Land blends for Typelines
########################################################################
land_hybrid_2_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: typelineland_template(input[0])
image2: typelineland_template(input[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
)
}
land_hybrid_3_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: land_hybrid_2_typeline(input[0] + input[1]),
image2: typelineland_template(input[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)
)
}
# 'star' 4 color hybrid
land_hybrid_4_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: land_hybrid_2_typeline(input[0] + input[1])
image2: land_hybrid_2_typeline(input[2] + input[3])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'star' 5 color hybrid
land_hybrid_5_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: linear_blend(
image1: land_hybrid_2_typeline(input[0] + input[1]),
image2: land_hybrid_2_typeline(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: typelineland_template(input[4]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 6 color hybrid
land_hybrid_6_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: linear_blend(
image1: land_hybrid_2_typeline(input[0] + input[1]),
image2: land_hybrid_2_typeline(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: land_hybrid_2_typeline(input[4] + input[5]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 7 color hybrid
land_hybrid_7_typeline := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: land_hybrid_2_typeline(input[0] + input[1]),
image2: land_hybrid_2_typeline(input[2] + input[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: land_hybrid_2_typeline(input[4] + input[5]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: typelineland_template(input[6]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)
)
}
# horizontal 3 color hybrid
land_hybrid_3h_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: typelineland_template(input[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: typelineland_template(input[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: typelineland_template(input[2])
))
)
}
# horizontal 4 color hybrid
land_hybrid_4h_typeline := {
card_hybrid_nt_typeline(
linear_blend(
# blend = 0.16
image1: typelineland_template(input[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: typelineland_template(input[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: typelineland_template(input[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: typelineland_template(input[3])
)))
)
}
# horizontal 5 color hybrid
land_hybrid_5h_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: typelineland_template(input[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: typelineland_template(input[4])
))))
)
}
# horizontal 6 color hybrid
land_hybrid_6h_typeline := {
card_hybrid_nt(
linear_blend(
image1: typelineland_template(input[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: typelineland_template(input[5])
)))))
)
}
# horizontal 7 color hybrid
land_hybrid_7h_typeline := {
card_hybrid_nt(
linear_blend(
image1: typelineland_template(input[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: typelineland_template(input[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: typelineland_template(input[6])
))))))
)
}
########################################################################
# Multicolor blends for Textboxes
########################################################################
# Make a hybrid blend into a multicolor blend
multi_hybrid_textbox := {
masked_blend(
mask: "multicolor_dual_blend_textbox.png",
dark: "mtextbox.png",
light: input,
)
}
########################################################################
# Land blends for Textboxes
########################################################################
land_hybrid_2_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: textboxland_template(input[0])
image2: textboxland_template(input[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
)
}
land_hybrid_3_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: land_hybrid_2_textbox(input[0] + input[1]),
image2: textboxland_template(input[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)
)
}
# 'star' 4 color hybrid
land_hybrid_4_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: land_hybrid_2_textbox(input[0] + input[1])
image2: land_hybrid_2_textbox(input[2] + input[3])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'star' 5 color hybrid
land_hybrid_5_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: linear_blend(
image1: land_hybrid_2_textbox(input[0] + input[1]),
image2: land_hybrid_2_textbox(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: textboxland_template(input[4]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 6 color hybrid
land_hybrid_6_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: linear_blend(
image1: land_hybrid_2_textbox(input[0] + input[1]),
image2: land_hybrid_2_textbox(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: land_hybrid_2_textbox(input[4] + input[5]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 7 color hybrid
land_hybrid_7_textbox := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: land_hybrid_2_textbox(input[0] + input[1]),
image2: land_hybrid_2_textbox(input[2] + input[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: land_hybrid_2_textbox(input[4] + input[5]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: textboxland_template(input[6]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)
)
}
# horizontal 3 color hybrid
land_hybrid_3h_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: textboxland_template(input[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: textboxland_template(input[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: textboxland_template(input[2])
))
)
}
# horizontal 4 color hybrid
land_hybrid_4h_textbox := {
card_hybrid_nt_textbox(
linear_blend(
# blend = 0.16
image1: textboxland_template(input[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: textboxland_template(input[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: textboxland_template(input[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: textboxland_template(input[3])
)))
)
}
# horizontal 5 color hybrid
land_hybrid_5h_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: textboxland_template(input[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: textboxland_template(input[4])
))))
)
}
# horizontal 6 color hybrid
land_hybrid_6h_textbox := {
card_hybrid_nt(
linear_blend(
image1: textboxland_template(input[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: textboxland_template(input[5])
)))))
)
}
# horizontal 7 color hybrid
land_hybrid_7h_textbox := {
card_hybrid_nt(
linear_blend(
image1: textboxland_template(input[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: textboxland_template(input[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: textboxland_template(input[6])
))))))
)
}
########################################################################
# Typelines
########################################################################
# Make parts of the input grey (land color)
card_hybrid_nt_typeline := {
if mask_hybrid_with_land() then
masked_blend(
mask: "hybrid_blend_nt_typeline.png",
dark: typelineland_template(""),
light: input,
)
else input
}
# Card hybrid without land blending
card_hybrid_typeline := {
linear_blend(
image1: typeline_template(input[0])
image2: typeline_template(input[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
}
card_hybrid_2_typeline := card_hybrid_typeline + card_hybrid_nt_typeline
# vertical 2 color hybrid
card_hybrid_2v_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: typeline_template(input[0])
image2: typeline_template(input[1])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'overlay' 2 color pt hybrid
card_hybrid_overlay_typeline := {
card_hybrid_nt(
combine_blend(
image1: typeline_template(input[0]),
image2: typeline_template(input[1]),
combine: "symmetric overlay"
)
)
}
# 'star' 3 color hybrid
card_hybrid_3_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: card_hybrid_typeline(input[0] + input[1]),
image2: typeline_template(input[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)
)
}
# 'star' 4 color hybrid
card_hybrid_4_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: card_hybrid_typeline(input[0] + input[1])
image2: card_hybrid_typeline(input[2] + input[3])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'star' 5 color hybrid
card_hybrid_5_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: linear_blend(
image1: card_hybrid_typeline(input[0] + input[1]),
image2: card_hybrid_typeline(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: typeline_template(input[4]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 6 color hybrid
card_hybrid_6_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: linear_blend(
image1: card_hybrid_typeline(input[0] + input[1]),
image2: card_hybrid_typeline(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: card_hybrid_typeline(input[4] + input[5]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 7 color hybrid
card_hybrid_7_typeline := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: card_hybrid_typeline(input[0] + input[1]),
image2: card_hybrid_typeline(input[2] + input[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: card_hybrid_typeline(input[4] + input[5]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: typeline_template(input[6]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)
)
}
# horizontal 3 color hybrid
card_hybrid_3h_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: typeline_template(input[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: typeline_template(input[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: typeline_template(input[2])
))
)
}
# horizontal 4 color hybrid
card_hybrid_4h_typeline := {
card_hybrid_nt_typeline(
linear_blend(
# blend = 0.16
image1: typeline_template(input[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: typeline_template(input[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: typeline_template(input[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: typeline_template(input[3])
)))
)
}
# horizontal 5 color hybrid
card_hybrid_5h_typeline := {
card_hybrid_nt_typeline(
linear_blend(
image1: typeline_template(input[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: typeline_template(input[4])
))))
)
}
# horizontal 6 color hybrid
card_hybrid_6h_typeline := {
card_hybrid_nt(
linear_blend(
image1: typeline_template(input[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: typeline_template(input[5])
)))))
)
}
# horizontal 7 color hybrid
card_hybrid_7h_typeline := {
card_hybrid_nt(
linear_blend(
image1: typeline_template(input[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: typeline_template(input[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: typeline_template(input[6])
))))))
)
}
########################################################################
# Textboxes
########################################################################
# Make parts of the input grey (land color)
card_hybrid_nt_textbox := {
if mask_hybrid_with_land() then
masked_blend(
mask: "hybrid_blend_nt_textbox.png",
dark: textboxland_template(""),
light: input,
)
else input
}
# Card hybrid without land blending
card_hybrid_textbox := {
linear_blend(
image1: textbox_template(input[0])
image2: textbox_template(input[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
}
card_hybrid_2_textbox := card_hybrid_textbox + card_hybrid_nt_textbox
# vertical 2 color hybrid
card_hybrid_2v_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: textbox_template(input[0])
image2: textbox_template(input[1])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'overlay' 2 color pt hybrid
card_hybrid_overlay_textbox := {
card_hybrid_nt(
combine_blend(
image1: textbox_template(input[0]),
image2: textbox_template(input[1]),
combine: "symmetric overlay"
)
)
}
# 'star' 3 color hybrid
card_hybrid_3_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: card_hybrid_textbox(input[0] + input[1]),
image2: textbox_template(input[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)
)
}
# 'star' 4 color hybrid
card_hybrid_4_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: card_hybrid_textbox(input[0] + input[1])
image2: card_hybrid_textbox(input[2] + input[3])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)
)
}
# 'star' 5 color hybrid
card_hybrid_5_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: linear_blend(
image1: card_hybrid_textbox(input[0] + input[1]),
image2: card_hybrid_textbox(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: textbox_template(input[4]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 6 color hybrid
card_hybrid_6_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: linear_blend(
image1: card_hybrid_textbox(input[0] + input[1]),
image2: card_hybrid_textbox(input[2] + input[3]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: card_hybrid_textbox(input[4] + input[5]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)
)
}
# 'star' 7 color hybrid
card_hybrid_7_textbox := {
card_hybrid_nt(
linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: card_hybrid_textbox(input[0] + input[1]),
image2: card_hybrid_textbox(input[2] + input[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: card_hybrid_textbox(input[4] + input[5]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: textbox_template(input[6]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)
)
}
# horizontal 3 color hybrid
card_hybrid_3h_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: textbox_template(input[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: textbox_template(input[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: textbox_template(input[2])
))
)
}
# horizontal 4 color hybrid
card_hybrid_4h_textbox := {
card_hybrid_nt_textbox(
linear_blend(
# blend = 0.16
image1: textbox_template(input[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: textbox_template(input[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: textbox_template(input[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: textbox_template(input[3])
)))
)
}
# horizontal 5 color hybrid
card_hybrid_5h_textbox := {
card_hybrid_nt_textbox(
linear_blend(
image1: textbox_template(input[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: textbox_template(input[4])
))))
)
}
# horizontal 6 color hybrid
card_hybrid_6h_textbox := {
card_hybrid_nt(
linear_blend(
image1: textbox_template(input[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: textbox_template(input[5])
)))))
)
}
# horizontal 7 color hybrid
card_hybrid_7h_textbox := {
card_hybrid_nt(
linear_blend(
image1: textbox_template(input[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: textbox_template(input[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: textbox_template(input[6])
))))))
)
}
########################################################################
# Power/toughness boxes
########################################################################
# Make parts of the input grey (hpt.jpg color)
# For p/t box
card_hybrid_pt := {
# Make the p/t box grey based on set.grey_hybrid_name
if mask_hybrid_with_land()
then land_hybrid_pt()
else pt_template()
}
# For overlay p/t box
card_hybrid_pt_overlay := {
if mask_hybrid_with_land()
then land_hybrid_pt_overlay()
else card_hybrid_pt_overlayer()
}
# 'overlay' 2 color pt hybrid
card_hybrid_pt_overlayer := {
combine_blend(
image1: pt_template(input[0]),
image2: pt_template(input[1]),
combine: "symmetric overlay"
)
}
# Mask part of the input p/t box with the "hpt.jpg" file
land_hybrid_pt := {
masked_blend(
mask: "hybrid_blend_pt.png",
dark: "hpt.jpg",
light: pt_template(),
)
}
# Mask part of the input p/t box with "hpt.jpg" file, do the rest as an overlay hybrid
land_hybrid_pt_overlay := {
masked_blend(
mask: "hybrid_blend_pt.png",
dark: "hpt.jpg",
light: combine_blend(
image1: pt_template(input[0]),
image2: pt_template(input[1]),
combine: "symmetric overlay"
)
)
}
# Multicolor blend for pt box
multi_hybrid_pt := {
masked_blend(
mask: "multicolor_dual_blend_pt.png",
dark: pt_template("m"),
light: pt_template(),
)
}
# 3 Color Horizontal Blending (based on templates by BunnieRein)
card_hybrid_3h_pt := {
linear_blend(
image1: pt_template(input[0])
image2: pt_template(input[1])
x1: -0.2, y1: 0
x2: 0.1, y2: 0
)
}
# 4 Color Horizontal Blending
card_hybrid_4h_pt := {
linear_blend(
image1: pt_template(input[0])
image2: pt_template(input[1])
x1: -0.1, y1: 0
x2: 0.6, y2: 0
)
}
########################################################################
# Power/thoughness boxes #2
########################################################################
# Make parts of the input grey (hpt.jpg color)
# For p/t box
card_hybrid_pt2 := {
# Make the p/t box grey based on set.grey_hybrid_name
if mask_hybrid_with_land()
then land_hybrid_pt2()
else pt2_template()
}
# 'overlay' 2 color pt hybrid
card_hybrid_pt2_overlay := {
card_hybrid_nt(
combine_blend(
image1: pt2_template(input[0]),
image2: pt2_template(input[1]),
combine: "symmetric overlay"
)
)
}
# Mask part of the input p/t box with the "hpt.jpg" file
land_hybrid_pt2 := {
masked_blend(
mask: "hybrid_blend_pt2.png",
dark: "hpt.jpg",
light: pt2_template(),
)
}
# Multicolor blend for pt box
multi_hybrid_pt2 := {
masked_blend(
mask: "multicolor_dual_blend_pt2.png",
dark: "mpt2.jpg",
light: pt2_template(),
)
}
# Card backgrounds, most are generated using the blend-scripts
# Requires
# include file: magic-blends.mse-include/blend-scripts
# In the init script of the style
choice images:
white : script: card_template("w")
blue : script: card_template("u")
black : script: card_template("b")
red : script: card_template("r")
green : script: card_template("g")
colorless : script: card_template("c")
artifact : script: card_template("a")
multicolor : script: card_template("m")
multicolor 2 color white / blue : script: multi_hybrid(card_hybrid_2("wu"))
multicolor 2 color blue / black : script: multi_hybrid(card_hybrid_2("ub"))
multicolor 2 color black / red : script: multi_hybrid(card_hybrid_2("br"))
multicolor 2 color red / green : script: multi_hybrid(card_hybrid_2("rg"))
multicolor 2 color green / white : script: multi_hybrid(card_hybrid_2("gw"))
multicolor 2 color white / black : script: multi_hybrid(card_hybrid_2("wb"))
multicolor 2 color blue / red : script: multi_hybrid(card_hybrid_2("ur"))
multicolor 2 color black / green : script: multi_hybrid(card_hybrid_2("bg"))
multicolor 2 color red / white : script: multi_hybrid(card_hybrid_2("rw"))
multicolor 2 color green / blue : script: multi_hybrid(card_hybrid_2("gu"))
multicolor 3 color white / blue / black : script: multi_hybrid(card_hybrid_3("wub"))
multicolor 3 color blue / black / red : script: multi_hybrid(card_hybrid_3("ubr"))
multicolor 3 color black / red / green : script: multi_hybrid(card_hybrid_3("brg"))
multicolor 3 color red / green / white : script: multi_hybrid(card_hybrid_3("rgw"))
multicolor 3 color green / white / blue : script: multi_hybrid(card_hybrid_3("gwu"))
multicolor 3 color white / black / red : script: multi_hybrid(card_hybrid_3("wbr"))
multicolor 3 color blue / red / green : script: multi_hybrid(card_hybrid_3("urg"))
multicolor 3 color black / green / white : script: multi_hybrid(card_hybrid_3("bgw"))
multicolor 3 color red / white / blue : script: multi_hybrid(card_hybrid_3("rwu"))
multicolor 3 color green / blue / black : script: multi_hybrid(card_hybrid_3("gub"))
multicolor 4 color white / blue / black / red : script: multi_hybrid(card_hybrid_4("wubr"))
multicolor 4 color blue / black / red / green : script: multi_hybrid(card_hybrid_4("ubrg"))
multicolor 4 color black / red / green / white : script: multi_hybrid(card_hybrid_4("brgw"))
multicolor 4 color red / green / white / blue : script: multi_hybrid(card_hybrid_4("rgwu"))
multicolor 4 color green / white / blue / black : script: multi_hybrid(card_hybrid_4("gwub"))
multicolor 5 color white / blue / black / red / green : script: multi_hybrid(card_hybrid_5("wubrg"))
multicolor 5 color horizontal white / blue / black / red / green : script: multi_hybrid(card_hybrid_5h("wubrg"))
land : script: land_template("")
land 1 color white : script: land_template("w")
land 1 color blue : script: land_template("u")
land 1 color black : script: land_template("b")
land 1 color red : script: land_template("r")
land 1 color green : script: land_template("g")
land 1 color multicolor : script: land_template("m")
land 2 color white / blue : script: land_hybrid_2("wu")
land 2 color blue / black : script: land_hybrid_2("ub")
land 2 color black / red : script: land_hybrid_2("br")
land 2 color red / green : script: land_hybrid_2("rg")
land 2 color green / white : script: land_hybrid_2("gw")
land 2 color white / black : script: land_hybrid_2("wb")
land 2 color blue / red : script: land_hybrid_2("ur")
land 2 color black / green : script: land_hybrid_2("bg")
land 2 color red / white : script: land_hybrid_2("rw")
land 2 color green / blue : script: land_hybrid_2("gu")
hybrid 2 color white / blue : script: card_hybrid_2("wu")
hybrid 2 color blue / black : script: card_hybrid_2("ub")
hybrid 2 color black / red : script: card_hybrid_2("br")
hybrid 2 color red / green : script: card_hybrid_2("rg")
hybrid 2 color green / white : script: card_hybrid_2("gw")
hybrid 2 color white / black : script: card_hybrid_2("wb")
hybrid 2 color blue / red : script: card_hybrid_2("ur")
hybrid 2 color black / green : script: card_hybrid_2("bg")
hybrid 2 color red / white : script: card_hybrid_2("rw")
hybrid 2 color green / blue : script: card_hybrid_2("gu")
hybrid 2 color artifact / white : script: card_hybrid_2("aw")
hybrid 2 color artifact / blue : script: card_hybrid_2("au")
hybrid 2 color artifact / black : script: card_hybrid_2("ab")
hybrid 2 color artifact / red : script: card_hybrid_2("ar")
hybrid 2 color artifact / green : script: card_hybrid_2("ag")
hybrid 2 color overlay white / blue : script: card_hybrid_overlay("wu")
hybrid 2 color overlay blue / black : script: card_hybrid_overlay("ub")
hybrid 2 color overlay black / red : script: card_hybrid_overlay("br")
hybrid 2 color overlay red / green : script: card_hybrid_overlay("rg")
hybrid 2 color overlay green / white : script: card_hybrid_overlay("gw")
hybrid 2 color overlay white / black : script: card_hybrid_overlay("wb")
hybrid 2 color overlay blue / red : script: card_hybrid_overlay("ur")
hybrid 2 color overlay black / green : script: card_hybrid_overlay("bg")
hybrid 2 color overlay red / white : script: card_hybrid_overlay("rw")
hybrid 2 color overlay green / blue : script: card_hybrid_overlay("gu")
hybrid 3 color white / blue / black : script: card_hybrid_3("wub")
hybrid 3 color blue / black / red : script: card_hybrid_3("ubr")
hybrid 3 color black / red / green : script: card_hybrid_3("brg")
hybrid 3 color red / green / white : script: card_hybrid_3("rgw")
hybrid 3 color green / white / blue : script: card_hybrid_3("gwu")
hybrid 3 color white / black / red : script: card_hybrid_3("wbr")
hybrid 3 color blue / red / green : script: card_hybrid_3("urg")
hybrid 3 color black / green / white : script: card_hybrid_3("bgw")
hybrid 3 color red / white / blue : script: card_hybrid_3("rwu")
hybrid 3 color green / blue / black : script: card_hybrid_3("gub")
hybrid 3 color horizontal white / blue / black : script: card_hybrid_3h("wub")
hybrid 3 color horizontal blue / black / red : script: card_hybrid_3h("ubr")
hybrid 3 color horizontal black / red / green : script: card_hybrid_3h("brg")
hybrid 3 color horizontal red / green / white : script: card_hybrid_3h("rgw")
hybrid 3 color horizontal green / white / blue : script: card_hybrid_3h("gwu")
hybrid 3 color horizontal white / black / red : script: card_hybrid_3h("wbr")
hybrid 3 color horizontal blue / red / green : script: card_hybrid_3h("urg")
hybrid 3 color horizontal black / green / white : script: card_hybrid_3h("bgw")
hybrid 3 color horizontal red / white / blue : script: card_hybrid_3h("rwu")
hybrid 3 color horizontal green / blue / black : script: card_hybrid_3h("gub")
hybrid 4 color white / blue / black / red : script: card_hybrid_4("wubr")
hybrid 4 color blue / black / red / green : script: card_hybrid_4("ubrg")
hybrid 4 color black / red / green / white : script: card_hybrid_4("brgw")
hybrid 4 color red / green / white / blue : script: card_hybrid_4("rgwu")
hybrid 4 color green / white / blue / black : script: card_hybrid_4("gwub")
hybrid 4 color horizontal white / blue / black / red : script: card_hybrid_4h("wubr")
hybrid 4 color horizontal blue / black / red / green : script: card_hybrid_4h("ubrg")
hybrid 4 color horizontal black / red / green / white : script: card_hybrid_4h("brgw")
hybrid 4 color horizontal red / green / white / blue : script: card_hybrid_4h("rgwu")
hybrid 4 color horizontal green / white / blue / black : script: card_hybrid_4h("gwub")
hybrid 5 color white / blue / black / red / green : script: card_hybrid_5("wubrg")
hybrid 5 color horizontal white / blue / black / red / green : script: card_hybrid_5h("wubrg")
hybrid vertical white / blue : script: card_hybrid_2v("wu")
hybrid vertical white / black : script: card_hybrid_2v("wb")
hybrid vertical white / red : script: card_hybrid_2v("wr")
hybrid vertical white / green : script: card_hybrid_2v("wg")
hybrid vertical blue / white : script: card_hybrid_2v("uw")
hybrid vertical blue / black : script: card_hybrid_2v("ub")
hybrid vertical blue / red : script: card_hybrid_2v("ur")
hybrid vertical blue / green : script: card_hybrid_2v("ug")
hybrid vertical black / white : script: card_hybrid_2v("bw")
hybrid vertical black / blue : script: card_hybrid_2v("bu")
hybrid vertical black / red : script: card_hybrid_2v("br")
hybrid vertical black / green : script: card_hybrid_2v("bg")
hybrid vertical red / white : script: card_hybrid_2v("rw")
hybrid vertical red / blue : script: card_hybrid_2v("ru")
hybrid vertical red / black : script: card_hybrid_2v("rb")
hybrid vertical red / green : script: card_hybrid_2v("rg")
hybrid vertical green / white : script: card_hybrid_2v("gw")
hybrid vertical green / blue : script: card_hybrid_2v("gu")
hybrid vertical green / red : script: card_hybrid_2v("gr")
hybrid vertical green / black : script: card_hybrid_2v("gb")
hybrid vertical artifact / white : script: card_hybrid_2v("aw")
hybrid vertical artifact / blue : script: card_hybrid_2v("au")
hybrid vertical artifact / black : script: card_hybrid_2v("ab")
hybrid vertical artifact / red : script: card_hybrid_2v("ar")
hybrid vertical artifact / green : script: card_hybrid_2v("ag")
hybrid vertical white / artifact : script: card_hybrid_2v("wa")
hybrid vertical blue / artifact : script: card_hybrid_2v("ua")
hybrid vertical black / artifact : script: card_hybrid_2v("ba")
hybrid vertical red / artifact : script: card_hybrid_2v("ra")
hybrid vertical green / artifact : script: card_hybrid_2v("ga")
# Quite a lot of card colors # A lot less colors then it used to be
# Included by a game file # Included by a game file
empty choice: colorless
choice: white choice: white
choice: blue choice: blue
choice: black choice: black
choice: red choice: red
choice: green choice:
choice: colorless name: green
line below: true
choice: artifact choice: artifact
choice: land
choice: multicolor
choice: choice:
name: multicolor name: hybrid
group choice: normal enabled: { card_color_color_count(card.card_color) >= 2 }
choice: line below: true
name: 2 color
choice: white / blue
choice: blue / black
choice: black / red
choice: red / green
choice: green / white
choice: white / black
choice: blue / red
choice: black / green
choice: red / white
choice: green / blue
choice:
name: 3 color
choice: white / blue / black
choice: blue / black / red
choice: black / red / green
choice: red / green / white
choice: green / white / blue
choice: white / black / red
choice: blue / red / green
choice: black / green / white
choice: red / white / blue
choice: green / blue / black
choice:
name: 4 color
choice: white / blue / black / red
choice: blue / black / red / green
choice: black / red / green / white
choice: red / green / white / blue
choice: green / white / blue / black
choice:
name: 5 color
choice: white / blue / black / red / green
choice: horizontal white / blue / black / red / green
choice: choice:
name: land name: radial
group choice: colorless enabled: { card_color_color_count(card.card_color) >= 2 }
choice:
name: 1 color
choice: white
choice: blue
choice: black
choice: red
choice: green
choice: multicolor
choice:
name: 2 color
choice: white / blue
choice: blue / black
choice: black / red
choice: red / green
choice: green / white
choice: white / black
choice: blue / red
choice: black / green
choice: red / white
choice: green / blue
choice: choice:
name: hybrid name: horizontal
choice: enabled: { card_color_color_count(card.card_color) >= 2 }
name: 2 color choice:
choice: white / blue name: vertical
choice: blue / black enabled: { card_color_color_count(card.card_color) >= 2 }
choice: black / red choice:
choice: red / green name: reversed
choice: green / white enabled: { card_color_color_count(card.card_color) >= 2 and not chosen(choice:"overlay",card.card_color) }
choice: white / black choice:
choice: blue / red name: overlay
choice: black / green enabled: { card_color_color_count(card.card_color) == 2 and chosen(choice:"hybrid",card.card_color) }
choice: red / white script: card_color_filter(value)
choice: green / blue
choice: artifact / white
choice: artifact / blue
choice: artifact / black
choice: artifact / red
choice: artifact / green
choice:
name: overlay
choice: white / blue
choice: blue / black
choice: black / red
choice: red / green
choice: green / white
choice: white / black
choice: blue / red
choice: black / green
choice: red / white
choice: green / blue
choice:
name: 3 color
choice: white / blue / black
choice: blue / black / red
choice: black / red / green
choice: red / green / white
choice: green / white / blue
choice: white / black / red
choice: blue / red / green
choice: black / green / white
choice: red / white / blue
choice: green / blue / black
choice:
name: horizontal
choice: white / blue / black
choice: blue / black / red
choice: black / red / green
choice: red / green / white
choice: green / white / blue
choice: white / black / red
choice: blue / red / green
choice: black / green / white
choice: red / white / blue
choice: green / blue / black
choice:
name: 4 color
choice: white / blue / black / red
choice: blue / black / red / green
choice: black / red / green / white
choice: red / green / white / blue
choice: green / white / blue / black
choice:
name: horizontal
choice: white / blue / black / red
choice: blue / black / red / green
choice: black / red / green / white
choice: red / green / white / blue
choice: green / white / blue / black
choice:
name: 5 color
choice: white / blue / black / red / green
choice: horizontal white / blue / black / red / green
choice:
# Vertical hybrids, for flip cards
# By: Wolfwood
name: vertical
choice: white / blue
choice: white / black
choice: white / red
choice: white / green
choice: white / artifact
choice: blue / white
choice: blue / black
choice: blue / red
choice: blue / green
choice: blue / artifact
choice: black / white
choice: black / blue
choice: black / red
choice: black / green
choice: black / artifact
choice: red / white
choice: red / blue
choice: red / black
choice: red / green
choice: red / artifact
choice: green / white
choice: green / blue
choice: green / black
choice: green / red
choice: green / artifact
choice: artifact / white
choice: artifact / blue
choice: artifact / black
choice: artifact / red
choice: artifact / green
# Also define colors for statistics
choice colors:
white : rgb(255,237,202)
blue : rgb(42,141,255)
black : rgb(33,33,33)
red : rgb(255,52,0)
green : rgb(138,230,0)
colorless : rgb(122,85,85)
artifact : rgb(188,192,195)
multicolor : rgb(255,188,14)
land : rgb(109,62,39)
hybrid : rgb(243,26,136) # purple
# Sub menus, same colors
multicolor 2 color white / blue : rgb(255,188,14)
multicolor 2 color blue / black : rgb(255,188,14)
multicolor 2 color black / red : rgb(255,188,14)
multicolor 2 color red / green : rgb(255,188,14)
multicolor 2 color green / white : rgb(255,188,14)
multicolor 2 color white / black : rgb(255,188,14)
multicolor 2 color blue / red : rgb(255,188,14)
multicolor 2 color black / green : rgb(255,188,14)
multicolor 2 color red / white : rgb(255,188,14)
multicolor 2 color green / blue : rgb(255,188,14)
multicolor 3 color white / blue / black : rgb(255,188,14)
multicolor 3 color blue / black / red : rgb(255,188,14)
multicolor 3 color black / red / green : rgb(255,188,14)
multicolor 3 color red / green / white : rgb(255,188,14)
multicolor 3 color green / white / blue : rgb(255,188,14)
multicolor 3 color white / black / red : rgb(255,188,14)
multicolor 3 color blue / red / green : rgb(255,188,14)
multicolor 3 color black / green / white : rgb(255,188,14)
multicolor 3 color red / white / blue : rgb(255,188,14)
multicolor 3 color green / blue / black : rgb(255,188,14)
multicolor 4 color white / blue / black / red : rgb(255,188,14)
multicolor 4 color blue / black / red / green : rgb(255,188,14)
multicolor 4 color black / red / green / white : rgb(255,188,14)
multicolor 4 color red / green / white / blue : rgb(255,188,14)
multicolor 4 color green / white / blue / black : rgb(255,188,14)
multicolor 5 color white / blue / black / red / green : rgb(255,188,14)
multicolor 5 color horizontal white / blue / black / red / green: rgb(255,188,14)
land 1 color white : rgb(109,62,39)
land 1 color blue : rgb(109,62,39)
land 1 color black : rgb(109,62,39)
land 1 color red : rgb(109,62,39)
land 1 color green : rgb(109,62,39)
land 1 color multicolor : rgb(109,62,39)
land 2 color white / blue : rgb(109,62,39)
land 2 color blue / black : rgb(109,62,39)
land 2 color black / red : rgb(109,62,39)
land 2 color red / green : rgb(109,62,39)
land 2 color green / white : rgb(109,62,39)
land 2 color white / black : rgb(109,62,39)
land 2 color blue / red : rgb(109,62,39)
land 2 color black / green : rgb(109,62,39)
land 2 color red / white : rgb(109,62,39)
land 2 color green / blue : rgb(109,62,39)
hybrid 2 color white / blue : rgb(243,26,136) # purple
hybrid 2 color blue / black : rgb(243,26,136)
hybrid 2 color black / red : rgb(243,26,136)
hybrid 2 color red / green : rgb(243,26,136)
hybrid 2 color green / white : rgb(243,26,136)
hybrid 2 color white / black : rgb(243,26,136)
hybrid 2 color blue / red : rgb(243,26,136)
hybrid 2 color black / green : rgb(243,26,136)
hybrid 2 color red / white : rgb(243,26,136)
hybrid 2 color green / blue : rgb(243,26,136)
hybrid 2 color artifact / white : rgb(243,26,136)
hybrid 2 color artifact / blue : rgb(243,26,136)
hybrid 2 color artifact / black : rgb(243,26,136)
hybrid 2 color artifact / red : rgb(243,26,136)
hybrid 2 color artifact / green : rgb(243,26,136)
hybrid 3 color white / blue / black : rgb(243,26,136)
hybrid 3 color blue / black / red : rgb(243,26,136)
hybrid 3 color black / red / green : rgb(243,26,136)
hybrid 3 color red / green / white : rgb(243,26,136)
hybrid 3 color green / white / blue : rgb(243,26,136)
hybrid 3 color white / black / red : rgb(243,26,136)
hybrid 3 color blue / red / green : rgb(243,26,136)
hybrid 3 color black / green / white : rgb(243,26,136)
hybrid 3 color red / white / blue : rgb(243,26,136)
hybrid 3 color green / blue / black : rgb(243,26,136)
hybrid 3 color horizontal white / blue / black : rgb(243,26,136)
hybrid 3 color horizontal blue / black / red : rgb(243,26,136)
hybrid 3 color horizontal black / red / green : rgb(243,26,136)
hybrid 3 color horizontal red / green / white : rgb(243,26,136)
hybrid 3 color horizontal green / white / blue : rgb(243,26,136)
hybrid 3 color horizontal white / black / red : rgb(243,26,136)
hybrid 3 color horizontal blue / red / green : rgb(243,26,136)
hybrid 3 color horizontal black / green / white : rgb(243,26,136)
hybrid 3 color horizontal red / white / blue : rgb(243,26,136)
hybrid 3 color horizontal green / blue / black : rgb(243,26,136)
hybrid 4 color white / blue / black / red : rgb(243,26,136)
hybrid 4 color blue / black / red / green : rgb(243,26,136)
hybrid 4 color black / red / green / white : rgb(243,26,136)
hybrid 4 color red / green / white / blue : rgb(243,26,136)
hybrid 4 color green / white / blue / black : rgb(243,26,136)
hybrid 4 color horizontal white / blue / black / red : rgb(243,26,136)
hybrid 4 color horizontal blue / black / red / green : rgb(243,26,136)
hybrid 4 color horizontal black / red / green / white : rgb(243,26,136)
hybrid 4 color horizontal red / green / white / blue : rgb(243,26,136)
hybrid 4 color horizontal green / white / blue / black : rgb(243,26,136)
hybrid 5 color white / blue / black / red / green : rgb(243,26,136)
hybrid 5 color horizontal white / blue / black / red / green : rgb(243,26,136)
hybrid vertical white / blue : rgb(243,26,136)
hybrid vertical white / black : rgb(243,26,136)
hybrid vertical white / red : rgb(243,26,136)
hybrid vertical white / green : rgb(243,26,136)
hybrid vertical blue / white : rgb(243,26,136)
hybrid vertical blue / black : rgb(243,26,136)
hybrid vertical blue / red : rgb(243,26,136)
hybrid vertical blue / green : rgb(243,26,136)
hybrid vertical black / white : rgb(243,26,136)
hybrid vertical black / blue : rgb(243,26,136)
hybrid vertical black / red : rgb(243,26,136)
hybrid vertical black / green : rgb(243,26,136)
hybrid vertical red / white : rgb(243,26,136)
hybrid vertical red / blue : rgb(243,26,136)
hybrid vertical red / black : rgb(243,26,136)
hybrid vertical red / green : rgb(243,26,136)
hybrid vertical green / white : rgb(243,26,136)
hybrid vertical green / blue : rgb(243,26,136)
hybrid vertical green / red : rgb(243,26,136)
hybrid vertical green / black : rgb(243,26,136)
hybrid vertical artifact / white : rgb(243,26,136)
hybrid vertical artifact / blue : rgb(243,26,136)
hybrid vertical artifact / black : rgb(243,26,136)
hybrid vertical artifact / red : rgb(243,26,136)
hybrid vertical artifact / green : rgb(243,26,136)
hybrid vertical white / artifact : rgb(243,26,136)
hybrid vertical blue / artifact : rgb(243,26,136)
hybrid vertical black / artifact : rgb(243,26,136)
hybrid vertical red / artifact : rgb(243,26,136)
hybrid vertical green / artifact : rgb(243,26,136)
# ... and for the card list
choice colors cardlist:
white : rgb(156,134,90)
blue : rgb(0,64,168)
black : rgb(0,0,0)
red : rgb(168,0,0)
green : rgb(0,168,0)
colorless : rgb(119,83,83)
artifact : rgb(72,90,100)
multicolor : rgb(120,120,0)
land : rgb(109,62,39)
# Sub menus, same colors
multicolor 2 color white / blue : rgb(120,120,0)
multicolor 2 color blue / black : rgb(120,120,0)
multicolor 2 color black / red : rgb(120,120,0)
multicolor 2 color red / green : rgb(120,120,0)
multicolor 2 color green / white : rgb(120,120,0)
multicolor 2 color white / black : rgb(120,120,0)
multicolor 2 color blue / red : rgb(120,120,0)
multicolor 2 color black / green : rgb(120,120,0)
multicolor 2 color red / white : rgb(120,120,0)
multicolor 2 color green / blue : rgb(120,120,0)
multicolor 3 color white / blue / black : rgb(120,120,0)
multicolor 3 color blue / black / red : rgb(120,120,0)
multicolor 3 color black / red / green : rgb(120,120,0)
multicolor 3 color red / green / white : rgb(120,120,0)
multicolor 3 color green / white / blue : rgb(120,120,0)
multicolor 3 color white / black / red : rgb(120,120,0)
multicolor 3 color blue / red / green : rgb(120,120,0)
multicolor 3 color black / green / white : rgb(120,120,0)
multicolor 3 color red / white / blue : rgb(120,120,0)
multicolor 3 color green / blue / black : rgb(120,120,0)
multicolor 4 color white / blue / black / red : rgb(120,120,0)
multicolor 4 color blue / black / red / green : rgb(120,120,0)
multicolor 4 color black / red / green / white : rgb(120,120,0)
multicolor 4 color red / green / white / blue : rgb(120,120,0)
multicolor 4 color green / white / blue / black : rgb(120,120,0)
multicolor 5 color white / blue / black / red / green : rgb(120,120,0)
multicolor 5 color horizontal white / blue / black / red / green: rgb(120,120,0)
land 1 color white : rgb(109,62,39)
land 1 color blue : rgb(109,62,39)
land 1 color black : rgb(109,62,39)
land 1 color red : rgb(109,62,39)
land 1 color green : rgb(109,62,39)
land 1 color multicolor : rgb(109,62,39)
land 2 color white / blue : rgb(109,62,39)
land 2 color blue / black : rgb(109,62,39)
land 2 color black / red : rgb(109,62,39)
land 2 color red / green : rgb(109,62,39)
land 2 color green / white : rgb(109,62,39)
land 2 color white / black : rgb(109,62,39)
land 2 color blue / red : rgb(109,62,39)
land 2 color black / green : rgb(109,62,39)
land 2 color red / white : rgb(109,62,39)
land 2 color green / blue : rgb(109,62,39)
hybrid 2 color white / blue : rgb(115,0,160) # purple
hybrid 2 color blue / black : rgb(115,0,160)
hybrid 2 color black / red : rgb(115,0,160)
hybrid 2 color red / green : rgb(115,0,160)
hybrid 2 color green / white : rgb(115,0,160)
hybrid 2 color white / black : rgb(115,0,160)
hybrid 2 color blue / red : rgb(115,0,160)
hybrid 2 color black / green : rgb(115,0,160)
hybrid 2 color red / white : rgb(115,0,160)
hybrid 2 color green / blue : rgb(115,0,160)
hybrid 2 color artifact / white : rgb(115,0,160)
hybrid 2 color artifact / blue : rgb(115,0,160)
hybrid 2 color artifact / black : rgb(115,0,160)
hybrid 2 color artifact / red : rgb(115,0,160)
hybrid 2 color artifact / green : rgb(115,0,160)
hybrid 3 color white / blue / black : rgb(115,0,160)
hybrid 3 color blue / black / red : rgb(115,0,160)
hybrid 3 color black / red / green : rgb(115,0,160)
hybrid 3 color red / green / white : rgb(115,0,160)
hybrid 3 color green / white / blue : rgb(115,0,160)
hybrid 3 color white / black / red : rgb(115,0,160)
hybrid 3 color blue / red / green : rgb(115,0,160)
hybrid 3 color black / green / white : rgb(115,0,160)
hybrid 3 color red / white / blue : rgb(115,0,160)
hybrid 3 color green / blue / black : rgb(115,0,160)
hybrid 3 color horizontal white / blue / black : rgb(115,0,160)
hybrid 3 color horizontal blue / black / red : rgb(115,0,160)
hybrid 3 color horizontal black / red / green : rgb(115,0,160)
hybrid 3 color horizontal red / green / white : rgb(115,0,160)
hybrid 3 color horizontal green / white / blue : rgb(115,0,160)
hybrid 3 color horizontal white / black / red : rgb(115,0,160)
hybrid 3 color horizontal blue / red / green : rgb(115,0,160)
hybrid 3 color horizontal black / green / white : rgb(115,0,160)
hybrid 3 color horizontal red / white / blue : rgb(115,0,160)
hybrid 3 color horizontal green / blue / black : rgb(115,0,160)
hybrid 4 color white / blue / black / red : rgb(115,0,160)
hybrid 4 color blue / black / red / green : rgb(115,0,160)
hybrid 4 color black / red / green / white : rgb(115,0,160)
hybrid 4 color red / green / white / blue : rgb(115,0,160)
hybrid 4 color green / white / blue / black : rgb(115,0,160)
hybrid 4 color horizontal white / blue / black / red : rgb(115,0,160)
hybrid 4 color horizontal blue / black / red / green : rgb(115,0,160)
hybrid 4 color horizontal black / red / green / white : rgb(115,0,160)
hybrid 4 color horizontal red / green / white / blue : rgb(115,0,160)
hybrid 4 color horizontal green / white / blue / black : rgb(115,0,160)
hybrid 5 color white / blue / black / red / green : rgb(115,0,160)
hybrid 5 color horizontal white / blue / black / red / green : rgb(115,0,160)
hybrid vertical white / blue : rgb(115,0,160)
hybrid vertical white / black : rgb(115,0,160)
hybrid vertical white / red : rgb(115,0,160)
hybrid vertical white / green : rgb(115,0,160)
hybrid vertical blue / white : rgb(115,0,160)
hybrid vertical blue / black : rgb(115,0,160)
hybrid vertical blue / red : rgb(115,0,160)
hybrid vertical blue / green : rgb(115,0,160)
hybrid vertical black / white : rgb(115,0,160)
hybrid vertical black / blue : rgb(115,0,160)
hybrid vertical black / red : rgb(115,0,160)
hybrid vertical black / green : rgb(115,0,160)
hybrid vertical red / white : rgb(115,0,160)
hybrid vertical red / blue : rgb(115,0,160)
hybrid vertical red / black : rgb(115,0,160)
hybrid vertical red / green : rgb(115,0,160)
hybrid vertical green / white : rgb(115,0,160)
hybrid vertical green / blue : rgb(115,0,160)
hybrid vertical green / red : rgb(115,0,160)
hybrid vertical green / black : rgb(115,0,160)
hybrid vertical artifact / white : rgb(115,0,160)
hybrid vertical artifact / blue : rgb(115,0,160)
hybrid vertical artifact / black : rgb(115,0,160)
hybrid vertical artifact / red : rgb(115,0,160)
hybrid vertical artifact / green : rgb(115,0,160)
hybrid vertical white / artifact : rgb(115,0,160)
hybrid vertical blue / artifact : rgb(115,0,160)
hybrid vertical black / artifact : rgb(115,0,160)
hybrid vertical red / artifact : rgb(115,0,160)
hybrid vertical green / artifact : rgb(115,0,160)
# TODO : Add the rest
# Card power/thoughness, most are generated using the blend-scripts
# Requires
# include file: magic-blends.mse-include/blend-scripts
# In the init script of the style
choice images:
white : script: pt_template("w")
blue : script: pt_template("u")
black : script: pt_template("b")
red : script: pt_template("r")
green : script: pt_template("g")
colorless : script: pt_template("c")
artifact : script: pt_template("a")
multicolor : script: pt_template("m")
multicolor 2 color white / blue : script: multi_hybrid_pt("u")
multicolor 2 color blue / black : script: multi_hybrid_pt("b")
multicolor 2 color black / red : script: multi_hybrid_pt("r")
multicolor 2 color red / green : script: multi_hybrid_pt("g")
multicolor 2 color green / white : script: multi_hybrid_pt("w")
multicolor 2 color white / black : script: multi_hybrid_pt("b")
multicolor 2 color blue / red : script: multi_hybrid_pt("r")
multicolor 2 color black / green : script: multi_hybrid_pt("g")
multicolor 2 color red / white : script: multi_hybrid_pt("w")
multicolor 2 color green / blue : script: multi_hybrid_pt("u")
multicolor 3 color white / blue / black : script: multi_hybrid_pt("b")
multicolor 3 color blue / black / red : script: multi_hybrid_pt("r")
multicolor 3 color black / red / green : script: multi_hybrid_pt("g")
multicolor 3 color red / green / white : script: multi_hybrid_pt("w")
multicolor 3 color green / white / blue : script: multi_hybrid_pt("u")
multicolor 3 color white / black / red : script: multi_hybrid_pt("r")
multicolor 3 color blue / red / green : script: multi_hybrid_pt("g")
multicolor 3 color black / green / white : script: multi_hybrid_pt("w")
multicolor 3 color red / white / blue : script: multi_hybrid_pt("u")
multicolor 3 color green / blue / black : script: multi_hybrid_pt("b")
multicolor 4 color white / blue / black / red : script: multi_hybrid_pt("r")
multicolor 4 color blue / black / red / green : script: multi_hybrid_pt("g")
multicolor 4 color black / red / green / white : script: multi_hybrid_pt("w")
multicolor 4 color red / green / white / blue : script: multi_hybrid_pt("u")
multicolor 4 color green / white / blue / black : script: multi_hybrid_pt("b")
multicolor 5 color white / blue / black / red / green : script: multi_hybrid_pt("r")
multicolor 5 color horizontal white / blue / black / red / green : script: multi_hybrid_pt("g")
land : script: pt_template("l")
land 1 color white : script: pt_template("wl")
land 1 color blue : script: pt_template("ul")
land 1 color black : script: pt_template("bl")
land 1 color red : script: pt_template("rl")
land 1 color green : script: pt_template("gl")
land 1 color multicolor : script: pt_template("ml")
land 2 color white / blue : script: card_hybrid_pt("ul")
land 2 color blue / black : script: card_hybrid_pt("bl")
land 2 color black / red : script: card_hybrid_pt("rl")
land 2 color red / green : script: card_hybrid_pt("gl")
land 2 color green / white : script: card_hybrid_pt("wl")
land 2 color white / black : script: card_hybrid_pt("bl")
land 2 color blue / red : script: card_hybrid_pt("rl")
land 2 color black / green : script: card_hybrid_pt("gl")
land 2 color red / white : script: card_hybrid_pt("wl")
land 2 color green / blue : script: card_hybrid_pt("ul")
hybrid 2 color white / blue : script: card_hybrid_pt("u")
hybrid 2 color blue / black : script: card_hybrid_pt("b")
hybrid 2 color black / red : script: card_hybrid_pt("r")
hybrid 2 color red / green : script: card_hybrid_pt("g")
hybrid 2 color green / white : script: card_hybrid_pt("w")
hybrid 2 color white / black : script: card_hybrid_pt("b")
hybrid 2 color blue / red : script: card_hybrid_pt("r")
hybrid 2 color black / green : script: card_hybrid_pt("g")
hybrid 2 color red / white : script: card_hybrid_pt("w")
hybrid 2 color green / blue : script: card_hybrid_pt("u")
hybrid 2 color artifact / white : script: card_hybrid_pt("w")
hybrid 2 color artifact / blue : script: card_hybrid_pt("u")
hybrid 2 color artifact / black : script: card_hybrid_pt("b")
hybrid 2 color artifact / red : script: card_hybrid_pt("r")
hybrid 2 color artifact / green : script: card_hybrid_pt("g")
hybrid 2 color overlay white / blue : script: card_hybrid_pt_overlay("wu")
hybrid 2 color overlay blue / black : script: card_hybrid_pt_overlay("ub")
hybrid 2 color overlay black / red : script: card_hybrid_pt_overlay("br")
hybrid 2 color overlay red / green : script: card_hybrid_pt_overlay("rg")
hybrid 2 color overlay green / white : script: card_hybrid_pt_overlay("gw")
hybrid 2 color overlay white / black : script: card_hybrid_pt_overlay("wb")
hybrid 2 color overlay blue / red : script: card_hybrid_pt_overlay("ur")
hybrid 2 color overlay black / green : script: card_hybrid_pt_overlay("bg")
hybrid 2 color overlay red / white : script: card_hybrid_pt_overlay("rw")
hybrid 2 color overlay green / blue : script: card_hybrid_pt_overlay("gu")
hybrid 3 color white / blue / black : script: card_hybrid_pt("b")
hybrid 3 color blue / black / red : script: card_hybrid_pt("r")
hybrid 3 color black / red / green : script: card_hybrid_pt("g")
hybrid 3 color red / green / white : script: card_hybrid_pt("w")
hybrid 3 color green / white / blue : script: card_hybrid_pt("u")
hybrid 3 color white / black / red : script: card_hybrid_pt("r")
hybrid 3 color blue / red / green : script: card_hybrid_pt("g")
hybrid 3 color black / green / white : script: card_hybrid_pt("w")
hybrid 3 color red / white / blue : script: card_hybrid_pt("u")
hybrid 3 color green / blue / black : script: card_hybrid_pt("b")
hybrid 3 color horizontal white / blue / black : script: card_hybrid_3h_pt("ub")
hybrid 3 color horizontal blue / black / red : script: card_hybrid_3h_pt("br")
hybrid 3 color horizontal black / red / green : script: card_hybrid_3h_pt("rg")
hybrid 3 color horizontal red / green / white : script: card_hybrid_3h_pt("gw")
hybrid 3 color horizontal green / white / blue : script: card_hybrid_3h_pt("wu")
hybrid 3 color horizontal white / black / red : script: card_hybrid_3h_pt("br")
hybrid 3 color horizontal blue / red / green : script: card_hybrid_3h_pt("rg")
hybrid 3 color horizontal black / green / white : script: card_hybrid_3h_pt("gw")
hybrid 3 color horizontal red / white / blue : script: card_hybrid_3h_pt("wu")
hybrid 3 color horizontal green / blue / black : script: card_hybrid_3h_pt("ub")
hybrid 4 color white / blue / black / red : script: card_hybrid_pt("r")
hybrid 4 color blue / black / red / green : script: card_hybrid_pt("g")
hybrid 4 color black / red / green / white : script: card_hybrid_pt("w")
hybrid 4 color red / green / white / blue : script: card_hybrid_pt("u")
hybrid 4 color green / white / blue / black : script: card_hybrid_pt("b")
hybrid 4 color horizontal white / blue / black / red : script: card_hybrid_4h_pt("br")
hybrid 4 color horizontal blue / black / red / green : script: card_hybrid_4h_pt("rg")
hybrid 4 color horizontal black / red / green / white : script: card_hybrid_4h_pt("gw")
hybrid 4 color horizontal red / green / white / blue : script: card_hybrid_4h_pt("wu")
hybrid 4 color horizontal green / white / blue / black : script: card_hybrid_4h_pt("ub")
hybrid 5 color white / blue / black / red / green : script: card_hybrid_pt("r")
hybrid 5 color horizontal white / blue / black / red / green : script: card_hybrid_pt("5b")
hybrid vertical white / blue : script: card_hybrid_pt("u")
hybrid vertical white / black : script: card_hybrid_pt("b")
hybrid vertical white / red : script: card_hybrid_pt("r")
hybrid vertical white / green : script: card_hybrid_pt("g")
hybrid vertical blue / white : script: card_hybrid_pt("w")
hybrid vertical blue / black : script: card_hybrid_pt("b")
hybrid vertical blue / red : script: card_hybrid_pt("r")
hybrid vertical blue / green : script: card_hybrid_pt("g")
hybrid vertical black / white : script: card_hybrid_pt("w")
hybrid vertical black / blue : script: card_hybrid_pt("u")
hybrid vertical black / red : script: card_hybrid_pt("r")
hybrid vertical black / green : script: card_hybrid_pt("g")
hybrid vertical red / white : script: card_hybrid_pt("w")
hybrid vertical red / blue : script: card_hybrid_pt("u")
hybrid vertical red / black : script: card_hybrid_pt("b")
hybrid vertical red / green : script: card_hybrid_pt("g")
hybrid vertical green / white : script: card_hybrid_pt("w")
hybrid vertical green / blue : script: card_hybrid_pt("u")
hybrid vertical green / red : script: card_hybrid_pt("b")
hybrid vertical green / black : script: card_hybrid_pt("r")
hybrid vertical artifact / white : script: card_hybrid_pt("w")
hybrid vertical artifact / blue : script: card_hybrid_pt("u")
hybrid vertical artifact / black : script: card_hybrid_pt("b")
hybrid vertical artifact / red : script: card_hybrid_pt("r")
hybrid vertical artifact / green : script: card_hybrid_pt("g")
hybrid vertical white / artifact : script: card_hybrid_pt("a")
hybrid vertical blue / artifact : script: card_hybrid_pt("a")
hybrid vertical black / artifact : script: card_hybrid_pt("a")
hybrid vertical red / artifact : script: card_hybrid_pt("a")
hybrid vertical green / artifact : script: card_hybrid_pt("a")
# Card power/thoughness, most are generated using the blend-scripts
# Requires
# include file: magic-blends.mse-include/blend-scripts
# In the init script of the style
choice images:
white : script: pt_template("w")
blue : script: pt_template("u")
black : script: pt_template("b")
red : script: pt_template("r")
green : script: pt_template("g")
colorless : script: pt_template("c")
artifact : script: pt_template("a")
multicolor : script: pt_template("m")
multicolor 2 color white / blue : script: multi_hybrid_pt("u")
multicolor 2 color blue / black : script: multi_hybrid_pt("b")
multicolor 2 color black / red : script: multi_hybrid_pt("r")
multicolor 2 color red / green : script: multi_hybrid_pt("g")
multicolor 2 color green / white : script: multi_hybrid_pt("w")
multicolor 2 color white / black : script: multi_hybrid_pt("b")
multicolor 2 color blue / red : script: multi_hybrid_pt("r")
multicolor 2 color black / green : script: multi_hybrid_pt("g")
multicolor 2 color red / white : script: multi_hybrid_pt("w")
multicolor 2 color green / blue : script: multi_hybrid_pt("u")
multicolor 3 color white / blue / black : script: multi_hybrid_pt("b")
multicolor 3 color blue / black / red : script: multi_hybrid_pt("r")
multicolor 3 color black / red / green : script: multi_hybrid_pt("g")
multicolor 3 color red / green / white : script: multi_hybrid_pt("w")
multicolor 3 color green / white / blue : script: multi_hybrid_pt("u")
multicolor 3 color white / black / red : script: multi_hybrid_pt("r")
multicolor 3 color blue / red / green : script: multi_hybrid_pt("g")
multicolor 3 color black / green / white : script: multi_hybrid_pt("w")
multicolor 3 color red / white / blue : script: multi_hybrid_pt("u")
multicolor 3 color green / blue / black : script: multi_hybrid_pt("b")
multicolor 4 color white / blue / black / red : script: multi_hybrid_pt("u")
multicolor 4 color blue / black / red / green : script: multi_hybrid_pt("b")
multicolor 4 color black / red / green / white : script: multi_hybrid_pt("r")
multicolor 4 color red / green / white / blue : script: multi_hybrid_pt("g")
multicolor 4 color green / white / blue / black : script: multi_hybrid_pt("w")
multicolor 5 color white / blue / black / red / green : script: multi_hybrid_pt("u")
multicolor 5 color horizontal white / blue / black / red / green : script: multi_hybrid_pt("g")
# No p/t boxes for lands yet
land : script: pt_template("l")
land 1 color white : script: pt_template("wl")
land 1 color blue : script: pt_template("ul")
land 1 color black : script: pt_template("bl")
land 1 color red : script: pt_template("rl")
land 1 color green : script: pt_template("gl")
land 1 color multicolor : script: pt_template("ml")
land 2 color white / blue : script: card_hybrid_pt("ul")
land 2 color blue / black : script: card_hybrid_pt("bl")
land 2 color black / red : script: card_hybrid_pt("rl")
land 2 color red / green : script: card_hybrid_pt("gl")
land 2 color green / white : script: card_hybrid_pt("wl")
land 2 color white / black : script: card_hybrid_pt("bl")
land 2 color blue / red : script: card_hybrid_pt("rl")
land 2 color black / green : script: card_hybrid_pt("gl")
land 2 color red / white : script: card_hybrid_pt("wl")
land 2 color green / blue : script: card_hybrid_pt("ul")
hybrid 2 color white / blue : script: card_hybrid_pt("u")
hybrid 2 color blue / black : script: card_hybrid_pt("b")
hybrid 2 color black / red : script: card_hybrid_pt("r")
hybrid 2 color red / green : script: card_hybrid_pt("g")
hybrid 2 color green / white : script: card_hybrid_pt("w")
hybrid 2 color white / black : script: card_hybrid_pt("b")
hybrid 2 color blue / red : script: card_hybrid_pt("r")
hybrid 2 color black / green : script: card_hybrid_pt("g")
hybrid 2 color red / white : script: card_hybrid_pt("w")
hybrid 2 color green / blue : script: card_hybrid_pt("u")
hybrid 2 color artifact / white : script: card_hybrid_pt("w")
hybrid 2 color artifact / blue : script: card_hybrid_pt("u")
hybrid 2 color artifact / black : script: card_hybrid_pt("b")
hybrid 2 color artifact / red : script: card_hybrid_pt("r")
hybrid 2 color artifact / green : script: card_hybrid_pt("g")
hybrid 2 color overlay white / blue : script: card_hybrid_pt_overlay("wu")
hybrid 2 color overlay blue / black : script: card_hybrid_pt_overlay("ub")
hybrid 2 color overlay black / red : script: card_hybrid_pt_overlay("br")
hybrid 2 color overlay red / green : script: card_hybrid_pt_overlay("rg")
hybrid 2 color overlay green / white : script: card_hybrid_pt_overlay("gw")
hybrid 2 color overlay white / black : script: card_hybrid_pt_overlay("wb")
hybrid 2 color overlay blue / red : script: card_hybrid_pt_overlay("ur")
hybrid 2 color overlay black / green : script: card_hybrid_pt_overlay("bg")
hybrid 2 color overlay red / white : script: card_hybrid_pt_overlay("rw")
hybrid 2 color overlay green / blue : script: card_hybrid_pt_overlay("gu")
hybrid 3 color white / blue / black : script: card_hybrid_pt("u")
hybrid 3 color blue / black / red : script: card_hybrid_pt("b")
hybrid 3 color black / red / green : script: card_hybrid_pt("r")
hybrid 3 color red / green / white : script: card_hybrid_pt("g")
hybrid 3 color green / white / blue : script: card_hybrid_pt("w")
hybrid 3 color white / black / red : script: card_hybrid_pt("b")
hybrid 3 color blue / red / green : script: card_hybrid_pt("r")
hybrid 3 color black / green / white : script: card_hybrid_pt("g")
hybrid 3 color red / white / blue : script: card_hybrid_pt("w")
hybrid 3 color green / blue / black : script: card_hybrid_pt("u")
hybrid 4 color white / blue / black / red : script: card_hybrid_pt("u")
hybrid 4 color blue / black / red / green : script: card_hybrid_pt("b")
hybrid 4 color black / red / green / white : script: card_hybrid_pt("r")
hybrid 4 color red / green / white / blue : script: card_hybrid_pt("g")
hybrid 4 color green / white / blue / black : script: card_hybrid_pt("w")
hybrid 5 color white / blue / black / red / green : script: card_hybrid_pt("u")
hybrid 5 color horizontal white / blue / black / red / green : script: card_hybrid_pt("g")
hybrid vertical white / blue : script: card_hybrid_pt("w")
hybrid vertical white / black : script: card_hybrid_pt("w")
hybrid vertical white / red : script: card_hybrid_pt("w")
hybrid vertical white / green : script: card_hybrid_pt("w")
hybrid vertical blue / white : script: card_hybrid_pt("u")
hybrid vertical blue / black : script: card_hybrid_pt("u")
hybrid vertical blue / red : script: card_hybrid_pt("u")
hybrid vertical blue / green : script: card_hybrid_pt("u")
hybrid vertical black / white : script: card_hybrid_pt("b")
hybrid vertical black / blue : script: card_hybrid_pt("b")
hybrid vertical black / red : script: card_hybrid_pt("b")
hybrid vertical black / green : script: card_hybrid_pt("b")
hybrid vertical red / white : script: card_hybrid_pt("r")
hybrid vertical red / blue : script: card_hybrid_pt("r")
hybrid vertical red / black : script: card_hybrid_pt("r")
hybrid vertical red / green : script: card_hybrid_pt("r")
hybrid vertical green / white : script: card_hybrid_pt("g")
hybrid vertical green / blue : script: card_hybrid_pt("g")
hybrid vertical green / red : script: card_hybrid_pt("g")
hybrid vertical green / black : script: card_hybrid_pt("g")
hybrid vertical artifact / white : script: card_hybrid_pt("a")
hybrid vertical artifact / blue : script: card_hybrid_pt("a")
hybrid vertical artifact / black : script: card_hybrid_pt("a")
hybrid vertical artifact / red : script: card_hybrid_pt("a")
hybrid vertical artifact / green : script: card_hybrid_pt("a")
hybrid vertical white / artifact : script: card_hybrid_pt("w")
hybrid vertical blue / artifact : script: card_hybrid_pt("u")
hybrid vertical black / artifact : script: card_hybrid_pt("b")
hybrid vertical red / artifact : script: card_hybrid_pt("r")
hybrid vertical green / artifact : script: card_hybrid_pt("g")
# Card power/thoughness, most are generated using the blend-scripts
# Requires
# include file: magic-blends.mse-include/blend-scripts
# In the init script of the style
choice images:
white : script: pt2_template("w")
blue : script: pt2_template("u")
black : script: pt2_template("b")
red : script: pt2_template("r")
green : script: pt2_template("g")
colorless : script: pt2_template("c")
artifact : script: pt2_template("a")
multicolor : script: pt2_template("m")
multicolor 2 color white / blue : script: multi_hybrid_pt2("w")
multicolor 2 color blue / black : script: multi_hybrid_pt2("u")
multicolor 2 color black / red : script: multi_hybrid_pt2("b")
multicolor 2 color red / green : script: multi_hybrid_pt2("r")
multicolor 2 color green / white : script: multi_hybrid_pt2("g")
multicolor 2 color white / black : script: multi_hybrid_pt2("w")
multicolor 2 color blue / red : script: multi_hybrid_pt2("u")
multicolor 2 color black / green : script: multi_hybrid_pt2("b")
multicolor 2 color red / white : script: multi_hybrid_pt2("r")
multicolor 2 color green / blue : script: multi_hybrid_pt2("g")
multicolor 3 color white / blue / black : script: multi_hybrid_pt2("b")
multicolor 3 color blue / black / red : script: multi_hybrid_pt2("r")
multicolor 3 color black / red / green : script: multi_hybrid_pt2("g")
multicolor 3 color red / green / white : script: multi_hybrid_pt2("w")
multicolor 3 color green / white / blue : script: multi_hybrid_pt2("u")
multicolor 3 color white / black / red : script: multi_hybrid_pt2("r")
multicolor 3 color blue / red / green : script: multi_hybrid_pt2("g")
multicolor 3 color black / green / white : script: multi_hybrid_pt2("w")
multicolor 3 color red / white / blue : script: multi_hybrid_pt2("u")
multicolor 3 color green / blue / black : script: multi_hybrid_pt2("b")
multicolor 4 color white / blue / black / red : script: multi_hybrid_pt2("b")
multicolor 4 color blue / black / red / green : script: multi_hybrid_pt2("r")
multicolor 4 color black / red / green / white : script: multi_hybrid_pt2("g")
multicolor 4 color red / green / white / blue : script: multi_hybrid_pt2("w")
multicolor 4 color green / white / blue / black : script: multi_hybrid_pt2("u")
multicolor 5 color white / blue / black / red / green : script: multi_hybrid_pt2("b")
multicolor 5 color horizontal white / blue / black / red / green : script: multi_hybrid_pt2("w")
land : script: pt2_template("l")
land 1 color white : script: pt2_template("wl")
land 1 color blue : script: pt2_template("ul")
land 1 color black : script: pt2_template("bl")
land 1 color red : script: pt2_template("rl")
land 1 color green : script: pt2_template("gl")
land 1 color multicolor : script: pt2_template("ml")
land 2 color white / blue : script: card_hybrid_pt2("ul")
land 2 color blue / black : script: card_hybrid_pt2("bl")
land 2 color black / red : script: card_hybrid_pt2("rl")
land 2 color red / green : script: card_hybrid_pt2("gl")
land 2 color green / white : script: card_hybrid_pt2("wl")
land 2 color white / black : script: card_hybrid_pt2("bl")
land 2 color blue / red : script: card_hybrid_pt2("rl")
land 2 color black / green : script: card_hybrid_pt2("gl")
land 2 color red / white : script: card_hybrid_pt2("wl")
land 2 color green / blue : script: card_hybrid_pt2("ul")
hybrid 2 color white / blue : script: card_hybrid_pt2("w")
hybrid 2 color blue / black : script: card_hybrid_pt2("u")
hybrid 2 color black / red : script: card_hybrid_pt2("b")
hybrid 2 color red / green : script: card_hybrid_pt2("r")
hybrid 2 color green / white : script: card_hybrid_pt2("g")
hybrid 2 color white / black : script: card_hybrid_pt2("w")
hybrid 2 color blue / red : script: card_hybrid_pt2("u")
hybrid 2 color black / green : script: card_hybrid_pt2("b")
hybrid 2 color red / white : script: card_hybrid_pt2("r")
hybrid 2 color green / blue : script: card_hybrid_pt2("g")
hybrid 2 color artifact / white : script: card_hybrid_pt2("a")
hybrid 2 color artifact / blue : script: card_hybrid_pt2("a")
hybrid 2 color artifact / black : script: card_hybrid_pt2("a")
hybrid 2 color artifact / red : script: card_hybrid_pt2("a")
hybrid 2 color artifact / green : script: card_hybrid_pt2("a")
hybrid 2 color overlay white / blue : script: card_hybrid_pt2_overlay("wu")
hybrid 2 color overlay blue / black : script: card_hybrid_pt2_overlay("ub")
hybrid 2 color overlay black / red : script: card_hybrid_pt2_overlay("br")
hybrid 2 color overlay red / green : script: card_hybrid_pt2_overlay("rg")
hybrid 2 color overlay green / white : script: card_hybrid_pt2_overlay("gw")
hybrid 2 color overlay white / black : script: card_hybrid_pt2_overlay("wb")
hybrid 2 color overlay blue / red : script: card_hybrid_pt2_overlay("ur")
hybrid 2 color overlay black / green : script: card_hybrid_pt2_overlay("bg")
hybrid 2 color overlay red / white : script: card_hybrid_pt2_overlay("rw")
hybrid 2 color overlay green / blue : script: card_hybrid_pt2_overlay("gu")
hybrid 3 color white / blue / black : script: card_hybrid_pt2("b")
hybrid 3 color blue / black / red : script: card_hybrid_pt2("r")
hybrid 3 color black / red / green : script: card_hybrid_pt2("g")
hybrid 3 color red / green / white : script: card_hybrid_pt2("w")
hybrid 3 color green / white / blue : script: card_hybrid_pt2("u")
hybrid 3 color white / black / red : script: card_hybrid_pt2("r")
hybrid 3 color blue / red / green : script: card_hybrid_pt2("g")
hybrid 3 color black / green / white : script: card_hybrid_pt2("w")
hybrid 3 color red / white / blue : script: card_hybrid_pt2("u")
hybrid 3 color green / blue / black : script: card_hybrid_pt2("b")
hybrid 4 color white / blue / black / red : script: card_hybrid_pt2("b")
hybrid 4 color blue / black / red / green : script: card_hybrid_pt2("r")
hybrid 4 color black / red / green / white : script: card_hybrid_pt2("g")
hybrid 4 color red / green / white / blue : script: card_hybrid_pt2("w")
hybrid 4 color green / white / blue / black : script: card_hybrid_pt2("u")
hybrid 5 color white / blue / black / red / green : script: card_hybrid_pt2("g")
hybrid 5 color horizontal white / blue / black / red / green : script: card_hybrid_pt2("w")
hybrid vertical white / blue : script: card_hybrid_pt2("u")
hybrid vertical white / black : script: card_hybrid_pt2("b")
hybrid vertical white / red : script: card_hybrid_pt2("r")
hybrid vertical white / green : script: card_hybrid_pt2("g")
hybrid vertical blue / white : script: card_hybrid_pt2("w")
hybrid vertical blue / black : script: card_hybrid_pt2("b")
hybrid vertical blue / red : script: card_hybrid_pt2("r")
hybrid vertical blue / green : script: card_hybrid_pt2("g")
hybrid vertical black / white : script: card_hybrid_pt2("w")
hybrid vertical black / blue : script: card_hybrid_pt2("u")
hybrid vertical black / red : script: card_hybrid_pt2("r")
hybrid vertical black / green : script: card_hybrid_pt2("g")
hybrid vertical red / white : script: card_hybrid_pt2("w")
hybrid vertical red / blue : script: card_hybrid_pt2("u")
hybrid vertical red / black : script: card_hybrid_pt2("b")
hybrid vertical red / green : script: card_hybrid_pt2("g")
hybrid vertical green / white : script: card_hybrid_pt2("w")
hybrid vertical green / blue : script: card_hybrid_pt2("u")
hybrid vertical green / red : script: card_hybrid_pt2("r")
hybrid vertical green / black : script: card_hybrid_pt2("b")
hybrid vertical artifact / white : script: card_hybrid_pt2("w")
hybrid vertical artifact / blue : script: card_hybrid_pt2("u")
hybrid vertical artifact / black : script: card_hybrid_pt2("b")
hybrid vertical artifact / red : script: card_hybrid_pt2("r")
hybrid vertical artifact / green : script: card_hybrid_pt2("g")
hybrid vertical white / artifact : script: card_hybrid_pt2("a")
hybrid vertical blue / artifact : script: card_hybrid_pt2("a")
hybrid vertical black / artifact : script: card_hybrid_pt2("a")
hybrid vertical red / artifact : script: card_hybrid_pt2("a")
hybrid vertical green / artifact : script: card_hybrid_pt2("a")
# Scripts for blending images
# Included by a style file in its init script
########################################################################
# Filenames and other defaults
########################################################################
mask_hybrid_with_land := { false }
template := { input + "{type}.jpg" }
land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" }
hybrid_previews := "land,hybrid"
########################################################################
# Combining multiple colors (hybrids)
########################################################################
card_hybrid_2 := {
linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
}
overlay_hybrid := {
combine_blend(
image1: template(colors[0]),
image2: template(colors[1]),
combine: "symmetric overlay"
)
}
# vertical version of a horizontal hybrid
vertical_card_hybrid := {
do_linear_blend := linear_blend
linear_blend := { do_linear_blend(x1: 0, x2: 0, y1: x1, y2: x2) }
card_hybrid.horizontal[color_count]()
}
card_hybrid := [
radial: [
0: { template("c") }
1: { template(colors[0]) }
2: card_hybrid_2
3: {linear_blend(
image1: card_hybrid_2(colors: colors[0] + colors[1]),
image2: template(colors[2]),
x1: 0, y1: 0.55
x2: 0, y2: 0.77
)}
4: {linear_blend(
image1: card_hybrid_2(colors: colors[0] + colors[1])
image2: card_hybrid_2(colors: colors[3] + colors[2])
x1: 0, y1: 0.4
x2: 0, y2: 0.62
)}
5: {linear_blend(
image1: linear_blend(
image1: card_hybrid_2(colors: colors[0] + colors[1]),
image2: card_hybrid_2(colors: colors[4] + colors[2]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: template(colors[3]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)}
6: {linear_blend(
image1: linear_blend(
image1: card_hybrid_2(colors: colors[0] + colors[1]),
image2: card_hybrid_2(colors: colors[5] + colors[2]),
x1: 0, y1: 0.19
x2: 0, y2: 0.35
),
image2: card_hybrid_2(colors: colors[4] + colors[3]),
x1: 0, y1: 0.777
x2: 0, y2: 0.937
)}
7: {linear_blend(
image1: linear_blend(
image1: linear_blend(
image1: card_hybrid_2(colors: colors[0] + colors[1]),
image2: card_hybrid_2(colors: colors[6] + colors[3]),
x1: 0, y1: 0.34
x2: 0, y2: 0.50
),
image2: card_hybrid_2(colors: colors[5] + colors[3]),
x1: 0, y1: 0.877
x2: 0, y2: 0.937
),
image2: template(colors[4]),
x1: 0, y1: 1.140
x2: 0, y2: 1.300
)}
]
horizontal: [
1: { template(colors[0]) }
2: card_hybrid_2
3: {linear_blend(
image1: template(colors[0])
x1: 0.22, y1: 0
x2: 0.4, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.6, y1: 0
x2: 0.78, y2: 0
image2: template(colors[2])
))}
4: {linear_blend(
# blend = 0.16
image1: template(colors[0])
x1: 0.15, y1: 0
x2: 0.31, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 0.42, y1: 0
x2: 0.58, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 0.69, y1: 0
x2: 0.85, y2: 0
image2: template(colors[3])
)))}
5: {linear_blend(
image1: template(colors[0])
x1: 2.0 / 15, y1: 0
x2: 4.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 5.0 / 15, y1: 0
x2: 7.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 8.0 / 15, y1: 0
x2: 10.0 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 11.0 / 15, y1: 0
x2: 13.0 / 15, y2: 0
image2: template(colors[4])
))))}
6: {linear_blend(
image1: template(colors[0])
x1: 1.5 / 15, y1: 0
x2: 3.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 4.1 / 15, y1: 0
x2: 5.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 6.7 / 15, y1: 0
x2: 8.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 9.3 / 15, y1: 0
x2: 10.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 11.9 / 15, y1: 0
x2: 13.5 / 15, y2: 0
image2: template(colors[5])
)))))}
7: {linear_blend(
image1: template(colors[0])
x1: 1.3 / 15, y1: 0
x2: 2.7 / 15, y2: 0
image2: linear_blend(
image1: template(colors[1])
x1: 3.5 / 15, y1: 0
x2: 4.9 / 15, y2: 0
image2: linear_blend(
image1: template(colors[2])
x1: 5.7 / 15, y1: 0
x2: 7.1 / 15, y2: 0
image2: linear_blend(
image1: template(colors[3])
x1: 7.9 / 15, y1: 0
x2: 9.3 / 15, y2: 0
image2: linear_blend(
image1: template(colors[4])
x1: 10.1 / 15, y1: 0
x2: 11.5 / 15, y2: 0
image2: linear_blend(
image1: template(colors[5])
x1: 12.3 / 15, y1: 0
x2: 13.7 / 15, y2: 0
image2: template(colors[6])
))))))}
]
vertical: [
1: { template(colors[0]) }
2: { linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0, y1: 0.4
x2: 0, y2: 0.6
)}
3: vertical_card_hybrid
4: vertical_card_hybrid
5: vertical_card_hybrid
6: vertical_card_hybrid
7: vertical_card_hybrid
]
overlay: [
1: { template(colors[0]) }
2: overlay_hybrid
]
]
########################################################################
# P/T box
########################################################################
# These are easier
horizontal_pt_hybrid := [
1: { template(colors[0]) }
2: { template(colors[1]) }
3: { linear_blend(
image1: template(colors[1])
image2: template(colors[2])
x1: -0.51, y1: 0
x2: 0.26, y2: 0
)}
4: { linear_blend(
image1: template(colors[2])
image2: template(colors[3])
x1: -0.1, y1: 0
x2: 0.6, y2: 0
)}
5: { linear_blend(
image1: template(colors[3])
image2: template(colors[4])
x1: 0.08, y1: 0
x2: 0.65, y2: 0
)}
6: { template(colors[5]) } #TODO
7: { template(colors[6]) } #TODO
]
pt_hybrid := [
radial: [
0: { template("c") }
1: { template(colors[0]) }
2: { template(colors[1]) }
3: { template(colors[2]) }
4: { template(colors[2]) }
5: { linear_blend(
image1: template(colors[2])
image2: template(colors[3])
x1: 0, y1: -1.5
x2: 0, y2: 0.7
)}
6: { linear_blend(
image1: template(colors[2])
image2: template(colors[3])
x1: 0, y1: -1.5
x2: 0, y2: 0.7
)}
7: { template(colors[4]) }
]
horizontal: horizontal_pt_hybrid
vertical: [
1: { template(colors[0]) }
2: { template(colors[1]) }
3: { template(colors[2]) }
4: { template(colors[3]) }
5: { template(colors[4]) }
6: { template(colors[5]) } # Probably not right
7: { template(colors[6]) }
]
overlay: [
1: { template(colors[0]) }
2: overlay_hybrid
]
]
########################################################################
# P/T boxes of flip cards
########################################################################
flip_pt_hybrid := [
radial: [
0: { template("c") }
1: { template(colors[0]) }
2: { template(colors[1]) }
3: { template(colors[1]) }
4: { template(colors[1]) }
5: { linear_blend(
image1: template(colors[1])
image2: template(colors[2])
x1: 0, y1: -1
x2: 0, y2: 1.8
)}
6: { linear_blend(
image1: template(colors[1])
image2: template(colors[2])
x1: 0, y1: -1
x2: 0, y2: 1.8
)}
7: { template(colors[4]) }
]
horizontal: horizontal_pt_hybrid
vertical: [
1: { template(colors[0]) }
2: { template(colors[0]) }
3: { linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0, y1: 0
x2: 0, y2: 2
)}
4: { linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0, y1: -1.5
x2: 0, y2: 1
)}
5: { linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0, y1: -1.1
x2: 0, y2: 0.2
)}
6: { template(colors[1]) } # Probably not right
7: { template(colors[2]) }
]
overlay: [
1: { template(colors[0]) }
2: overlay_hybrid
]
]
flip_pt_hybrid2 := [
radial: [
0: { template("c") }
1: { template(colors[0]) }
2: { template(colors[1]) }
3: { linear_blend(
image1: template(colors[0])
image2: template(colors[2])
x1: 0, y1: -1
x2: 0, y2: 1.1
)}
4: { template(colors[3]) }
5: { template(colors[4]) }
6: { template(colors[5]) }
7: { template(colors[5]) }
]
horizontal: [
1: { template(colors[0]) }
2: { template(colors[0]) }
3: { template(colors[0]) }
4: { linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0.4, y1: 0
x2: 1.5, y2: 0
)}
5: { linear_blend(
image1: template(colors[0])
image2: template(colors[1])
x1: 0.08, y1: 0
x2: 0.65, y2: 0
)}
6: { template(colors[5]) } #TODO
7: { template(colors[6]) } #TODO
]
vertical: [
1: { template(colors[0]) }
2: { template(colors[1]) }
3: { linear_blend(
image1: template(colors[1])
image2: template(colors[2])
x1: 0, y1: -1
x2: 0, y2: 1.5
)}
4: { linear_blend(
image1: template(colors[2])
image2: template(colors[3])
x1: 0, y1: 0.5
x2: 0, y2: 3
)}
5: { template(colors[3]) }
6: { template(colors[5]) } # Probably not right
7: { template(colors[6]) }
]
overlay: [
1: { template(colors[0]) }
2: overlay_hybrid
]
]
########################################################################
# Putting it all together.
########################################################################
# Determine the card background based on the card_color multiple choice options
color_background := {
# for thumbnails
if input == "hybrid" then
input := "white,blue,red,{hybrid_previews},horizontal"
else if input == "overlay" then
input := "blue,red,{hybrid_previews},overlay"
else if input == "radial" or input == "horizontal" or input == "vertical" then
input := "white,blue,red,{hybrid_previews}," + input
else if input == "reversed" then
input := "white,blue,red,{hybrid_previews},horizontal,reversed"
# What type of 'hybrid'?
land := chosen(choice:"land")
multi := chosen(choice:"multicolor")
hybrid := chosen(choice:"hybrid")
artifact := chosen(choice:"artifact")
if land then template := land_template # use land template instead?
# The selected colors
colors := sort( order: "(wubrg)"
, (if chosen(choice:"white") then "w")
+ (if chosen(choice:"blue") then "u")
+ (if chosen(choice:"black") then "b")
+ (if chosen(choice:"red") then "r")
+ (if chosen(choice:"green") then "g"))
if multi and (hybrid or colors == "") then (
colors := colors + "m"
multi := false
)
if artifact and (multi or hybrid or colors == "") then (
colors := colors + "a"
artifact := false
)
if chosen(choice:"reversed") then colors := reverse(colors)
color_count := number_of_items(in: colors)
if colors == "" then colors == "c"
# The base hybrid, without the outer frame blended over it
base := base_hybrid
[ if chosen(choice:"horizontal") then "horizontal"
else if chosen(choice:"vertical") then "vertical"
else if chosen(choice:"overlay") then "overlay"
else "radial"
][color_count]()
# Put a frame around it?
if multi then
masked_blend(
mask: "multicolor_blend_{type}.png",
dark: template("m"),
light: base,
)
else if artifact then
masked_blend(
mask: "multicolor_blend_{type}.png",
dark: template("a"),
light: base,
)
else if color_count > 1 and mask_hybrid_with_land() then
masked_blend(
mask: "hybrid_blend_{type}.png",
dark: land_template("c"),
light: base,
)
else base
}
########################################################################
# Specific types
########################################################################
card_background := { color_background(type:"card", base_hybrid:card_hybrid) }
card_ptbox := { color_background(type:"pt", base_hybrid:pt_hybrid) }
flip_ptbox := { color_background(type:"pt", base_hybrid:flip_pt_hybrid) }
flip_ptbox2 := { color_background(type:"pt2", base_hybrid:flip_pt_hybrid2) }
########################################################################
# Font colors
########################################################################
# For which colors is the font white?
font_colors_white := { input == "b" or input == "l" }
font_color_positions := [
radial: [0,0,0,2,3,3,4,4]
horizontal: [0,0,0,0,0,0,0,0]
vertical: [0,0,1,2,3,4,5,6]
overlay: [0,0,0,0,0,0,0,0]
]
# Determine whether light or dark fonts should be used
font_white := {
hybrid := chosen(choice:"hybrid")
artifact := chosen(choice:"artifact")
colors := sort( order: "(wubrg)"
, (if chosen(choice:"white") then "w")
+ (if chosen(choice:"blue") then "u")
+ (if chosen(choice:"black") then "b")
+ (if chosen(choice:"red") then "r")
+ (if chosen(choice:"green") then "g"))
+ (if artifact then "a")
font_colors_white(
if chosen(choice:"land") then "l"
else if input == "artifact, multicolor" then "a"
else if chosen(choice:"multicolor") then "m"
else if artifact and not hybrid then "a"
else if colors == "" then "c"
else colors[
font_color_positions
[ if chosen(choice:"horizontal") then "horizontal"
else if chosen(choice:"vertical") then "vertical"
else if chosen(choice:"overlay") then "overlay"
else "radial"
][number_of_items(in: colors)]
]
)
}
font_color := { if font_white() then rgb(255,255,255) else rgb(0,0,0) }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment