FastLED 3.9.3
|
Generates the hexegon using math.
Classes | |
class | HexagonAngle |
class | Point |
Functions | |
float | toRads (float angle) |
Point | next_point (Point pos, HexagonAngle angle, float space) |
list[Point] | gen_points (list[HexagonAngle] input, int leds_per_strip, Point startPos, list[int]|None exclude=None, bool add_last=False) |
None | main () |
None | simple_test () |
None | two_angle_test () |
None | two_angle_test2 () |
list[Point] | find_red_anchor_point () |
list[Point] | find_green_anchore_point () |
list[Point] | generate_red_points () |
list[Point] | generate_black_points () |
list[Point] | generate_green_points () |
list[Point] | generate_blue_points () |
None | unit_test () |
Variables | |
int | LED_PER_STRIP = 14 |
float | SPACE_PER_LED = 30.0 |
float | LED_DIAMETER = SPACE_PER_LED / 4 |
bool | MIRROR_X = True |
int | SMALLEST_ANGLE = 360 / 6 |
list[Point] | RED_ANCHOR_POINT = find_red_anchor_point()[-1] |
BLACK_ANCHOR_POINT = Point(0,0) | |
list[Point] | GREEN_ANCHOR_POINT = find_green_anchore_point()[-1] |
BLUE_ANCHOR_POINT = Point(0, 0) | |
list[Point] gen.gen_points | ( | list[HexagonAngle] | input, |
int | leds_per_strip, | ||
Point | startPos, | ||
list[int] | None | exclude = None, | ||
bool | add_last = False ) |
Point gen.next_point | ( | Point | pos, |
HexagonAngle | angle, | ||
float | space ) |
list[Point] gen.GREEN_ANCHOR_POINT = find_green_anchore_point()[-1] |
list[Point] gen.RED_ANCHOR_POINT = find_red_anchor_point()[-1] |