def METHOD_NAME(ctx):
    fb = create(ctx, 4, 4, components=1)
    fb.clear(color=(64, 64, 64, 64))
    assert fb.read(components=1) == b'\x40' * 16
    # Clear only the center pixels and verify that the rest is unchanged
    fb.clear()
    fb.clear(color=(255, 255, 255, 255), viewport=(1, 1, 2, 2))
    expected = (
        b'\x00\x00\x00\x00'
        b'\x00\xff\xff\x00'
        b'\x00\xff\xff\x00'
        b'\x00\x00\x00\x00'
    )
    assert bytes(fb.read(components=1)) == expected