This Coding Challenge is a follow up on the challenge #54: Islamic Star Patterns. In this video, I use the Law of Sines to simplify the tiling pattern calculation.

Link to Part 1:

Star Patterns community code:

Support this channel on Patreon:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Law of Sines on Wikipedia:
Gabriel Weymouth’s Tweet on Star Patterns:
Craig S. Kaplan Lecture on Star Patterns:
University of Waterloo’s Star Patterns Paper:

Source Code for the all Video Lessons:


For More Coding Challenges:
For an Intro to Programming using p5.js:

Help us caption & translate this video!