Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
HP-GL
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == Typical HP-GL files start with a few setup commands, followed by a long string of graphics commands. The file was in [[ASCII]] ([[text file]]) [[File format|format]], for instance: {| class="wikitable" |+ An example HP-GL file |----- ! Command ! Meaning |----- | {{mono|IN;}} || initialize, start a plotting job |----- | {{mono|IP;}} | set the scaling points (P1 and P2) to their default positions |----- | {{mono|SP1;}} || select pen 1 |----- | {{mono|PU0,0;}} | lift Pen Up and move to starting point for next action |----- | {{mono|PD100,0,100,100,0,100,0,0;}} | put Pen Down and move to the following locations (draw a box around the page) |----- | {{mono|PU50,50;}} || Pen Up and move to X,Y coordinates 50,50 |----- | {{mono|CI25;}} || draw a circle with radius 25 |----- | {{mono|SS;}} || select the standard character set |----- | {{mono|DT*,1;}} | set the text delimiter to the asterisk, and do not print them (the 1, meaning "true") |----- | {{mono|PU20,80;}} || lift the pen and move to 20,80 |----- | {{mono|LBHello World*;}} || draw a label |} The coordinate system was based on the smallest units one of the HP plotters could support, and was set to 25 ΞΌm (i.e. 40 units per millimeter, 1016 per inch). The coordinate space was positive or negative [[floating point]] numbers, specifically Β±2<sup>30</sup>.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
HP-GL
(section)
Add topic