# Py5Graphics.rotate_y()#

Rotates around the y-axis the amount specified by the `angle` parameter.

## Description#

Rotates around the y-axis the amount specified by the `angle` parameter. Angles should be specified in radians (values from `0` to `TWO_PI`) or converted from degrees to radians with the radians() function. Coordinates are always rotated around their relative position to the origin. Positive numbers rotate in a clockwise direction and negative numbers rotate in a counterclockwise direction. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling `rotate_y(PI/2)` and then `rotate_y(PI/2)` is the same as `rotate_y(PI)`. If `rotate_y()` is run within the `draw()`, the transformation is reset when the loop begins again. This function requires using `P3D` as a third parameter to size() as shown in the example.

This method is the same as rotate_y() but linked to a `Py5Graphics` object. To see example code for how it can be used, see rotate_y().

Underlying Processing method: PGraphics.rotateY

## Syntax#

```rotate_y(angle: float, /) -> None
```

## Parameters#

• angle: float - angle of rotation specified in radians

Updated on November 12, 2021 11:30:58am UTC
{"ft_lang_label":"__label__en","ft_lang_prob":0.6964283,"math_prob":0.89198357,"size":1251,"snap":"2022-40-2023-06","text_gpt3_token_len":289,"char_repetition_ratio":0.13632719,"word_repetition_ratio":0.07734807,"special_character_ratio":0.21982414,"punctuation_ratio":0.10958904,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97948056,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-26T15:31:10Z\",\"WARC-Record-ID\":\"<urn:uuid:7a67cccd-c620-44b0-a223-1267f41be6a5>\",\"Content-Length\":\"111921\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c1cd4e41-e918-4000-801c-83cdf56fc6b2>\",\"WARC-Concurrent-To\":\"<urn:uuid:5d23afa7-9c4c-4a3e-9589-e4e6fd9f42df>\",\"WARC-IP-Address\":\"52.216.97.202\",\"WARC-Target-URI\":\"http://py5dev.ixora.io/reference/py5graphics_rotate_y.html\",\"WARC-Payload-Digest\":\"sha1:ISAKAM5PKKLUXAOFU5UVSTSJQPRVULVX\",\"WARC-Block-Digest\":\"sha1:34WDI745REAPTAQOF66U53KRSYDXGQXG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030334912.28_warc_CC-MAIN-20220926144455-20220926174455-00642.warc.gz\"}"}