MCPcopy Create free account
hub / github.com/FastLED/FastLED / generate_green_points

Function generate_green_points

examples/Chromancer/gen.py:211–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209
210
211def generate_green_points() -> list[Point]:
212 starting_point = GREEN_ANCHOR_POINT.copy()
213 hexagon_angles = [
214 HexagonAngle.RIGHT_UP,
215 HexagonAngle.UP,
216 HexagonAngle.LEFT_UP,
217 HexagonAngle.LEFT_DOWN,
218 HexagonAngle.DOWN,
219 HexagonAngle.RIGHT_DOWN, # skip
220 HexagonAngle.LEFT_DOWN, # skip
221 HexagonAngle.LEFT_UP,
222 HexagonAngle.UP,
223 HexagonAngle.RIGHT_UP,
224 HexagonAngle.LEFT_UP,
225 HexagonAngle.LEFT_DOWN,
226 HexagonAngle.RIGHT_DOWN,
227 HexagonAngle.RIGHT_UP, # skip
228 HexagonAngle.RIGHT_DOWN,
229 ]
230 points = gen_points(hexagon_angles, LED_PER_STRIP, starting_point, exclude=[5,6,13])
231 return points
232
233def generate_blue_points() -> list[Point]:
234 starting_point = BLUE_ANCHOR_POINT.copy()

Callers 1

unit_testFunction · 0.85

Calls 2

gen_pointsFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected