Jump to content

Search the Community

Showing results for tags 'need help with this'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. can anyone tell me how i would be able to know how many places i need to move a square to the other side of a river which is 200 px width? or how would i know how many places i need to move to be able to draw a square? this is what im drawing, im suppose to create the right side but im not sure how to figure out the points positions <script type="application/javascript" language="javascript">window.onload = draw;function draw(){// assign the canvas element to a variablevar canvas = document.getElementById("canvas1");// create the html5 content object to be enable to draw methodsvar ctx = canvas.getContext("2d");// create the first shapectx.beginPath();ctx.moveTo(100, 50);ctx.lineTo(130, 100);ctx.lineTo(70, 100);ctx.fill();// create the second shapectx.beginPath();ctx.moveTo(72, 60);ctx.lineTo(85, 72);ctx.lineTo(71, 94);ctx.lineTo(50, 70);ctx.lineTo(65, 40);ctx.fill();// create the last shapectx.beginPath();ctx.moveTo(113, 69);ctx.lineTo(158, 60);ctx.lineTo(126, 90);ctx.fill(); }</script> i got 3 out of the 5 positions correct which is by guessing, so can anyone point me in the right direction so ill be able to figure out where the points need to go or can someone help me understand how to figure out where to place the points
×
×
  • Create New...