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

Function generate_blue_points

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

Source from the content-addressed store, hash-verified

231 return points
232
233def generate_blue_points() -> list[Point]:
234 starting_point = BLUE_ANCHOR_POINT.copy()
235 hexagon_angles = [
236 HexagonAngle.RIGHT_UP,
237 HexagonAngle.RIGHT_UP,
238 HexagonAngle.UP,
239 HexagonAngle.LEFT_UP,
240 HexagonAngle.LEFT_DOWN,
241 HexagonAngle.LEFT_DOWN,
242 HexagonAngle.RIGHT_DOWN, # skip
243 HexagonAngle.RIGHT_DOWN,
244 HexagonAngle.UP,
245 HexagonAngle.RIGHT_UP,
246 HexagonAngle.UP,
247 HexagonAngle.RIGHT_UP,
248 ]
249 points = gen_points(hexagon_angles, LED_PER_STRIP, starting_point, exclude=[6])
250 return points
251
252def unit_test() -> None:
253 #simple_test()

Callers 1

unit_testFunction · 0.85

Calls 2

gen_pointsFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected