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.
First, a few bug fixes with the keyword lists and help links:
let
and a named let
.Also, I wrote code to generate help files for the C211 libraries. Theoretically, I should just be able to update these with future updates to the APIs:
As a side note, I’ve added two new functions to the tree API:
A new feature: any keyword can now have an associated hyperlink that points to the Chez Scheme API reference for that function. Just click on a function that you want help with and hit F1 on your keyboard. The link will open in your systems default browser. So far only the functions built into Petite Chez Scheme work correctly, I’ll be adding the C211 libraries as soon as I write the documentation for it.
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).
Another one of those posts. 😄
Bug fixes:
draw-image
dialog.draw-tree
now has the same background color as that produced by draw-image
or draw-matrix
.Enhancements: