Drag the background!
World: rotate

Owner: P5 Editor porting project  
API: P5 (r2)
World type: No Mind

Rotating a square around the Z axis. * To get the results you expect, send the rotate function angle * parameters that are values between 0 and PI*2 (TWO_PI which is * roughly 6.28). If you prefer to think about angles as degrees * (0-360), you can use the radians() method to convert your values. * For example: rotate(radians(90)) is identical to the statement * rotate(PI/2). In this example, every even numbered second a jitter * is added to the rotation. During odd seconds, rotation moves CW and * CCW at the speed determined by the last jitter value.

Created: 16 Jun 2021
Modified: 7 Jul 2021
View JavaScript code.

Get Embed code.
Get New window embed code.
Get Autorun embed code.

4 runs

Tweet this World:  

Run
Edit Must be logged in and owner.
Update image Must be logged in and owner.
Clone Must be logged in.
Clone with all Minds Only valid for Worlds that use Minds.
Clone as Teaching World Only valid for Worlds that use Minds.
New Mind Only valid for Worlds that use Minds.
Change World type Must be logged in and owner.
Change API Must be logged in and owner.
Delete Must be logged in and owner.
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Website copyright Ancient Brain. 2018-2021.
Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
If you are interested in writing a programming course, textbook or tutorial videos, Ancient Brain is looking for partners. We will work with you, and integrate your course into the site. This is an opportunity for someone looking to develop a course or textbook to partner with a site to support it and promote it.