Two quick bug fixes:
Two quick bug fixes:
For the longest time, I’ve been having issues with the Dock Icon on OSX. It isn’t set using the same code that works in Windows and Linux, but I think I’ve finally figured it out.
Using information from this blog post, I can use the com.apple.eawt.Application
class to set the Dock Icon. It isn’t set immediately on launch, but shortly thereafter. Not perfect, but close.
Additional features:
[(c211 color)](http://www.cs.indiana.edu/cgi-pub/c211/wombat/docs/c211-color.htm "C211 Color API")
Bug fixes:
Added two functions to the matrix library:
(vov->matrix vov)
- converts a vector of vectors to a matrix(matrix->vov m)
- converts a matrix to a vector of vectorsQuick and simple, but highly useful for testing and display purposes.
I have a new chunk of issues this time, this time with screen shots.
Essentially, I’ve changed a few of the names in the previous turtle API and added a few new alias.
spawn
has been renamed to hatch
split
has been been renamed to clone
teleport!
has been added as an alias to move-to!
turn-counter-clockwise!
has been added as an alias to turn-left!
turn-clockwise!
and turn!
have been added as aliases to turn-right!
Sometimes I keep going beyond the point where I probably should. In this case, I want to add an animation feature to the turtle graphics library so I just went ahead and wrote one.
These new functions have been added to the turtle API:
(live-display b)
- b
should be #t
or #f
to enable or disable the live display, default is #f
(live-delay n)
- set the timer between frames, default is 0.1 seconds(live-display)
- is live display enabled?(live-delay)
- get the current delayAs I mentioned in my last post, I’ve been adding a turtle graphics library to Wombat to use with the other C211 libraries (matrix, image, and tree).