Re: ABGTE2 confusion

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

------=_NextPart_000_0011_01C01344.D40B7B40
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Some quickie responses:
       for iy =3D 234 to 266 do            --What is iy and ix? They =
haven't been declared.*

  Loop counters don't have to be declared...

            for ix =3D 200 to 300 do
                 if get_pixel({ix, iy}) =3D 5 then    --*
                      pixel(15,{ix, iy})                --*  <-- Here's =
where the ball gets drawn
                    end if
            end for
       end for
       for iy =3D 267 to 300 do
            for ix =3D 200 to 300 do
                 if get_pixel({ix, iy}) =3D 5 then
                      pixel(9,{ix, iy})
                 end if
            end for
       end for
       ball =3D save_image({193,193},{308,308})            -- Where was =
it that the picture of ball was created?

------=_NextPart_000_0011_01C01344.D40B7B40
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Some quickie responses:</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; for iy =3D =
234 to 266=20
  do&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; --What is =
iy and=20
  ix?&nbsp;They haven't been declared.*</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2><STRONG>Loop counters don't have to be=20
  declared...</STRONG></FONT></DIV>
  <DIV><FONT face=3DArial=20
  size=3D2><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
for ix =3D 200=20
  to 300=20
  =
nbsp;&nbsp;&nbsp;=20
  if get_pixel({ix, iy}) =3D 5 then&nbsp;&nbsp;&nbsp;=20
  =
  pixel(15,{ix, iy})&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; --*&nbsp; <STRONG>&lt;-- Here's where the ball gets =

  =
  end if<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end=20
  for<BR>&nbsp;&nbsp;&nbsp;&nbsp; end for<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
for iy =3D=20
  267 to 300 =
do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for ix=20
  =3D 200 to 300=20
  =
nbsp;&nbsp;&nbsp;=20
  if get_pixel({ix, iy}) =3D 5=20
  =
  pixel(9,{ix,=20
  =
;&nbsp;&nbsp;&nbsp;=20
  end if<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end=20
  for<BR>&nbsp;&nbsp;&nbsp;&nbsp; end for<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
ball =3D=20
  save_image({193,193},{308,308})&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
  &nbsp;&nbsp;&nbsp; -- Where was it that the picture of ball was=20
  created?</DIV></FONT>
  <DIV><FONT face=3DArial =

------=_NextPart_000_0011_01C01344.D40B7B40--

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

Search



Quick Links

User menu

Not signed in.

Misc Menu