This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > June 2007 > graphing a polar equation in PSP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author graphing a polar equation in PSP
John Andrisan

2007-06-12, 6:23 pm

underprocessable
Joe Fromm

2007-06-13, 3:18 am

Always nice to see people using some of the more advanced features of the
scripting abilities.

Looking over the code, I did see one little oops - you attempted to
initialize revolutions to 1, but you spelled it revolutons, not revolutions.
So technically revolutions is only assigned by the call to GetString, and
you have an unreferenced variable called revolutons.

That is all just nitpicking though. Nice work.

Joe


"John Andrisan" <andrisan@pacbell.net> wrote in message
news:466d8c28_2@cnews...
> My script is a sample of using Python's exec command that I developed in
> PSP9.
> It's not meant to be complete or bullet-proof... but it shows the power of
> Python as an interpretive language via its "exec" command.
>
> There are only two prompts, shown in my attachments. The first is for a
> polar equation and the second is for how many times to use it.
>
> The equation is in variables r and theta, and may include math functions
> like sin, cos, and so on.
> r must be on the left of the = (equal sign). The theta variable is
> incremented through a range of values.
>
> Any errors in the equation, like unbalanced parentheses will be caught by
> Python and a message will appear in the Script Output pallate.
> john
>
>
>



Spandex Rutabaga

2007-06-13, 3:18 am

Joe Fromm wrote:
>
> Always nice to see people using some of the more advanced features of the
> scripting abilities.
>
> Looking over the code, I did see one little oops - you attempted to
> initialize revolutions to 1, but you spelled it revolutons, not revolutions.
> So technically revolutions is only assigned by the call to GetString, and
> you have an unreferenced variable called revolutons.
>
> That is all just nitpicking though. Nice work.


Not such a bad mistake. There are people selling term papers
with revolutons as a misspelling :)
http://www.radessays.com/viewpaper/...Revolutons.html
I don't think much of the English or the logic in the paper
either, which is not a criticism that can be leveled at John :)
John Andrisan

2007-06-13, 6:25 pm

>but you spelled it revolutons, not revolutions.

Thanks... I'll fix that.
john


Spandex Rutabaga

2007-06-14, 6:22 pm

John Andrisan wrote:

> The equation is in variables r and theta, and may include math functions
> like sin, cos, and so on.
> r must be on the left of the = (equal sign). The theta variable is
> incremented through a range of values.


Here's something you can do with it.
Spandex Rutabaga

2007-06-14, 10:20 pm

Spandex Rutabaga wrote:

> Here's something you can do with it.


And something else.
John Andrisan

2007-06-14, 10:20 pm

a double LOL!
john


Spandex Rutabaga

2007-06-14, 10:20 pm

Spandex Rutabaga wrote:
>
> Spandex Rutabaga wrote:
>
>
> And something else.


And another.
Spandex Rutabaga

2007-06-14, 10:20 pm

Spandex Rutabaga wrote:
>
> Spandex Rutabaga wrote:
>
> And another.


And now an animation.
Spandex Rutabaga

2007-06-15, 6:43 pm

Spandex Rutabaga wrote:
>
> Spandex Rutabaga wrote:
>
> And now an animation.


This is a little addictive :)
SuzShook

2007-06-15, 10:22 pm

Spandex Rutabaga wrote:
> Spandex Rutabaga wrote:
>
> This is a little addictive :)


You're having WAAAAAAAY too much fun here, Spandex!


Spandex Rutabaga

2007-06-16, 6:21 pm

SuzShook wrote:
>
> Spandex Rutabaga wrote:


>
> You're having WAAAAAAAY too much fun here, Spandex!


You may be right :)
Barbara J Bradley

2007-06-16, 6:21 pm


"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:4674031F.2380EC3D@agabatur.xednaps...
> SuzShook wrote:
>
>
> You may be right :)


:))


Spandex Rutabaga

2007-06-16, 6:21 pm

Barbara J Bradley wrote:
>
> "Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
> news:4674031F.2380EC3D@agabatur.xednaps...
>
> :))


Flower ID please :)
SuzShook

2007-06-16, 6:21 pm



Spandex Rutabaga wrote:
> Barbara J Bradley wrote:
>
> Flower ID please :)


Absolutely!!!!


Barbara J Bradley

2007-06-16, 6:21 pm


"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:46742CE8.B8A26951@agabatur.xednaps...
> Barbara J Bradley wrote:
>
> Flower ID please :)


Oh, I'm sure that is it!!! Perhaps Joëlle will confirm. It makes our
job even more difficult when you start designing your own flowers.
Barb


JoeB

2007-06-16, 10:17 pm

"Barbara J Bradley" <BarbBrad1@aol.com> wrote in news:467309d6_1@cnews:

>
> "Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
> news:46742CE8.B8A26951@agabatur.xednaps...
>
> Oh, I'm sure that is it!!! Perhaps Joëlle will confirm. It makes
> our
> job even more difficult when you start designing your own flowers.
> Barb


If you wish to start compiling a library of theta flowers for future ID
purposes, here's another one:

http://www3.mistral.co.uk/joe_taylo...lines/flow.html

or shorter link in case it wraps:

http://tinyurl.com/2pps3v

Not as nice as Spandex's, however :-)

Regards,

JoeB
Barbara J Bradley

2007-06-16, 10:17 pm


"JoeB" <mymail@myserver.com> wrote in message
news:Xns9951B5DCBD6CDJoeB@207.107.16.194...
> "Barbara J Bradley" <BarbBrad1@aol.com> wrote in news:467309d6_1@cnews:
>
>
> If you wish to start compiling a library of theta flowers for future ID
> purposes, here's another one:
>
> http://www3.mistral.co.uk/joe_taylo...lines/flow.html
>
> or shorter link in case it wraps:
>
> http://tinyurl.com/2pps3v
>
> Not as nice as Spandex's, however :-)
>
> Regards,
>
> JoeB


Right, not as nice but interesting. :)


Lori Davis

2007-06-19, 6:32 pm

John Andrisan wrote:
> My script is a sample of using Python's exec command that I developed in
> PSP9.
> It's not meant to be complete or bullet-proof... but it shows the power of
> Python as an interpretive language via its "exec" command.
>
> There are only two prompts, shown in my attachments. The first is for a
> polar equation and the second is for how many times to use it.
>
> The equation is in variables r and theta, and may include math functions
> like sin, cos, and so on.
> r must be on the left of the = (equal sign). The theta variable is
> incremented through a range of values.
>
> Any errors in the equation, like unbalanced parentheses will be caught by
> Python and a message will appear in the Script Output pallate.


Very neat, John. Can't wait to play with this one. I see Spandex has
already done a lot of nifty things with this script. Thanks!

Lori
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews