Beispiel #1
0
def test_wheat(ctx):
    img = Image.new((100, 100), fill=RGBColor.parse('wheat'))
    ctx.compare(img, 'canvas_wheat.miff')
Beispiel #2
0
def test_khaki_to_tomato(ctx):
    img = Image.new((100, 100), fill=RGBColor.parse('khaki'))
    img[0].replace_color(RGBColor.parse('khaki'), RGBColor.parse('tomato'))
    ctx.compare(img, 'canvas_opaque.miff')
Beispiel #3
0
def test_khaki(ctx):
    img = Image.new((100, 100), fill=RGBColor.parse('khaki'))
    ctx.compare(img, 'canvas_khaki.miff')
Beispiel #4
0
def test_fx_navy(ctx):
    img = Image.new((64, 64), fill=RGBColor(0., 0., 0.))
    gray = RGBColor(0.5, 0.5, 0.5)
    img = image_filter(lambda *a: gray)(*img, channel=Channel.blue)
    ctx.compare(img, 'fx_navy.miff')
Beispiel #5
0
def test_khaki_to_tomato(ctx):
    img = Image.new((100, 100), fill=RGBColor.parse('khaki'))
    img[0].replace_color(RGBColor.parse('khaki'), RGBColor.parse('tomato'))
    ctx.compare(img, 'canvas_opaque.miff')
Beispiel #6
0
def test_wheat(ctx):
    img = Image.new((100, 100), fill=RGBColor.parse('wheat'))
    ctx.compare(img, 'canvas_wheat.miff')
Beispiel #7
0
def test_khaki(ctx):
    img = Image.new((100, 100), fill=RGBColor.parse('khaki'))
    ctx.compare(img, 'canvas_khaki.miff')