question on palette funtion

new topic     » topic index » view thread      » older message » newer message

--=======AVGMAIL-3FCBACBF3C8A=======

------=_NextPart_000_0011_01C3B8AA.D7993900

Is it possible to draw the second line green without the first line (blue) being
chaged to green also.

include graphics.e
sequence old
integer error
error = graphics_mode(18)
draw_line(1,{{100,100},{200,100}}) -- draw blue line
old = palette(1,{15,14,10}) -- change blue to green
print(1,old)
draw_line(1,{{100,200},{200,200}}) -- draw green line & somehow keep blue line
blue?



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/03
------=_NextPart_000_0011_01C3B8AA.D7993900
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Is it possible to draw the second line green 
without the first line (blue) being chaged to green also.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>include graphics.e<BR>sequence old<BR>integer 
error<BR>error = graphics_mode(18)<BR>draw_line(1,{{100,100},{200,100}}) -- draw
blue line<BR>old = palette(1,{15,14,10}) -- change blue to 
green<BR>print(1,old)<BR>draw_line(1,{{100,200},{200,200}}) -- draw green line 
&amp; somehow keep blue line blue?<BR></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><BR>---<BR>Outgoing mail is certified Virus 
Free.<BR>Checked by AVG anti-virus system (<A 
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.545 /

------=_NextPart_000_0011_01C3B8AA.D7993900--
--=======AVGMAIL-3FCBACBF3C8A=======
Content-Type: text/plain; x-avg=cert; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Description: "AVG certification"

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/03

--=======AVGMAIL-3FCBACBF3C8A=======--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu