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

Detailed Description

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[Pointgen_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[Pointfind_red_anchor_point ()
 
list[Pointfind_green_anchore_point ()
 
list[Pointgenerate_red_points ()
 
list[Pointgenerate_black_points ()
 
list[Pointgenerate_green_points ()
 
list[Pointgenerate_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[PointRED_ANCHOR_POINT = find_red_anchor_point()[-1]
 
 BLACK_ANCHOR_POINT = Point(0,0)
 
list[PointGREEN_ANCHOR_POINT = find_green_anchore_point()[-1]
 
 BLUE_ANCHOR_POINT = Point(0, 0)
 

Function Documentation

◆ find_green_anchore_point()

list[Point] gen.find_green_anchore_point ( )

Definition at line 161 of file gen.py.

◆ find_red_anchor_point()

list[Point] gen.find_red_anchor_point ( )

Definition at line 151 of file gen.py.

◆ gen_points()

list[Point] gen.gen_points ( list[HexagonAngle] input,
int leds_per_strip,
Point startPos,
list[int] | None exclude = None,
bool add_last = False )

Definition at line 68 of file gen.py.

◆ generate_black_points()

list[Point] gen.generate_black_points ( )

Definition at line 192 of file gen.py.

◆ generate_blue_points()

list[Point] gen.generate_blue_points ( )

Definition at line 233 of file gen.py.

◆ generate_green_points()

list[Point] gen.generate_green_points ( )

Definition at line 211 of file gen.py.

◆ generate_red_points()

list[Point] gen.generate_red_points ( )

Definition at line 177 of file gen.py.

◆ main()

None gen.main ( )

Definition at line 102 of file gen.py.

◆ next_point()

Point gen.next_point ( Point pos,
HexagonAngle angle,
float space )

Definition at line 60 of file gen.py.

◆ simple_test()

None gen.simple_test ( )

Definition at line 118 of file gen.py.

◆ toRads()

float gen.toRads ( float angle)

Definition at line 30 of file gen.py.

◆ two_angle_test()

None gen.two_angle_test ( )

Definition at line 127 of file gen.py.

◆ two_angle_test2()

None gen.two_angle_test2 ( )

Definition at line 139 of file gen.py.

◆ unit_test()

None gen.unit_test ( )

Definition at line 252 of file gen.py.

Variable Documentation

◆ BLACK_ANCHOR_POINT

gen.BLACK_ANCHOR_POINT = Point(0,0)

Definition at line 172 of file gen.py.

◆ BLUE_ANCHOR_POINT

gen.BLUE_ANCHOR_POINT = Point(0, 0)

Definition at line 174 of file gen.py.

◆ GREEN_ANCHOR_POINT

list[Point] gen.GREEN_ANCHOR_POINT = find_green_anchore_point()[-1]

Definition at line 173 of file gen.py.

◆ LED_DIAMETER

float gen.LED_DIAMETER = SPACE_PER_LED / 4

Definition at line 15 of file gen.py.

◆ LED_PER_STRIP

int gen.LED_PER_STRIP = 14

Definition at line 13 of file gen.py.

◆ MIRROR_X

bool gen.MIRROR_X = True

Definition at line 16 of file gen.py.

◆ RED_ANCHOR_POINT

list[Point] gen.RED_ANCHOR_POINT = find_red_anchor_point()[-1]

Definition at line 171 of file gen.py.

◆ SMALLEST_ANGLE

int gen.SMALLEST_ANGLE = 360 / 6

Definition at line 18 of file gen.py.

◆ SPACE_PER_LED

float gen.SPACE_PER_LED = 30.0

Definition at line 14 of file gen.py.