CodeW3C Online Handleiding
  • HTML Reeks Handleidingen
  • Browser script
  • Server script
  • Programmeer Handleidingen
  • XML Reeks Handleidingen
  • Website Bouw Handleiding
  • Referentie Handleiding

Lessenaanbod

JS referentieshandleiding

  • JS referentieshandleiding (categorieën volgorde)
  • JS referentieshandleiding (alfabetische volgorde)

JavaScript

  • JS array
  • JS boolean
  • JS class
  • JS date
  • JS error
  • JS global
  • JS json
  • JS map
  • JS math
  • JS number
  • JS promise
  • JS regexp
  • JS set
  • JS string
  • JS object
  • JS 运算符
  • JS Operator
  • JS Operator Prioriteit
  • JS Statement

JS Typisierte Array

  • Window Object
  • Window
  • Window Console
  • Window Geschiedenis
  • Window Locatie
  • Window Navigator

Window Scherm

  • HTML DOM
  • HTML Document
  • HTML Element
  • HTMLAttribuut
  • HTML Event
  • HTML Event Object
  • HTML Collectie
  • HTML NodeList
  • HTML DOMTokenList

HTML Stijl

  • Web API
  • API Canvas
  • API Console
  • API Fetch
  • API Volledig Scherm
  • API Locatie
  • API Geschiedenis
  • API MediaQueryList
  • API Opslag
  • API Validatie

Web API

  • HTML Object
  • <a>
  • <abbr>
  • <address>
  • <area>
  • <article>
  • <aside>
  • <audio>
  • <b>
  • <base>
  • <bdo>
  • <blockquote>
  • <body>
  • <br>
  • <button>
  • <canvas>
  • <caption>
  • <cite>
  • <code>
  • <col>
  • <colgroup>
  • <datalist>
  • <dd>
  • <del>
  • <details>
  • <dfn>
  • <dialog>
  • <div>
  • <dl>
  • <dt>
  • <em>
  • <embed>
  • <fieldset>
  • <figcaption>
  • <figure>
  • <footer>
  • <form>
  • <head>
  • <header>
  • <h1> - <h6>
  • <hr>
  • <html>
  • <i>
  • <iframe>
  • <img>
  • <ins>
  • <input> knop
  • <input> keuzevak
  • <input> kleur
  • <input> datum
  • <input> datum-local
  • <input> e-mail
  • <input> bestand
  • <input> verborgen
  • <input> afbeelding
  • <input> maand
  • number
  • password
  • radio
  • range
  • reset
  • search
  • submit
  • text
  • time
  • url
  • week
    1. JavaScript:

      var c=document.getElementById("myCanvas");
      var ctx=c.getContext("2d");
      ctx.rotate(20*Math.PI/180);
      ctx.fillRect(50,20,100,50);
      

      亲自试一试

      语法

      context.rotate(angle);

      参数值

      参数 描述
      angle

      旋转角度,以弧度计。

      如需将角度转换为弧度,请使用 degrees*Math.PI/180 公式进行计算。

      Example: To rotate 5 degrees, you can specify the following formula: 5 * Math.PI / 180.

      Browser support

      The numbers in the table indicate the first browser version that fully supports this property.

      Chrome Edge Firefox Safari Opera
      Chrome Edge Firefox Safari Opera
      4.0 9.0 3.6 4.0 10.1

      Note:Internet Explorer 8 and earlier versions do not support the <canvas> element.

      Canvas reference manual

      Toolbox

      JavaScript en HTML DOM Referentie Handleiding
      JavaScript example
      JavaScript quiz
      JavaScript tutorial

      Sponsor links

      The content provided by CodeW3C.com is for training and testing purposes only and does not guarantee the accuracy of the content. Risks associated with the use of this site's content are not related to this site. All rights reserved.

      About CodeW3C.com Help CodeW3C.com Terms of use Privacy terms Aangedreven door Ce4e.com