Article View: net.micro.atari
Article #2571Re: Doin' Simple Graphics on the 520ST
From: Neil Harris
Date: Wed, 26 Feb 1986 19:26
Date: Wed, 26 Feb 1986 19:26
40 lines
2244 bytes
2244 bytes
In article <8602220427.AA17071@ohio-state.ARPA>, terrell@OHIO-STATE.ARPA (Eric Terrell) writes:
> Cmon guys - could one of you tell me which system routines to call to
> be able to do very simple graphics (drawing lines, etc.)
>
> My compiler (TDI Modula-2) supports all the GEM, AES, VDI, etc
> but I don't know what routines to call.
>
> My compiler came with a large graphics demo program, but I can't figure
> out what I need from that, and what is unnecessary.
You really should get your hands on the book "Atari ST GEM Programmers
Reference" from Abacus books. This documents everything. You have to do a
number of calls, starting with the v_opnvwk to open the virtual screen
workstation (to give you a unique workstation that does not conflict with
other tasks). You can use this call to set up your default line type, line
color, marker type, marker color, character set, text color, fill type, fill
pattern index, and fill color.
Some of the graphics calls are:
v_pline... draw a polyline
v_gtext... draw text
v_fillarea... draw a filled polygon
v_contourfill... perform a flood fill
vr_recfl... draw a filled rectangle
v_arc... draw an arc
v_pieslice... draw a pie slice
v_circle... draw a circle
vs_color... set one of the palette colors
set_color... set polyline color
set_type... set polyline type (solid, dashed, etc.)
set_effect... set text special effects (bold, italic, etc.)
set_interior... set fill interior style (hollow, solid, dots, etc.)
There are _lots_ more -- you really need the book to get all the parameters.
--->Neil @ Atari
Usenet: ...lll-crg!vecpyr!atari!neil
CIS: 70007,1135
BIX: neilharris
Technical Details
Message-ID:
<120@atari.UUcp>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!harvard!seismo!lll-crg!lll-lcc!vecpyr!atari!neilReferences:
<8602220427.AA17071@ohio-state.ARPA>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!harvard!seismo!lll-crg!lll-lcc!vecpyr!atari!neil From: neil@atari.UUcp (Neil Harris) Newsgroups: net.micro.atari Subject: Re: Doin' Simple Graphics on the 520ST Message-ID: <120@atari.UUcp> Date: Wed, 26-Feb-86 14:26:30 EST Article-I.D.: atari.120 Posted: Wed Feb 26 14:26:30 1986 Date-Received: Sat, 1-Mar-86 16:40:12 EST References: <8602220427.AA17071@ohio-state.ARPA> Organization: Atari Corp/Mktg Lines: 40