top of page

Scale, Translate, Rotate

  • Karla G
  • 28 mar 2015
  • 1 Min. de lectura

ROTATE

"The rotate() function rotates the coordinate system so that shapes can be drawn to the screen at an angle. It has one parameter that sets the amount of the rotation as an angle: rotate(angle);" (Casey Reas, Ben Fry.)

SCALE

"The scale() functions magnifies the coordinate system so that shapes are drawn larger. It has one or two parameters to set the amount of increase or decrease: scale(size); scale(xsize, ysize);" (Casey Reas, Ben Fry.)

TRANSLATE

"The translate() function moves the origin from the upper-left corner of the screen to another location. It has two parameters- the first is the x-coordintate offset, and the second is the y-coordinate offser. The calues of the parameters are added to aany shapes after the function is run." (Casey Reas, Ben Fry.)

How to use them:

A normal box:

noFill();

stroke(255,255,255);

box(10);

Captura de pantalla 2015-03-27 a las 17.26.09.png

A rotated box:

noFill();

rotate(3*PI/4);

stroke(255,255,255);

box(10);

Captura de pantalla 2015-03-27 a las 17.28.12.png

A normal sphere:

noFill();

scale(1,2);

stroke(255,255,255);

sphere(10);

Captura de pantalla 2015-03-27 a las 17.30.43.png

A scaled sphere:

noFill();

scale(1,2);

stroke(255,255,255);

sphere(10);

Captura de pantalla 2015-03-27 a las 17.37.44.png

A normal box:

noFill();

stroke(255,255,255);

box(10);

Captura de pantalla 2015-03-27 a las 17.26.09.png

A translated box:

noFill();

stroke(255,255,255);

translate(10,30);

box(10);

Captura de pantalla 2015-03-27 a las 18.05.34.png

References:

Casey Reas, Ben Fry. (2014). Processing: A Programming Handbook for Visual Designers and Artists. United States: MIT Press, 2014.

 
 
 

Comments


 THE ARTIFACT MANIFAST: 

 

This is a great space to write long text about your company and your services. You can use this space to go into a little more detail about your company. Talk about your team and what services you provide. Tell your visitors the story of how you came up with the idea for your business and what makes you different from your competitors. Make your company stand out and show your visitors who you are. Tip: Add your own image by double clicking the image and clicking Change Image.

 UPCOMING EVENTS: 

 

10/31/23:  Scandinavian Art Show

 

11/6/23:  Video Art Around The World

 

11/29/23:  Lecture: History of Art

 

12/1/23:  Installations 2023 Indie Film Festival

 FOLLOW THE ARTIFACT: 
  • Facebook B&W
  • Twitter B&W
  • Instagram B&W
 RECENT POSTS: 
 SEARCH BY TAGS: 

© 2023 by Karla Lugo. Proudly created with Wix.com

bottom of page