Comments (9)
Original comment by luser.droog
on 28 Oct 2013 at 9:19
- Changed title: itp does not accept '-DDEVICE=XXX' option and '-o Filename%d' option to render output to named file(s) in a standard interchange format.
from xpost.
we could use getlong-like options (see
http://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Option-Example.htm
l#Getopt-Long-Option-Example)
so the use of itp would be :
itp [options] -o foo.pgm foo.ps
with options :
-h or --help
-v or --version
-d the_device or --device the device
we can add more options in that issue
Original comment by [email protected]
on 29 Oct 2013 at 5:43
from xpost.
The short-form -d should be for definitions, so it's not actually any
shorter. To specify a device, it's
-dDEVICE=???
Then the initgraphics operator will look for that definition to open the
device.
Original comment by luser.droog
on 29 Oct 2013 at 5:58
from xpost.
The above options are not yet available, but as of revision 8929337c8597
(http://code.google.com/p/xpost/source/detail?r=8929337c859763bce5825d581d39808e
4e5ca48e), you can get a pgm file of the graphics output by defining
/OutputFileName. Eg.
/OutputFileName (out.pgm)
loadgraphics
0 0 moveto
50 50 lineto
0 setlinewidth %currently only supports zero-width lines
stroke
showpage
Be sure to make your terminal really big, because it's a 50x50 text dump of the
image.
Original comment by luser.droog
on 10 Nov 2013 at 5:17
from xpost.
Whoops! Jumped tracks there. You'll see the text dump if you DON'T specify a
file as shown. If you specify a file, it writes to the file and does not print
the text dump to the screen.
Original comment by luser.droog
on 10 Nov 2013 at 5:18
from xpost.
So. The options are implemented (thanks Vincent). But the graphics code doesn't
make use of it. The main function needs to make definitions for the graphics
code to find (or not, for default behavior).
Original comment by luser.droog
on 2 Dec 2013 at 11:35
- Changed state: Started
from xpost.
I've connected the device option '-d' to the code that instantiates the device.
Need to deal with the filename now.
Original comment by luser.droog
on 4 Jan 2014 at 11:57
from xpost.
Using the filename is implemented now. But the background is black instead of
white.
Original comment by luser.droog
on 18 Jan 2014 at 12:25
from xpost.
This is all fixed for a while now. Closing.
from xpost.
Related Issues (20)
- Increase performance of the hash tables HOT 1
- use the same random filename sequence in lmem* gmem* and xdump* HOT 2
- create dumper utility to convert lmem* gmem* and xdump* to a text format HOT 3
- optimize typechecks and polymorphic dispatch from procedure bodies in `bind`
- unit tests do not compile on Windows HOT 3
- color space not changing naturally
- Increase array and string max size
- Simplify operator execution by pushing args backwards HOT 1
- Remove integer automaton from grok()
- kshow ignores proc
- devices which output to file only output a single file (jpeg png pgm ppm) HOT 4
- PS interpreter HOT 6
- Completion of error handling HOT 16
- readhexstring has multiple problems HOT 4
- [discussion] meson build system HOT 2
- xpost_file_read(), and hence readstring, doesn't deal with end of file HOT 2
- -Wall has a new nuisance warning HOT 18
- is dirname really needed ? HOT 4
- Configuration parameters HOT 2
- Can't install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xpost.