Skip to content

Instantly share code, notes, and snippets.

@dyln
Created March 11, 2016 13:37
Show Gist options
  • Select an option

  • Save dyln/13a641a695a7ea0d4e0a to your computer and use it in GitHub Desktop.

Select an option

Save dyln/13a641a695a7ea0d4e0a to your computer and use it in GitHub Desktop.
shape decomp
PShape sekil;
void setup(){
size(800,600);
sekil= loadShape("shape.svg");
noLoop();
draw();
}
void draw(){
background(255);
sekil.scale(0.1);
sekil.scale(10);
shape(sekil,0,0);
}
@dyln
Copy link
Author

dyln commented Mar 11, 2016

need to have a .svg file in data directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment