MANA

MANA Global New Media Art Platform

Art Design Technology Innovate

Fun Programming 033 Use multiplication to scale up or down speeds and sizes
Open MANA APP,for more creatives

Fun Programming 033 Use multiplication to scale up or down speeds and sizes

Creative Coding Education

273 2021-07-15 Download

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.

 

Creative Coding Processing

Creators

AlanHou

Works 46 Followers 30

上传者

Follow