def MakeBlankCard():
    image = PIL_Helper.BlankImage(base_w, base_h)

    PIL_Helper.AddText(image=image,
                       text="This Card Intentionally Left Blank",
                       font=fonts["Title"],
                       fill=ColorDict["Blankfill"],
                       anchor=Anchors["Blank"],
                       max_width=textmaxwidth)
    return image
예제 #2
0
def MakeBlankCard():
    image = PIL_Helper.BlankImage(bleed_w, bleed_h)
    print("Blank Card")
    PIL_Helper.AddText(image=image,
                       text="This Card Intentionally Left Blank",
                       font=TitleFont,
                       fill=(200, 200, 200),
                       anchor=TypeAnchor,
                       max_width=textmaxwidth)
    return image
예제 #3
0
def MakeGenreChangeCard(tags):
    image = PIL_Helper.BlankImage(bleed_w, bleed_h)
    DrawLines(image, tags[COLOR])
    TypeText(image, "Genre Change")
    GenreText(image, GenreDict[tags[COLOR][0]], ColDictDark[tags[COLOR][0]])
    TitleText(image, tags[TITLE], color=ColDictDark[tags[COLOR][0]])
    SymbolText(image, "<")
    RulesText(image, RulesDict["GENRE CHANGE"])
    if len(tags) > FLAVOR:
        FlavorText(image, tags[FLAVOR])
    return image
예제 #4
0
def MakeSwitchCard(tags):
    image = PIL_Helper.BlankImage(bleed_w, bleed_h)
    DrawSidebar(image, ColDict[tags[COLOR][0]])
    DrawLines(image, tags[COLOR])
    TypeText(image, "Switch")
    TitleText(image, tags[TITLE])
    SymbolText(image, tags[COLOR][0])
    RulesText(image, RulesDict["SWITCH"].format(tags[COLOR][0]))
    if len(tags) > FLAVOR:
        FlavorText(image, tags[FLAVOR])
    return image
예제 #5
0
def MakeFormModifierCard(tags):
    image = PIL_Helper.BlankImage(bleed_w, bleed_h)
    DrawSidebar(image, ColDict[tags[COLOR][0]])
    DrawLines(image, tags[COLOR])
    TypeText(image, "Form Modifier")
    GenreText(image, GenreDict[tags[COLOR][0]], ColDictDark[tags[COLOR][0]])
    TitleText(image, tags[TITLE])
    ValueText(image, tags[VALUE])
    RulesText(image, RulesDict["FORM MODIFIER"])
    if len(tags) > FLAVOR:
        FlavorText(image, tags[FLAVOR])
    return image
예제 #6
0
def MakeFormCard(tags):
    image = PIL_Helper.BlankImage(bleed_w,
                                  bleed_h,
                                  color=ColDict[tags[COLOR][0]])
    TypeText(image, "Form")
    GenreText(image, GenreDict[tags[COLOR][0]], ColDictDark[tags[COLOR][0]])
    # Form sidebar type
    TitleText(image, "Form")

    # Form Title
    PIL_Helper.AddText(image=image,
                       text=tags[TITLE],
                       font=TitleFont,
                       fill=(0, 0, 0),
                       anchor=FormTitleAnchor,
                       max_width=bleed_h,
                       valign="bottom",
                       rotate=90)

    RulesText(image, RulesDict["FORM"])
    if len(tags) > FLAVOR:
        FlavorText(image, tags[FLAVOR])
    #DrawLines(image,tags[COLOR])
    return image