def dot_pattern(dot_size=4, repeat=4, color=np.array([1.0, 1.0, 1.0])):
    '\n    dot pattern 作る。\n\n    Parameters\n    ----------\n    dot_size : integer\n        dot size.\n    repeat : integer\n        The number of high-low pairs.\n    color : array_like\n        color value.\n\n    Returns\n    -------\n    array_like\n        dot pattern image.\n\n    '
    pixel_num = ((dot_size * 2) * repeat)
    even_logic = [(((np.arange(pixel_num) % (dot_size * 2)) - dot_size) < 0)]
    even_logic = np.dstack((even_logic, even_logic, even_logic))
    odd_logic = np.logical_not(even_logic)
    color = color.reshape((1, 1, 3))
    even_line = ((np.ones((1, pixel_num, 3)) * even_logic) * color)
    odd_line = ((np.ones((1, pixel_num, 3)) * odd_logic) * color)
    even_block = np.repeat(even_line, dot_size, axis=0)
    odd_block = np.repeat(odd_line, dot_size, axis=0)
    pair_block = np.vstack((even_block, odd_block))
    img = np.vstack([pair_block for x in range(repeat)])
    return img
dot pattern 作る。

Parameters
----------
dot_size : integer
    dot size.
repeat : integer
    The number of high-low pairs.
color : array_like
    color value.

Returns
-------
array_like
    dot pattern image.
def dot_pattern(dot_size=4, repeat=4, color=np.array([1.0, 1.0, 1.0])):
    '\n    dot pattern 作る。\n\n    Parameters\n    ----------\n    dot_size : integer\n        dot size.\n    repeat : integer\n        The number of high-low pairs.\n    color : array_like\n        color value.\n\n    Returns\n    -------\n    array_like\n        dot pattern image.\n\n    '
    pixel_num = ((dot_size * 2) * repeat)
    even_logic = [(((np.arange(pixel_num) % (dot_size * 2)) - dot_size) < 0)]
    even_logic = np.dstack((even_logic, even_logic, even_logic))
    odd_logic = np.logical_not(even_logic)
    color = color.reshape((1, 1, 3))
    even_line = ((np.ones((1, pixel_num, 3)) * even_logic) * color)
    odd_line = ((np.ones((1, pixel_num, 3)) * odd_logic) * color)
    even_block = np.repeat(even_line, dot_size, axis=0)
    odd_block = np.repeat(odd_line, dot_size, axis=0)
    pair_block = np.vstack((even_block, odd_block))
    img = np.vstack([pair_block for x in range(repeat)])
    return img