コード例 #1
0
ファイル: shapes.py プロジェクト: Azleur/img_gen
def MakeTriad():
    """Make a black and white triple triangle. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfTriad,
                      name="triad",
                      size=256,
                      channels="L",
                      multisample=8)
コード例 #2
0
ファイル: shapes.py プロジェクト: Azleur/img_gen
def MakeFadedSpiral():
    """Make a grayscale spiral with added alpha fade. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfFadedSpiral,
                      name="faded_spiral",
                      size=256,
                      channels="LA")
コード例 #3
0
ファイル: shapes.py プロジェクト: Azleur/img_gen
def MakeTriangle():
    """Make a black and white triangle. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfTriangle, name="triangle", size=64, channels="L")
コード例 #4
0
ファイル: shapes.py プロジェクト: Azleur/img_gen
def MakeBullseye():
    """Make a black and white bullseye symbol. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfBullseye, name="bullseye", size=64, channels="L")
コード例 #5
0
ファイル: shapes.py プロジェクト: Azleur/img_gen
def MakeSpiral():
    """Make a grayscale spiral. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfSpiral, name="spiral", size=128, channels="L")
コード例 #6
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeRussianFlag():
    """Make the Russian flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfRussian, "ru")
コード例 #7
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeGreekFlag():
    """Make the Greek flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfGreek, "gr")
コード例 #8
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeFrenchFlag():
    """Make the French flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfFrench, "fr")
コード例 #9
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeItalianFlag():
    """Make the Italian flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfItalian, "it")
コード例 #10
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeNorwegianFlag():
    """Make the Norwegian flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfNorwegian, "no")
コード例 #11
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeSwedishFlag():
    """Make the Swedish flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfSwedish, "se")
コード例 #12
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeSpanishFlag():
    """Make the Spanish flag (without shield). Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfSpanish, "es")
コード例 #13
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeCatalanFlag():
    """Make the Catalan flag. Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfCatalan, "ca")
コード例 #14
0
ファイル: flags.py プロジェクト: Azleur/img_gen
def MakeBritishFlag():
    """Make the Union Jack (simplified). Saves it in the working directory as a PNG file."""
    img_gen.MakeImage(pfBritish, "en")