Add documentation for line_at_angle (#3687)

This commit is contained in:
Daniel Eisterhold 2024-03-17 18:51:48 -05:00 committed by GitHub
parent b159709a3f
commit 26b3ada768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ and circles:
lambda: |-
// Draw a line from [0,0] to [100,50]
it.line(0, 0, 100, 50);
// Draw an angled line from [0,0] at 45° with a length of 30
it.line_at_angle(0, 0, 45, 30);
// Draw an angled line from [0,0] at 30° with a start radius of 10 and stop radius of 20
it.line_at_angle(0, 0, 30, 10, 20);
// Draw the outline of a rectangle with the top left at [50,60], a width of 30 and a height of 42
it.rectangle(50, 60, 30, 42);
// Draw the same rectangle, but this time filled.