home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / BezierCanvas / Read Me < prev   
Encoding:
Text File  |  1999-08-30  |  1.4 KB  |  43 lines

  1. BezierCanvas Information
  2.  
  3.  
  4.  
  5. Requirements:
  6.  
  7. BezierCanvas requires REALbasic 2.1.
  8.  
  9. BezierCanvas is offered as freeware on an 'as is' basis. Use it as you like: if you improve it I would really like to know - send me an email at:
  10.  
  11. nick@magmouse.freeserve.co.uk
  12.  
  13.  
  14. Purpose:
  15.  
  16. BezierCanvas is intended for drawing bezier curves, as used in drawing and image manipulation programs such as Illustrator, Photoshop, etc. Bezier curves are a simple but powerful way of defining curves which are freeform and natural, rather than segments of circles, etc. Bezier curves are defined by four points - two which define the ends of the curve, and two 'handles' which control the shape of the curve between. Play with the example if you are unclear how they work.
  17.  
  18.  
  19. To Use:
  20.  
  21. You can base your project on the example project supplied, or you can drag the various classes to the desktop, and then into your project. The classes needed are: pointClass, bezierClass, bezierCanvasClass, handlePointClass, and bezierPointClass.
  22.  
  23. Make your canvas inherit from bezierCanvasClass, and you are away...
  24.  
  25.  
  26. Interface:
  27.  
  28. The tools work in the same way as Photoshop (at least the version 3 of Photoshop that I have!), and keyboard shortcuts have been implemented - play with the modifier keys to see this.
  29.  
  30. There are plenty of things to fiddle with if you are so inclined - such as the colours used to draw lines, points, etc.
  31.  
  32.  
  33. Enjoy!
  34.  
  35.  
  36. Nick Hunt
  37.  
  38. nick@magmouse.freeserve.co.uk
  39. www.magmouse.freeserve.co.uk
  40.  
  41. 31/8/99
  42.  
  43.