mirror of
https://github.com/Cametendo/EMVs-Creative-coding.git
synced 2026-06-20 17:45:02 +02:00
Added some things
This commit is contained in:
13
Week-2/Pictures/transformations.js
Normal file
13
Week-2/Pictures/transformations.js
Normal file
@@ -0,0 +1,13 @@
|
||||
function setup() {
|
||||
createCanvas(800, 800);
|
||||
background(200);
|
||||
fill(150, 0, 0);
|
||||
rect(0, 0, 60, 150);
|
||||
|
||||
translate(200, 120);
|
||||
rotate(0.5);
|
||||
scale(1.5);
|
||||
|
||||
fill(0, 150, 0);
|
||||
rect(0, 0, 60, 150);
|
||||
}
|
||||
Reference in New Issue
Block a user