Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Vector Entertainment issue
SnyperBob
Beginner
Posts: 42
Permalink
Post Vector Entertainment issue
on: February 24, 2012, 22:47
Quote

Hi Again,

Now that I have GhostScript installed, I've been playing around with trying to view *.ps files on my machine.

I had downloaded the VectorEntertainment.zip file from the downloads page. Inside is network.ps

When I try to open network.ps via GhostScript, it throws a bunch of errors and doesn't display the drawing for me.

If I create a new *.ps file and copy the code for the network drawing from the PS to Polar graph wiki, it works.
Is the code for network.ps inside VectorEntertainment.zip bad?

I just wanted to point this out for anyone running into this in the future.

Code that works from the wiki:

/inch {72 mul} def
4.25 inch 5.5 inch translate % find center of page

/sides 31 def % number of sides to the polygon - PRIME NUMBERS WORK

1 1 sides 2 div cvi {
4 inch 0 inch moveto
gsave
sides {
360 sides div 1 index mul rotate
4 inch 0 inch lineto
} repeat
stroke
grestore
pop
} for
showpage

Sneelocke
Newbie
Posts: 2
Permalink
Post Re: Vector Entertainment issue
on: February 25, 2012, 16:01
Quote

The WIKI code was simplified for clarity. The network.ps code was left as I keep it in my system. It has some preamble used for previewing so I can drop the code on one of two .bat files... one that does previewing, another that makes the cmd file for the polargraph. It likely hangs on the definition of 'previewing?' which can be placed after the comment and is this line-
/previewing? true def

which then defines '/inch' and '/pen-up' -Andy

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.016 seconds.