Playing issue
Reported video:Processing快乐编程033 使用倍数放大、缩小速度和尺寸
Description:
Creators
Multiplication is something we often use in our programs, so it's important to feel comfortable with it. In programming languages, the sign used for multiplication is the asterisk: *. When we multiply any number by 1, we get the same number: 77 * 1 = 77. When we multiply by a number larger than 1, we get a number larger than the original number: 77 * 1.2 = 92.4. When we multiply by a positive number smaller than 1, we make it smaller: 77 * 0.8 = 61.6. Knowing these simple rules we create a program where objects move a different speeds. We also update the program we created with 5 rotating rectangles to give each rectangle a different rotation speed.
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
Please Log in or Register to comment