Message: 10
Date: Fri, 17 Mar 2006 10:26:30 -0800
From: Mark Talluto <[EMAIL PROTECTED]>
Subject: Draw spokes on a wheel
To: Revolution use Revolution <use-revolution@lists.runrev.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hello everyone,

I need a little help drawing spokes to a wheel. This is actually used in a vision test. I have an image here to help illustrate the madness. I am sure someone like Jim Ault is shaking his head right
now.  <http://www.canelasoftware.com/pub/rev/astig.jpg>

I have been using an image, but would like to offer the ability to adjust the line length and thickness. The new antialiasing feature will also be handy. Thanks for any input.


Mark Talluto
--
CANELA Software
http://www.canelasoftware.com


Mark,

You may be able to guess what my solution might be; that's right Turtle Graphics.

on mouseUp
  startTurtle
  put 12 into tNumSpokes
  put 100 into tLengthSpokes
  repeat 360/tNumSpokes
    forward tLengthSpokes
    back tLengthSpokes
    left 360/tNumSpokes
  end repeat
  stopTurtle
end mouseUp


Paste this handler into a button in the stack:

go url "http://home.infostations.net/jhurley/StopTurtles.rev";

Or if you want something like the clock in your graphic;

go url "http://home.infostations.net/jhurley/Build_a_clock.rev";

There are lots of variations possible.

Jim

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to