def makeImage(height, width, imageName):
    k = 1.9
    numSamples = 100000000
    imageWidth = width
    imageHeight = height
    data = (([0] * imageHeight) * imageWidth)
    cx = (imageWidth / 2)
    cy = (imageHeight / 2)
    radius = ((imageWidth / 2) * 0.95)
    for i in range(numSamples):
        theta = uniform(0, (10 * pi))
        (pA_x, pA_y) = lemniscate(theta, radius, cx, cy)
        (pB_x, pB_y) = lemniscate((k * theta), radius, cx, cy)
        r = uniform(0, 1)
        pC_x = (((1 - r) * pA_x) + (r * pB_x))
        pC_y = (((1 - r) * pA_y) + (r * pB_y))
        i = int((pC_x + 0.5))
        j = int((pC_y + 0.5))
        data[((j * imageWidth) + i)] += 1
    saveImage(data, imageName, imageWidth, imageHeight, bg=[255, 255, 255], fg=[221, 100, 0], alphaMultiplier=18)
def makeImage(height, width, imageName):
    k = 1.9
    numSamples = 100000000
    imageWidth = width
    imageHeight = height
    data = (([0] * imageHeight) * imageWidth)
    cx = (imageWidth / 2)
    cy = (imageHeight / 2)
    radius = ((imageWidth / 2) * 0.95)
    for i in range(numSamples):
        theta = uniform(0, (10 * pi))
        (pA_x, pA_y) = lemniscate(theta, radius, cx, cy)
        (pB_x, pB_y) = lemniscate((k * theta), radius, cx, cy)
        r = uniform(0, 1)
        pC_x = (((1 - r) * pA_x) + (r * pB_x))
        pC_y = (((1 - r) * pA_y) + (r * pB_y))
        i = int((pC_x + 0.5))
        j = int((pC_y + 0.5))
        data[((j * imageWidth) + i)] += 1
    saveImage(data, imageName, imageWidth, imageHeight, bg=[255, 255, 255], fg=[221, 100, 0], alphaMultiplier=18)