* Alexander Barrett -- Sunday 13 June 2010:
> BRILLIANT! 

Thanks.  :-)

I've just committed more changes and tagged v0.1. This is backward
compatible. But the next version won't be, so if you plan to start
using the script, better wait a few days.


The main changes in v0.2 will be that there's no more bullet() and ptext(),
and that all graphics primitives are drawn at origin. All operations
lose x and y args, which are replaced by positioning commands. These
can be concatenated. All polar coordinates will be specified as (angle,
distance), never the other way around.

  clock = instrument("clock.svg", 512, 512, "bo105 clock")
  clock.at(0, 80).text("FlightGear", color = "red")

or instead of the former ptext() (i.e. "text with polar coordinates"):

  clock.at_polar(30, 80).text("FlightGear")

And you can concatenate these positioning commands with offsets or
polar_offsets:

  clock.at_polar(30, 80).offset(-5, 3).text("FlightGear")

This makes "manual" adjustments easier, as all angles are internally
mapped using the angle() method. And this angle() method can/should be
redefined to map scale values to angles, like it used to be. (That way
one can just make the tick at scale(!) value 100 red, and doesn't have
to figure out at which angle exactly that is. The angle() method knows
already.)

Confused? Excellent!  :-)    OK, I'll write some documentation too ...

m.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to