aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

improve visibility of the trace #403

Closed aroberge closed 6 years ago

aroberge commented 6 years ago

Especially when using background tiles, the trace left by the robot is not always as visible as it should ideally be. Perhaps the default thickness should be increased to 2 to make it more visible.

aroberge commented 6 years ago

The main problem is the way that lines are drawn on overlapping pixels. See https://stackoverflow.com/a/7531540/558799 for an explanation, and https://stackoverflow.com/a/13884434/558799 for the solution I chose to implement.

I also chose to increase the default line width to 2 pixels as 1 px was just too thin and did not look as good.