Finger (Finger v0.1.4) View Source

Documentation for Finger.

Link to this section Summary

Functions

Constructs the answer from the given image list

Fetches all the available images from the assets folder, randomly selects N

Generates a stitched image from the N number of random images. Returns {answer, binary_image} answer: is the "string" answer to the challenge binary_image: is the binary image data to be displayed to the user

Link to this section Functions

Link to this function

construct_answer(images)

View Source

Constructs the answer from the given image list

Link to this function

fetch_images(number_of_images)

View Source

Fetches all the available images from the assets folder, randomly selects N

Link to this function

generate(number_of_images \\ 4)

View Source

Generates a stitched image from the N number of random images. Returns {answer, binary_image} answer: is the "string" answer to the challenge binary_image: is the binary image data to be displayed to the user

Default number of images is: 4 Minimum number of images is: 2 (inclusive) Maximum number of images is: 9 (inclusive)

Examples

iex> Finger.generate(4)
{"123", << 12, 34 >>}