Commit 8804888d authored by twanvl's avatar twanvl

Added option to use blending to make colored lands

parent c14216d7
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
mask_hybrid_with_land := { false } mask_hybrid_with_land := { false }
template := { input + "{type}.jpg" } template := { input + "{type}.jpg" }
land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" } land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" }
# 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
######################################################################## ########################################################################
# Combining multiple colors (hybrids) # Combining multiple colors (hybrids)
...@@ -436,7 +439,7 @@ color_background := { ...@@ -436,7 +439,7 @@ color_background := {
multi := chosen(choice:"multicolor") multi := chosen(choice:"multicolor")
hybrid := chosen(choice:"hybrid") hybrid := chosen(choice:"hybrid")
artifact := chosen(choice:"artifact") artifact := chosen(choice:"artifact")
if land then template := land_template # use land template instead? if land and colored_lands then template := land_template # use land template instead?
# The selected colors # The selected colors
colors := sort( order: "(wubrg)" colors := sort( order: "(wubrg)"
...@@ -472,7 +475,13 @@ color_combination := { ...@@ -472,7 +475,13 @@ color_combination := {
base := base_hybrid[shape][color_count]() base := base_hybrid[shape][color_count]()
# Put a frame around it? # Put a frame around it?
if multi then if land and not colored_lands then
masked_blend(
mask: "multicolor_blend_{type}.png",
dark: land_template("c"),
light: base,
)
else if multi then
masked_blend( masked_blend(
mask: "multicolor_blend_{type}.png", mask: "multicolor_blend_{type}.png",
dark: template("m"), dark: template("m"),
......
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