00:00 / 11:38
1080P
  • Quality
  • 1080P 1080P
  • 720P 720P
  • SD 480P
Add to Channel Download Report

Playing issue

0 0

Embed:

Copy

Processing快乐编程030 多对象旋转及坐标重置 Original

AlanHou 2021-07-12 823

Creators

Previously we animated a rotating rectangle. This time we animate not only one, but four rectangles.
To rotate an object around its own center we must move the origin and rotate the axes. This works fine when there is only one object, but to rotate more than one object is tricky, because each time translate() and rotate() are called, the effect adds to previous calls to translate() and rotate(). To solve this we introduce resetMatrix(), which removes previous changes to the origin and axes rotation.
Basically we do 1. translate(), 2. rotate(), 3. draw something, 4. resetMatrix() to undo the effects produced by 1 and 2. Then repeat 1, 2, 3 and 4 for other rotating objects.

Courtesy of Abe Pazos Solatie(Fun Programming)

Abe Pazos Solatie, artist and creative coder producing static, moving and interactive images with a focus on the subtle and the organic.


Software(s): Processing

Comments

No comments yet
Recommended
Autoplay
Cloud's Memoir 02:00
Cloud's Memoir
Audition & Performance
Ocean Child 06:40
Ocean Child
LightProjectionAudition & Performance
试卷 00:38
试卷
Digital VideoVideo
<Pandora Cube> White·Tech 03:28
<Pandora Cube> White·Tech
LightProjectionVirtuality and RealityVideoLight Installation
山下贰 01:05
山下贰
ProjectionInteractiveInstallation
"Fall into Dream" -- Projection interactive dance 02:48
"Fall into Dream" -- Projection interactive dance
视听表演Digital ArtDanceInteractive Mapping新媒体
"Green Landscapes" 00:45
"Green Landscapes"
ArchitectureArchitecture MappingAudition & PerformanceArt VideoVideo
Download MANA APP