"Thomas A. Gardiner" wrote:
>
> Jos,
>
> I just tried your script for making vector buttons, 'cause I would like to
> make a "round" vector button (certainly nontrivial to do by hand since it
> is quite subjective to discretization). Any way, the perl script resulted
> in negative numbers like this.
>
> ButtonStyle 6 Simple -- UseTitleStyle
> AddButtonStyle 6 2 50x50_at_0 -140x-20_at_0
> AddButtonStyle 6 4 50x50_at_1 -139x-20_at_1 -140x-20_at_1 -140x-20_at_1
>
> Ah... The beauty and complexity of Postscript. Circles are so simple in
> that language.
>
> Any ideas? Want the .fig file to play with?
Mmmm circles... Well, the script I made was just a quick hack, that only
parses polygons. This covers the functionality of vector buttons, as they
also consist only of straigt lines.
To make a cirlce, you'd have to just mimic it using a polygon. What you could do,
is just draw a green circle to act as a guide, and then draw your actual polygon
in black or red on top of this circle. (all colors but blue red and black are ignored
by the script)
Another possibility might be to use the button on the bottom left of the xfig
window 'convert polygons splines etc...', maybe this also converts a circle to
a polygon? I don't know how this works. Please let me know if you find a way.
An idea (maybe slightly overdone, though) would be to use a 2d-mesh generator.
But, mmm maybe I'll include that in a next version of the script.
regardz
jos.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Jan 13 2000 - 03:36:33 GMT