Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Bring Objects into Perspective - Pg. 120

120 ChaPter B: SCriPting SuPPort for PerSPeCtive Drawing //Draw rectangle in perspective, then resize to 200% and move var myrect = mydoc.pathItems.rectangle(30, -30, 30, 30, false); myrect.resize(200, 200, true, false, false, false, 100, Transformation.TOPLEFT); myrect.translate (-420, 480); //Draw ellipse in perspective var myellipse = mydoc.pathItems.ellipse(60, -60, 30, 30, false, true); //Draw rounded rectangle in perspective var myrrect = mydoc.pathItems.roundedRectangle(90, -90, 30, 30, 10, 10, false); //Draw polygon in perspective var mypoly = mydoc.pathItems.polygon(-105, 105, 15, 7, false); //Draw star in perspective var mystar = mydoc.pathItems.star(-135, 135, 15, 10, 6, false); //Draw path in perspective var newPath = mydoc.pathItems.add(); var lineList = new Array(4); lineList[0] = new Array(0,0); lineList[1] = new Array(60,0);