bibliopixel.util.util module

bibliopixel.util.util.even_dist(start, stop, steps)[source]
bibliopixel.util.util.genVector(width, height, x_mult=1, y_mult=1)[source]

Generates a map of vector lengths from the center point to each coordinate.

width - width of matrix to generate height - height of matrix to generate x_mult - value to scale x-axis by y_mult - value to scale y-axis by

bibliopixel.util.util.generate_header(cmd, size)[source]
bibliopixel.util.util.pointOnCircle(cx, cy, radius, angle)[source]

Calculates the coordinates of a point on a circle given the center point, radius, and angle.

bibliopixel.util.util.tuple_add(a, b)[source]
bibliopixel.util.util.tuple_div(a, b)[source]
bibliopixel.util.util.tuple_mult(a, b)[source]
bibliopixel.util.util.tuple_sub(a, b)[source]