diff --git a/data/magic-blends.mse-include/masks b/data/magic-blends.mse-include/masks new file mode 100644 index 000000000..a460d96a7 --- /dev/null +++ b/data/magic-blends.mse-include/masks @@ -0,0 +1,11 @@ +id_mask :=[ + 32: "/magic-identity-new.mse-include/imask_32.png" + 33: "/magic-identity-new.mse-include/imask_33.png" + 42: "/magic-identity-new.mse-include/imask_42.png" + 43: "/magic-identity-new.mse-include/imask_43.png" + 44: "/magic-identity-new.mse-include/imask_44.png" + 52: "/magic-identity-new.mse-include/imask_52.png" + 53: "/magic-identity-new.mse-include/imask_53.png" + 54: "/magic-identity-new.mse-include/imask_54.png" + 55: "/magic-identity-new.mse-include/imask_55.png" +] diff --git a/data/magic-blends.mse-include/new-blends b/data/magic-blends.mse-include/new-blends index d14a8404f..3c501f60c 100644 --- a/data/magic-blends.mse-include/new-blends +++ b/data/magic-blends.mse-include/new-blends @@ -1,3 +1,5 @@ +#For vertical alignment, set tab spacing to 8. + # Scripts for blending images # Included by a style file in its init script @@ -5,444 +7,511 @@ ######################################################################## # Filenames and other defaults ######################################################################## + include file: masks -mask_hybrid_with_land := { false } -mask_hybrid_with_gold := { false } -mask_multi_land_with_color := { false } -template := { input + "{type}.jpg" } -land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" } + mask_hybrid_with_land := { false } + mask_hybrid_with_gold := { false } + mask_multi_land_with_color := { false } + template := { input + "{type}.jpg" } + land_template := { ( if input == "a" then "c" else input)+ "l{type}.jpg" } + offset := 0 # For what value should thumbnails of hybrids be made? -hybrid_previews := "hybrid" + hybrid_previews := "hybrid" + # Are there templates for colored lands, land_template(...)? -colored_lands := true -trim_colors := - replace@(match:"(, )?(multicolor|hybrid|artifact|land|horizontal|vertical|radial)", replace:"") -watermark_colors := { - if face == false then face := card.card_color - trimmed := trim_colors(face) - if trimmed == "white" then "ww" - else if trimmed == "blue" then "uu" - else if trimmed == "black" then "bb" - else if trimmed == "red" then "rr" - else if trimmed == "green" then "gg" - else if contains(face, match:"multi") or contains(face, match:"hybrid") or contains(face, match:", land") then hybrid_color(face:face) - else if contains(face, match:"artifact") then "aa" - else "cc" -}@(face:false) + colored_lands := true + trim_colors := + replace@(match:"(, )?(multicolor|hybrid|artifact|land|horizontal|vertical|radial)", replace:"") + + watermark_colors := { + if trim_colors(card.card_color) == "white" then "ww" + else if trim_colors(card.card_color) == "blue" then "uu" + else if trim_colors(card.card_color) == "black" then "bb" + else if trim_colors(card.card_color) == "red" then "rr" + else if trim_colors(card.card_color) == "green" then "gg" + else if contains(card.card_color, match:"multi") or + contains(card.card_color, match:"hybrid") or + contains(card.card_color, match:", land") then hybrid_color() + else if contains(card.card_color, match:"artifact") then "aa" + else "cc" +} hybrid_color := { - if face == false then face := card.card_color - trimmed := trim_colors(face) - if trimmed == "white, blue" then "wu" - else if trimmed == "white, black" then "wb" - else if trimmed == "white, red" then "rw" - else if trimmed == "white, green" then "gw" - else if trimmed == "blue, black" then "ub" - else if trimmed == "blue, red" then "ur" - else if trimmed == "blue, green" then "gu" - else if trimmed == "black, red" then "br" - else if trimmed == "black, green" then "bg" - else if trimmed == "red, green" then "rg" - else if trimmed == "white, blue, reversed" then "uw" - else if trimmed == "white, black, reversed" then "bw" - else if trimmed == "white, red, reversed" then "wr" - else if trimmed == "white, green, reversed" then "wg" - else if trimmed == "blue, black, reversed" then "bu" - else if trimmed == "blue, red, reversed" then "ru" - else if trimmed == "blue, green, reversed" then "ug" - else if trimmed == "black, red, reversed" then "rb" - else if trimmed == "black, green, reversed" then "bg" - else if trimmed == "red, green, reversed" then "gr" - else "mm" -}@(face:false) + if trim_colors(card.card_color) == "white, blue" then "wu" + else if trim_colors(card.card_color) == "white, black" then "wb" + else if trim_colors(card.card_color) == "white, red" then "rw" + else if trim_colors(card.card_color) == "white, green" then "gw" + else if trim_colors(card.card_color) == "blue, black" then "ub" + else if trim_colors(card.card_color) == "blue, red" then "ur" + else if trim_colors(card.card_color) == "blue, green" then "gu" + else if trim_colors(card.card_color) == "black, red" then "br" + else if trim_colors(card.card_color) == "black, green" then "bg" + else if trim_colors(card.card_color) == "red, green" then "rg" + else if trim_colors(card.card_color) == "white, blue, reversed" then "uw" + else if trim_colors(card.card_color) == "white, black, reversed" then "bw" + else if trim_colors(card.card_color) == "white, red, reversed" then "wr" + else if trim_colors(card.card_color) == "white, green, reversed" then "wg" + else if trim_colors(card.card_color) == "blue, black, reversed" then "bu" + else if trim_colors(card.card_color) == "blue, red, reversed" then "ru" + else if trim_colors(card.card_color) == "blue, green, reversed" then "ug" + else if trim_colors(card.card_color) == "black, red, reversed" then "rb" + else if trim_colors(card.card_color) == "black, green, reversed" then "bg" + else if trim_colors(card.card_color) == "red, green, reversed" then "gr" + else "mm" +} ######################################################################## # 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 +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 := [ - 1: { template(colors[0]) } - 2: { combine_blend( - image1: template(colors[0]), - image2: template(colors[1]), - combine: "symmetric overlay" - )} + 1: { template( colors[0] ) } + 2: {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) } +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]() } horizontal_card_hybrid := [ - 1: { template(colors[0]) } - 2: card_hybrid_2 + 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 + image1: template( colors[(to_int(offset) + 0 ) mod 3] ), + 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]) - ))} + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0.6, y1: 0 + x2: 0.78, y2: 0 + ) + ) + } 4: {linear_blend( - # blend = 0.16 - image1: template(colors[0]) - x1: 0.15, y1: 0 - x2: 0.31, y2: 0 + image1: template( colors[(to_int(offset) + 0 ) mod 4] ), + 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]) - )))} + image1: template( colors[(to_int(offset) + 1 ) mod 4] ), + x1: 0.42, y1: 0 + x2: 0.58, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 2 ) mod 4] ), + image2: template( colors[(to_int(offset) + 3 ) mod 4] ), + x1: 0.69, y1: 0 + x2: 0.85, y2: 0 + )))} + 5: {linear_blend( - image1: template(colors[0]) - x1: 2.0 / 15, y1: 0 - x2: 4.0 / 15, y2: 0 + image1: template( colors[(to_int(offset) + 0 ) mod 5] ), + 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]) - ))))} + image1: template( colors[(to_int(offset) + 1 ) mod 5] ), + x1: 5.0 / 15, y1: 0 + x2: 7.0 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 2 ) mod 5] ), + x1: 8.0 / 15, y1: 0 + x2: 10.0 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 3 ) mod 5] ), + image2: template( colors[(to_int(offset) + 4 ) mod 5] ), + x1: 11.0 / 15, y1: 0 + x2: 13.0 / 15, y2: 0 + ))))} + 6: {linear_blend( - image1: template(colors[0]) - x1: 1.5 / 15, y1: 0 - x2: 3.1 / 15, y2: 0 + image1: template( colors[(to_int(offset) + 0 ) mod 6] ), + 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]) - )))))} + image1: template( colors[(to_int(offset) + 1 ) mod 6] ), + x1: 4.1 / 15, y1: 0 + x2: 5.7 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 2 ) mod 6] ), + x1: 6.7 / 15, y1: 0 + x2: 8.3 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 3 ) mod 6] ), + x1: 9.3 / 15, y1: 0 + x2: 10.9 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 4 ) mod 6] ), + image2: template( colors[(to_int(offset) + 5 ) mod 6] ), + x1: 11.9 / 15, y1: 0 + x2: 13.5 / 15, y2: 0 + )))))} + 7: {linear_blend( - image1: template(colors[0]) - x1: 1.3 / 15, y1: 0 - x2: 2.7 / 15, y2: 0 + image1: template( colors[(to_int(offset) + 0 ) mod 7] ), + 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]) - ))))))} + image1: template( colors[(to_int(offset) + 1 ) mod 7] ), + x1: 3.5 / 15, y1: 0 + x2: 4.9 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 2 ) mod 7] ), + x1: 5.7 / 15, y1: 0 + x2: 7.1 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 3 ) mod 7] ), + x1: 7.9 / 15, y1: 0 + x2: 9.3 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 4 ) mod 7] ), + x1: 10.1 / 15, y1: 0 + x2: 11.5 / 15, y2: 0 + image2: linear_blend( + image1: template( colors[(to_int(offset) + 5 ) mod 7] ), + image2: template( colors[(to_int(offset) + 6 ) mod 7] ), + x1: 12.3 / 15, y1: 0 + x2: 13.7 / 15, y2: 0 + ))))))} ] + 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 - )} + 0: { template( "c") } + 1: { template( colors[0]) } + 2: card_hybrid_2 + + 3:{linear_blend( + image1: card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 3] + + colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0, y1: 0.55 + x2: 0, y2: 0.77 + )} + 4:{linear_blend( + image1: card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 4] + + colors[(to_int(offset) + 1 ) mod 4] ), + image2: card_hybrid_2( colors: colors[(to_int(offset) + 3 ) mod 4] + + colors[(to_int(offset) + 2 ) mod 4] ), + 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 - )} + image1: card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 5] + + colors[(to_int(offset) + 1 ) mod 5] ), + image2: card_hybrid_2( colors: colors[(to_int(offset) + 4 ) mod 5] + + colors[(to_int(offset) + 2 ) mod 5] ), + x1: 0, y1: 0.19 + x2: 0, y2: 0.35 + ), + image2: template( colors[(to_int(offset) + 3 ) mod 5] ), + 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 + image1: card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 6] + + colors[(to_int(offset) + 1 ) mod 6] ), + image2: card_hybrid_2( colors: colors[(to_int(offset) + 5 ) mod 6] + + colors[(to_int(offset) + 2 ) mod 6] ), + 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 - )} + image2: card_hybrid_2( colors: colors[(to_int(offset) + 4 ) mod 6] + + colors[(to_int(offset) + 3 ) mod 6] ), + 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 + image1: card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 7] + + colors[(to_int(offset) + 1 ) mod 7] ), + image2: card_hybrid_2( colors: colors[(to_int(offset) + 6 ) mod 7] + + colors[(to_int(offset) + 2 ) mod 7] ), + x1: 0, y1: 0.34 + x2: 0, y2: 0.50 + ), + image2: card_hybrid_2( colors: colors[(to_int(offset) + 5 ) mod 7] + + colors[(to_int(offset) + 3 ) mod 7] ), + x1: 0, y1: 0.877 + x2: 0, y2: 0.937 ), - image2: template(colors[4]), - x1: 0, y1: 1.140 - x2: 0, y2: 1.300 - )} + image2: template( colors[(to_int(offset) + 4 ) mod 7] ), + x1: 0, y1: 1.140 + x2: 0, y2: 1.300 + )} ] - horizontal: horizontal_card_hybrid - vertical: [ - 1: { template(colors[0]) } + horizontal: horizontal_card_hybrid + 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 + 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: overlay_hybrid + overlay: overlay_hybrid ] + ######################################################################## # P/T box ######################################################################## # These are easier horizontal_pt_hybrid := [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } + 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 - )} + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + 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 - )} + image1: template( colors[(to_int(offset) + 2 ) mod 4] ), + image2: template( colors[(to_int(offset) + 3 ) mod 4] ), + 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 - )} + image1: template( colors[(to_int(offset) + 3 ) mod 5] ), + image2: template( colors[(to_int(offset) + 4 ) mod 5] ), + x1: 0.08, y1: 0 + x2: 0.65, y2: 0 + )} 6: { linear_blend( - image1: template(colors[4]) - image2: template(colors[5]) - x1: 0.07, y1: 0 - x2: 0.7, y2: 0 - )} + image1: template( colors[(to_int(offset) + 4 ) mod 6] ), + image2: template( colors[(to_int(offset) + 5 ) mod 6] ), + x1: 0.07, y1: 0 + x2: 0.7, y2: 0 + )} 7: {linear_blend( image1: linear_blend( - image1: template(colors[4]), - image2: template(colors[5]), - x1: -0.2, y1: 0 - x2: 0.2, y2: 0 + image1: template( colors[(to_int(offset) + 4 ) mod 7] ), + image2: template( colors[(to_int(offset) + 5 ) mod 7] ), + x1: -0.2, y1: 0 + x2: 0.2, y2: 0 ), - image2: template(colors[6]), - x1: 0.5, y1: 0 - x2: 0.7, y2: 0 - )} + image2: template( colors[(to_int(offset) + 6 ) mod 7] ), + x1: 0.5, y1: 0 + x2: 0.7, y2: 0 + )} ] + pt_hybrid := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[2]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } 5: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: -1.5 - x2: 0, y2: 0.7 - )} + image1: template( colors[(to_int(offset) + 2 ) mod 5] ), + image2: template( colors[(to_int(offset) + 3 ) mod 5] ), + 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]) } + image1: template( colors[(to_int(offset) + 2 ) mod 6] ), + image2: template( colors[(to_int(offset) + 3 ) mod 6] ), + x1: 0, y1: -1.5 + x2: 0, y2: 0.7 + )} + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] 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]) } - 7: { template(colors[6]) } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 7]) } + 4: { template( colors[(to_int(offset) + 3 ) mod 7]) } + 5: { template( colors[(to_int(offset) + 4 ) mod 7]) } + 6: { template( colors[(to_int(offset) + 5 ) mod 7]) } + 7: { template( colors[(to_int(offset) + 6 ) mod 7]) } ] overlay: 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 - )} + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 1 ) mod 3]) } + 4: { template( colors[(to_int(offset) + 1 ) mod 4]) } + 5: {linear_blend( + image1: template( colors[(to_int(offset) + 1 ) mod 5] ), + image2: template( colors[(to_int(offset) + 2 ) mod 5] ), + 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]) } + image1: template( colors[(to_int(offset) + 1 ) mod 6] ), + image2: template( colors[(to_int(offset) + 2 ) mod 6] ), + x1: 0, y1: -1 + x2: 0, y2: 1.8 + )} + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] horizontal: horizontal_pt_hybrid vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[0]) } + 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 - )} + image1: template( colors[(to_int(offset) + 0 ) mod 3] ), + image2: template( colors[(to_int(offset) + 1 ) mod 3] ), + 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 - )} + image1: template( colors[(to_int(offset) + 0 ) mod 4] ), + image2: template( colors[(to_int(offset) + 1 ) mod 4] ), + 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]) } + image1: template( colors[(to_int(offset) + 0 ) mod 5] ), + image2: template( colors[(to_int(offset) + 1 ) mod 5] ), + x1: 0, y1: -1.1 + x2: 0, y2: 0.2 + )} + 6: { template( colors[(to_int(offset) + 1 ) mod 6] ) } # Probably not right + 7: { template( colors[(to_int(offset) + 2 ) mod 7]) } ] overlay: overlay_hybrid ] flip_pt_hybrid2 := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[0]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[0]) } 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]) } + image1: template( colors[(to_int(offset) + 0 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0, y1: -1 + x2: 0, y2: 1.1 + )} + 4: { template( colors[(to_int(offset) + 3 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 4 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 5 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 6 ) mod 7]) } ] horizontal: [ - 1: { template(colors[0]) } - 2: { template(colors[0]) } - 3: { template(colors[0]) } + 1: { template( colors[0]) } + 2: { template( colors[0]) } + 3: { template( colors[(to_int(offset) + 0 ) mod 3]) } 4: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0.4, y1: 0 - x2: 1.5, y2: 0 - )} + image1: template( colors[(to_int(offset) + 0 ) mod 4] ), + image2: template( colors[(to_int(offset) + 1 ) mod 4] ), + 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 + image1: template( colors[(to_int(offset) + 0 ) mod 5] ), + image2: template( colors[(to_int(offset) + 1 ) mod 5] ), + x1: 0.08, y1: 0 + x2: 0.65, y2: 0 + )} + 6: { template( colors[(to_int(offset) + 5 ) mod 6] ) } #TODO + 7: { template( colors[(to_int(offset) + 6 ) mod 7] ) } #TODO ] vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } + 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 - )} + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + 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]) } + image1: template( colors[(to_int(offset) + 2 ) mod 4] ), + image2: template( colors[(to_int(offset) + 3 ) mod 4] ), + x1: 0, y1: 0.5 + x2: 0, y2: 3 + )} + 5: { template( colors[(to_int(offset) + 3 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 5 ) mod 6] ) } # Probably not right + 7: { template( colors[(to_int(offset) + 6 ) mod 7]) } ] overlay: overlay_hybrid ] + ######################################################################## +# P/T boxes for leveler cards +######################################################################## +leveler_pt_hybrid := [ + radial: [ + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { linear_blend( + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 2 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 2 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } + ] + horizontal: horizontal_pt_hybrid + vertical: [ + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { linear_blend( + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 3 ) mod 5]) } + 6: { linear_blend( + image1: template( colors[(to_int(offset) + 2 ) mod 6] ), + image2: template( colors[(to_int(offset) + 4 ) mod 6] ), + x1: 0, y1: 0 + x2: 0, y2: 0.25 + )} + 7: { template( colors[(to_int(offset) + 5 ) mod 7]) } + ] + overlay: overlay_hybrid +] ######################################################################## # P/T boxes for leveler cards @@ -450,146 +519,149 @@ flip_pt_hybrid2 := [ leveler_pt_hybrid := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } 3: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 4: { template(colors[2]) } - 5: { template(colors[2]) } - 6: { template(colors[2]) } - 7: { template(colors[4]) } + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 2 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 2 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] horizontal: horizontal_pt_hybrid vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } + 1: { template( colors[0]) } + 2: { template( colors[1]) } 3: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 4: { template(colors[2]) } - 5: { template(colors[3]) } + image1: template( colors[(to_int(offset) + 1 ) mod 3] ), + image2: template( colors[(to_int(offset) + 2 ) mod 3] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 3 ) mod 5]) } 6: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0, y1: 0 - x2: 0, y2: 0.25 - )} - 7: { template(colors[5]) } + image1: template( colors[(to_int(offset) + 3 ) mod 6] ), + image2: template( colors[(to_int(offset) + 4 ) mod 6] ), + x1: 0, y1: 0 + x2: 0, y2: 0.25 + )} + 7: { template( colors[(to_int(offset) + 5 ) mod 7]) } ] overlay: overlay_hybrid ] leveler_pt_hybrid2 := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[2]) } - 5: { template(colors[2]) } - 6: { template(colors[2]) } - 7: { template(colors[4]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 2 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 2 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] horizontal: horizontal_pt_hybrid vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } 4: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} + image1: template( colors[(to_int(offset) + 2 ) mod 4] ), + image2: template( colors[(to_int(offset) + 3 ) mod 4] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} 5: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0, y1: 0 - x2: 0, y2: 0.75 - )} - 6: { template(colors[4]) } - 7: { template(colors[5]) } + image1: template( colors[(to_int(offset) + 3 ) mod 5] ), + image2: template( colors[(to_int(offset) + 4 ) mod 5] ), + x1: 0, y1: 0 + x2: 0, y2: 0.75 + )} + 6: { template( colors[(to_int(offset) + 4 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 5 ) mod 7]) } ] overlay: overlay_hybrid ] leveler_pt_hybrid3 := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[2]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } + 4: { template( colors[(to_int(offset) + 2 ) mod 4]) } 5: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} + image1: template( colors[(to_int(offset) + 2 ) mod 5] ), + image2: template( colors[(to_int(offset) + 3 ) mod 5] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} 6: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 7: { template(colors[4]) } + image1: template( colors[(to_int(offset) + 2 ) mod 6] ), + image2: template( colors[(to_int(offset) + 3 ) mod 6] ), + x1: 0, y1: 0 + x2: 0, y2: 1 + )} + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] horizontal: horizontal_pt_hybrid vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[3]) } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } + 4: { template( colors[(to_int(offset) + 3 ) mod 4]) } 5: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0, y1: 0 - x2: 0, y2: 0.5 - )} + image1: template( colors[(to_int(offset) + 3 ) mod 5] ), + image2: template( colors[(to_int(offset) + 4 ) mod 5] ), + x1: 0, y1: 0 + x2: 0, y2: 0.5 + )} 6: { linear_blend( - image1: template(colors[4]) - image2: template(colors[5]) - x1: 0, y1: 0 - x2: 0, y2: 0.5 - )} - 7: { template(colors[5]) } + image1: template( colors[(to_int(offset) + 4 ) mod 6] ), + image2: template( colors[(to_int(offset) + 5 ) mod 6] ), + x1: 0, y1: 0 + x2: 0, y2: 0.5 + )} + 7: { template( colors[(to_int(offset) + 5 ) mod 7]) } ] overlay: overlay_hybrid ] + ######################################################################## # Textbox and typeline for FPM templates and Futureshifts ######################################################################## textbox_hybrid := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: card_hybrid_2 - 3: { template(colors[2]) } - 4: { card_hybrid_2(colors: colors[3] + colors[2]) } - 5: { template(colors[3]) } - 6: { card_hybrid_2(colors: colors[4] + colors[3]) } - 7: { template(colors[4]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: card_hybrid_2 + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } + 4: { card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 4] + + colors[(to_int(offset) + 3 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 3 ) mod 5]) } + 6: { card_hybrid_2( colors: colors[(to_int(offset) + 0 ) mod 6] + + colors[(to_int(offset) + 5 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] horizontal: horizontal_card_hybrid vertical: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } # TODO - 4: { template(colors[3]) } - 5: { template(colors[4]) } - 6: { template(colors[5]) } - 7: { template(colors[6]) } + 0: { template( "c") } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3] ) } # TODO + 4: { template( colors[(to_int(offset) + 3 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 4 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 5 ) mod 6]) } + 7: { template( colors[(to_int(offset) + 6 ) mod 7]) } ] overlay: overlay_hybrid ] @@ -601,134 +673,142 @@ typeline_hybrid := textbox_hybrid ######################################################################## identity_horizontal_hybrid := [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0.49, y1: 0.49 - x2: 0.5, y2: 0.5 - )} - 3: {masked_blend(light: masked_blend(light: template(colors[0]), dark: template(colors[2]), mask: "/magic-identity-new.mse-include/imask_32.png"), dark: template(colors[1]), mask: "/magic-identity-new.mse-include/imask_33.png")} + 0: { template( "c") } + 1: { template( colors[0]) } + 2: {linear_blend( + image1: template( colors[0] ), + image2: template( colors[1] ), + x1: 0.49, y1: 0.49 + x2: 0.5, y2: 0.5 + )} + 3: {masked_blend( + light: masked_blend( + light: template( colors[0] ), + dark: template( colors[2] ), + mask: id_mask[32]), + dark: template( colors[1] ), + mask: id_mask[33] + )} 4: {masked_blend( light: masked_blend( - light: masked_blend(light: template(colors[1]), dark: template(colors[0]), mask: "/magic-identity-new.mse-include/imask_42.png"), - dark: template(colors[2]), - mask: "/magic-identity-new.mse-include/imask_43.png") - dark: template(colors[3]), - mask: "/magic-identity-new.mse-include/imask_44.png" - )} + light: masked_blend( + light: template( colors[1] ), + dark: template( colors[0] ), + mask: id_mask[42] ), + dark: template( colors[2] ), + mask: id_mask[43] ), + dark: template( colors[3] ), + mask: id_mask[44] + )} 5: {masked_blend( light: masked_blend( light: masked_blend( light: masked_blend( - light: template(colors[0]), - dark: template(colors[4]), - mask: "/magic-identity-new.mse-include/imask_52.png"), - dark: template(colors[1]), - mask: "/magic-identity-new.mse-include/imask_53.png"), - dark: template(colors[2]), - mask: "/magic-identity-new.mse-include/imask_54.png"), - dark: template(colors[3]), - mask: "/magic-identity-new.mse-include/imask_55.png") - } - 6: { template("m") } -] + light: template( colors[0] ), + dark: template( colors[4] ), + mask: id_mask[52]), + dark: template( colors[1] ), + mask: id_mask[53]), + dark: template( colors[2] ), + mask: id_mask[54]), + dark: template( colors[3] ), + mask: id_mask[55] + )} + 6: { template( "m") } +] identity_hybrid := [ - radial: identity_horizontal_hybrid - vertical: identity_horizontal_hybrid - horizontal: identity_horizontal_hybrid - overlay: identity_horizontal_hybrid + radial: identity_horizontal_hybrid + vertical: identity_horizontal_hybrid + horizontal: identity_horizontal_hybrid + overlay: identity_horizontal_hybrid ] - ######################################################################## # Promo Stamp ######################################################################## # These are easier horizontal_stamp_hybrid := [ - 1: { template(colors[0]) } + 1: { template( colors[0]) } 2: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 3: { template(colors[1]) } + image1: template( colors[0] ), + image2: template( colors[1] ), + x1: -0.3, y1: 0 + x2: 1.3, y2: 0 + )} + 3: { template( colors[(to_int(offset) + 1 ) mod 3]) } 4: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} + image1: template( colors[(to_int(offset) + 1 ) mod 4] ), + image2: template( colors[(to_int(offset) + 2 ) mod 4] ), + x1: -0.3, y1: 0 + x2: 1.3, y2: 0 + )} 5: {linear_blend( - image1: template(colors[1]) - x1: -0.55, y1: 0 - x2: 0.2, y2: 0 + image1: template( colors[(to_int(offset) + 1 ) mod 5] ) + x1: -0.55, y1: 0 + x2: 0.2, y2: 0 image2: linear_blend( - image1: template(colors[2]) - x1: 0.8, y1: 0 - x2: 1.55, y2: 0 - image2: template(colors[3]) - ))} + image1: template( colors[(to_int(offset) + 2 ) mod 5] ), + image2: template( colors[(to_int(offset) + 3 ) mod 5] ), + x1: 0.8, y1: 0 + x2: 1.55, y2: 0 + ))} 6: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0.1, y1: 0 - x2: 0.9, y2: 0 - )} + image1: template( colors[(to_int(offset) + 2 ) mod 6] ), + image2: template( colors[(to_int(offset) + 3 ) mod 6] ), + x1: 0.1, y1: 0 + x2: 0.9, y2: 0 + )} 7: {linear_blend( - image1: template(colors[2]) - x1: -0.55, y1: 0 - x2: 0.2, y2: 0 + image1: template( colors[(to_int(offset) + 2 ) mod 7] ), + x1: -0.55, y1: 0 + x2: 0.2, y2: 0 image2: linear_blend( - image1: template(colors[3]) - x1: 0.8, y1: 0 - x2: 1.55, y2: 0 - image2: template(colors[4]) - ))} + image1: template( colors[(to_int(offset) + 3 ) mod 7] ), + image2: template( colors[(to_int(offset) + 5 ) mod 7] ), + x1: 0.8, y1: 0 + x2: 1.55, y2: 0 + ))} ] stamp_hybrid := [ radial: [ - 0: { template("c") } - 1: { template(colors[0]) } + 0: { template( "c") } + 1: { template( colors[0]) } 2: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 3: { template(colors[2]) } + image1: template( colors[0] ), + image2: template( colors[1] ), + x1: -0.3, y1: 0 + x2: 1.3, y2: 0 + )} + 3: { template( colors[(to_int(offset) + 2) mod 3]) } 4: { linear_blend( - image1: template(colors[3]) - image2: template(colors[2]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 5: { template(colors[3]) } + image1: template( colors[(to_int(offset) + 3) mod 4] ), + image2: template( colors[(to_int(offset) + 2) mod 4] ), + x1: -0.3, y1: 0 + x2: 1.3, y2: 0 + )} + 5: { template( colors[(to_int(offset) + 3) mod 5]) } 6: { linear_blend( - image1: template(colors[4]) - image2: template(colors[3]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 + image1: template( colors[(to_int(offset) + 4) mod 6] ), + image2: template( colors[(to_int(offset) + 3) mod 6] ), + x1: -0.3, y1: 0 + x2: 1.3, y2: 0 )} - 7: { template(colors[4]) } + 7: { template( colors[(to_int(offset) + 4 ) mod 7]) } ] horizontal: horizontal_stamp_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]) } - 7: { template(colors[6]) } + 1: { template( colors[0]) } + 2: { template( colors[1]) } + 3: { template( colors[(to_int(offset) + 2 ) mod 3]) } + 4: { template( colors[(to_int(offset) + 3 ) mod 4]) } + 5: { template( colors[(to_int(offset) + 4 ) mod 5]) } + 6: { template( colors[(to_int(offset) + 5 ) mod 6]) } + # 7: { template( colors[(to_int(offset) + 6 ) mod 7]) } ] overlay: overlay_hybrid ] - ######################################################################## # Putting it all together. ######################################################################## @@ -747,19 +827,19 @@ color_background := { 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") + land := chosen(choice:"land") + multi := chosen(choice:"multicolor") + hybrid := chosen(choice:"hybrid") + artifact := chosen(choice:"artifact") if land and colored_lands then template := land_template # use land template instead? # The selected colors colors := sort_text( order: if card_is_wedge(input) then "(wbgur)" else "(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 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 @@ -773,10 +853,10 @@ color_background := { if colors == "" then colors == "c" # 'shape' / type of hybrid - shape := if chosen(choice:"horizontal") then "horizontal" - else if chosen(choice:"vertical") then "vertical" - else if chosen(choice:"overlay") then "overlay" - else "radial" + shape := if chosen(choice:"horizontal" ) then "horizontal" + else if chosen(choice:"vertical" ) then "vertical" + else if chosen(choice:"overlay" ) then "overlay" + else "radial" # Determine background (allows styles to hook something else here) color_combination() @@ -785,72 +865,71 @@ color_background := { color_combination := { # The base hybrid, without the outer frame blended over it base := base_hybrid[shape][color_count]() + light:= base + # Put a frame around it? if land and not colored_lands then masked_blend( - mask: "multicolor_blend_{type}.png", - dark: land_template("c"), - light: base, + dark: land_template("c"), + mask "multicolor_blend_{type}.png", + ) else if land and multi and mask_multi_land_with_color() then masked_blend( - mask: "hybrid_blend_{type}.png", - dark: base, - light: land_template("m"), + dark: land_template("m"), + mask: "hybrid_blend_{type}.png", ) else if multi and artifact then masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("m"), - light: base + light: masked_blend( + light: base + dark: template("m"), + mask: "multicolor_blend_{type}.png", ) + dark: template("a"), + mask: "artifact_blend_{type}.png", + ) else if multi then masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("m"), - light: base, - ) + dark: template("m"), + mask: "multicolor_blend_{type}.png", + ) else if artifact and color_count > 1 and mask_hybrid_with_land() then masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("c"), - light: base + light: masked_blend( + light: base + dark: template("c"), + mask: "multicolor_blend_{type}.png", ) + dark: template("a"), + mask: "artifact_blend_{type}.png", + ) else if artifact and color_count > 1 and mask_hybrid_with_gold() then masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("m"), - light: base - ) + light: masked_blend( + light: base + dark: template("m"), + mask: "multicolor_blend_{type}.png", + )dark: template("a"), + mask: "artifact_blend_{type}.png", + ) else if artifact then masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: base, + dark: template("a"), + mask: "artifact_blend_{type}.png", ) else if color_count > 1 and mask_hybrid_with_land() then masked_blend( - mask: "hybrid_blend_{type}.png", - dark: land_template("c"), - light: base, + dark: land_template("c"), + mask: "hybrid_blend_{type}.png", ) else if color_count > 1 and mask_hybrid_with_gold() then masked_blend( - mask: "hybrid_blend_{type}.png", - dark: land_template("m"), - light: base, + dark: land_template("m"), + mask: "hybrid_blend_{type}.png", ) else base } @@ -859,26 +938,26 @@ color_combination := { # 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) } -leveler_ptbox := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid) } -leveler_ptbox2 := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid2) } -leveler_ptbox3 := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid3) } -card_textbox := { color_background(type:"textbox", base_hybrid:textbox_hybrid) } -card_typeline := { color_background(type:"typeline", base_hybrid:typeline_hybrid) } -card_identity := { color_background(type:"identity", base_hybrid:identity_hybrid) } -card_identity_2 := { color_background(type:"identity2", base_hybrid:identity_hybrid) } -card_stamp := { color_background(type:"stamp", base_hybrid:stamp_hybrid) } -card_stamp2 := { color_background(type:"stamp2", base_hybrid:stamp_hybrid) } +card_background := { color_background(type:"card", base_hybrid:card_hybrid) }@(offset:0 ) +card_ptbox := { color_background(type:"pt", base_hybrid:pt_hybrid) }@(offset:0 ) +flip_ptbox := { color_background(type:"pt", base_hybrid:flip_pt_hybrid) }@(offset:0 ) +flip_ptbox2 := { color_background(type:"pt2", base_hybrid:flip_pt_hybrid2) }@(offset:0 ) +leveler_ptbox := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid) }@(offset:0 ) +leveler_ptbox2 := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid2) }@(offset:0 ) +leveler_ptbox3 := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid3) }@(offset:0 ) +card_textbox := { color_background(type:"textbox", base_hybrid:textbox_hybrid) }@(offset:0 ) +card_typeline := { color_background(type:"typeline", base_hybrid:typeline_hybrid) }@(offset:0 ) +card_identity := { color_background(type:"identity", base_hybrid:identity_hybrid) }@(offset:0 ) +card_identity_2 := { color_background(type:"identity2", base_hybrid:identity_hybrid) }@(offset:0 ) +card_stamp := { color_background(type:"stamp", base_hybrid:stamp_hybrid) }@(offset:0 ) +card_stamp2 := { color_background(type:"stamp2", base_hybrid:stamp_hybrid) }@(offset:0 ) flip_background := { linear_blend( - image1: card_background(top) - image2: card_background(bottom) - x1: 0, y1: 0.4 - x2: 0, y2: 0.6 + image1: card_background(top) + image2: card_background(bottom) + x1: 0, y1: 0.4 + x2: 0, y2: 0.6 ) } @@ -890,36 +969,36 @@ flip_background := { 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] + 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_text( 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_white := { + hybrid := chosen(choice:"hybrid" ) + artifact := chosen(choice:"artifact" ) + colors := sort_text( 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)] + 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)] ] ) } @@ -944,13 +1023,13 @@ set_watermark_blend := { masked_blend( light: "/magic-watermarks.mse-include/sets/" + input + ".png" dark: "/magic-watermarks.mse-include/sets/" + watermark_colors().0 + "mark.png" - mask: "/magic-watermarks.mse-include/sets/" + input + ".png" + mask: "/magic-watermarks.mse-include/sets/" + input + ".png" ) image2: masked_blend( light: "/magic-watermarks.mse-include/sets/" + input + ".png" dark: "/magic-watermarks.mse-include/sets/" + watermark_colors().1 + "mark.png" - mask: "/magic-watermarks.mse-include/sets/" + input + ".png" + mask: "/magic-watermarks.mse-include/sets/" + input + ".png" ) x1: 0.4, y1: 0 x2: 0.6, y2: 0 diff --git a/data/magic.mse-game/keywords b/data/magic.mse-game/keywords index f94ec6252..056315fba 100644 --- a/data/magic.mse-game/keywords +++ b/data/magic.mse-game/keywords @@ -649,7 +649,7 @@ keyword: keyword: Hideaway match: Hideaway mode: expert - reminder: This {if is_creature(card.type) then "creature" else if is_land(card.type) then "land" else "permanent"} enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library. + reminder: {this_or_that("land", upper:true)} enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library. # Morningtide keyword: keyword: Prowl @@ -965,7 +965,7 @@ keyword: keyword: Hidden agenda match: Hidden agenda mode: expert - reminder: Start the game with this conspiracy face down in the command zone and secretly name a card. You may turn this conspiracy face up any time and reveal the chosen name. + reminder: Start the game with this conspiracy face down in the command zone and secretly choose a card name. You may turn this conspiracy face up any time and reveal the chosen name. keyword: keyword: Dethrone match: Dethrone @@ -1131,7 +1131,7 @@ keyword: keyword: Double agenda match: Double agenda mode: expert - reminder: Start the game with this conspiracy face down in the command zone and secretly name two different cards. You may turn this conspiracy face up any time and reveal the chosen names. + reminder: Start the game with this conspiracy face down in the command zone and secretly choose two different card names. You may turn this conspiracy face up any time and reveal the chosen names. keyword: keyword: Goad match: goad