From 2b3ee121642007032f0689be7d248d771708795a Mon Sep 17 00:00:00 2001 From: Juliette ELSASS Date: Thu, 4 Apr 2024 09:47:33 +0200 Subject: [PATCH] update doc --- docs/doc/BGRACanvas2D.TBGRACanvas2D.html | 11 +++++++++++ docs/doc/tipuesearch/tipuesearch_content.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/doc/BGRACanvas2D.TBGRACanvas2D.html b/docs/doc/BGRACanvas2D.TBGRACanvas2D.html index d436cca..4921748 100644 --- a/docs/doc/BGRACanvas2D.TBGRACanvas2D.html +++ b/docs/doc/BGRACanvas2D.TBGRACanvas2D.html @@ -1512,6 +1512,17 @@

Methods

Rotates the canvas around the origin (0,0) by the given angle in radians, clockwise.

+

+ + +

Example rotating around the center of a 200x200 canvas:

+ +
+canvas2D.translate(100, 100);
+canvas2D.rotate(Pi);
+canvas2D.translate(-100, -100);
+ +

diff --git a/docs/doc/tipuesearch/tipuesearch_content.js b/docs/doc/tipuesearch/tipuesearch_content.js index 702e065..2005853 100644 --- a/docs/doc/tipuesearch/tipuesearch_content.js +++ b/docs/doc/tipuesearch/tipuesearch_content.js @@ -4533,7 +4533,7 @@ var tipuesearch = {"pages": [ {"title": "BGRACanvas2D.TBGRACanvas2D.rect", "text": " ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#rect-single-single-single-single-"}, {"title": "BGRACanvas2D.TBGRACanvas2D.resetTransform", "text": " ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#resetTransform"}, {"title": "BGRACanvas2D.TBGRACanvas2D.restore", "text": " If there is no saved state, this method does nothing. ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#restore"}, - {"title": "BGRACanvas2D.TBGRACanvas2D.rotate", "text": " ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#rotate-single-"}, + {"title": "BGRACanvas2D.TBGRACanvas2D.rotate", "text": " Example rotating around the center of a 200x200 canvas: canvas2D.translate(100, 100); canvas2D.rotate(Pi); canvas2D.translate(-100, -100); ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#rotate-single-"}, {"title": "BGRACanvas2D.TBGRACanvas2D.roundRect", "text": " ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#roundRect-single-single-single-single-single-"}, {"title": "BGRACanvas2D.TBGRACanvas2D.roundRect", "text": " ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#roundRect-single-single-single-single-single-single-"}, {"title": "BGRACanvas2D.TBGRACanvas2D.save", "text": " The drawing state consists of: the current transformation matrix. the current clipping region. the font parameters. the various properties of stroke and fill style. the shadow parameters. ", "tags": "", "url": "BGRACanvas2D.TBGRACanvas2D.html#save"},