Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void draw_simple_image(float x, float y, float r, float s) {
- pushMatrix();
- translate(x,y);
- stroke(#00ff00);
- strokeWeight(5*s);
- fill(#000FFF);
- line((-25*s), (-40*s),
- ( 25*s), ( 40*s)
- );
- triangle((-10*s), (-25*s),
- ( 0*s), (-40*s),
- ( 10*s), (-25*s)
- );
- quad((-10*s), (-25*s),
- ( 20*s), (-25*s),
- (-25*s), (-10*s),
- (-30*s), (-10*s)
- );
- popMatrix();
- rotate();
- }
- void draw() {
- draw_simple_image(40, 40, 0, 1);
- }
- void rotate(){
- draw_simple_image(40, 40, 0, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement