Turtle position should correctly report location in turtle coordinates #81
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#81
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current hack negates the x coordinate before translating the turtle; but then the internal representation has a negative number. Change the negation to the draw code, instead of the hack by negating the term in
goto!
There is almost certainly a way to use p5 transformations to make this work, but I reckon the thing to do here, now that computer class is all over, is to stand up a turtle graphics protocol out of Ludus, and then to write domain-specific handlers that translate turtle graphics protocol to whatever environment—SVG, some canvas/animation lib, a robot turtle, a 2D plotter, etc.
That way, we can just use turtle geometry in Ludus, and don't have to worry at all about the transformations that go into rendering lines and turtles.
Leaving this open to discuss in the coming weeks.
Done in
121446c5c4
. The turtle state is correctly calculated and reported, now. It's up to adapters to make sure the turtle graphics protocol is drawn correctly.