FastLED 3.9.15
Loading...
Searching...
No Matches
gen Namespace Reference

Detailed Description

Generates the hexegon using math.

Classes

class  HexagonAngle
 
class  Point
 

Functions

list[Pointfind_green_anchore_point ()
 
list[Pointfind_red_anchor_point ()
 
list[Pointgen_points (list[HexagonAngle] input, int leds_per_strip, Point startPos, list[int]|None exclude=None, bool add_last=False)
 
list[Pointgenerate_black_points ()
 
list[Pointgenerate_blue_points ()
 
list[Pointgenerate_green_points ()
 
list[Pointgenerate_red_points ()
 
None main ()
 
Point next_point (Point pos, HexagonAngle angle, float space)
 
None simple_test ()
 
float toRads (float angle)
 
None two_angle_test ()
 
None two_angle_test2 ()
 
None unit_test ()
 

Variables

 BLACK_ANCHOR_POINT = Point(0,0)
 
 BLUE_ANCHOR_POINT = Point(0, 0)
 
list[PointGREEN_ANCHOR_POINT = find_green_anchore_point()[-1]
 
float LED_DIAMETER = SPACE_PER_LED / 4
 
int LED_PER_STRIP = 14
 
bool MIRROR_X = True
 
list[PointRED_ANCHOR_POINT = find_red_anchor_point()[-1]
 
int SMALLEST_ANGLE = 360 / 6
 
float SPACE_PER_LED = 30.0