User Tools

Site Tools


pdf:transformationexamples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
pdf:transformationexamples [2015/04/02 18:11]
christian [flip horizontally]
pdf:transformationexamples [2015/04/02 18:12] (current)
christian [flip vertically]
Line 27: Line 27:
 ===== flip vertically ===== ===== flip vertically =====
  
-**x -> x  ,  y -> -y** +<code smalltalk>​ 
 +"x -> x  ,  y -> -y
 In this example the matrix is coded manually. ​ In this example the matrix is coded manually. ​
-It can also be coded as <code smalltalk>​Matrix scale: 4 @ -4</​code> ​to get ''[4 0 0 -4 0 0]''  +It can also be coded as Matrix scale: 4 @ -4 to get '[4 0 0 -4 0 0]'  
-and <code smalltalk>​(Matrix scale: 4 @ -4) translate: 50 @ 50</​code> ​to get ''[4 0 0 -4 50 50]''"​+and (Matrix scale: 4 @ -4) translate: 50 @ 50 to get '[4 0 0 -4 50 50]'"​
  
-<code smalltalk>​ 
 page := Graphics.PDF.Page page := Graphics.PDF.Page
   newInBounds:​ (-100 @ -100 corner: 100 @ 100)   newInBounds:​ (-100 @ -100 corner: 100 @ 100)
/var/www/virtual/code4hl/html/dokuwiki/data/pages/pdf/transformationexamples.txt · Last modified: 2015/04/02 18:12 by christian