Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. void flake(int x, int y, int length, float theta)
  2. {
  3. if(length < 1) return;
  4.  
  5. gfx_line(x, y, x - length* cos(theta + 1 * 1.257), y - length* sin(theta + 1 * 1.257));
  6. flake(x - length*cos(theta + 1 * 1.257), y - length*sin(theta + 1 * 1.257), length * 0.35, theta);
  7.  
  8. gfx_line(x, y, x - length* cos(theta + 2 * 1.257), y - length* sin(theta + 2 * 1.257));
  9. flake(x - length*cos(theta + 2 * 1.257), y - length*sin(theta + 2 * 1.257), length * 0.35, theta);
  10.  
  11. gfx_line(x, y, x - length * cos(theta + 3 * 1.257), y - length * sin(theta + 3 * 1.257));
  12. flake(x - length* cos(theta + 3 * 1.257), y - length*sin(theta + 3 * 1.257), length * 0.35, theta);
  13.  
  14. gfx_line(x, y, x - length * cos(theta + 4 * 1.257), y - length * sin(theta + 4 * 1.257));
  15. flake(x - length * cos(theta + 4 * 1.257), y - length*sin(theta + 4 * 1.257), length * 0.35, theta);
  16.  
  17. gfx_line(x, y, x - length * cos(theta + 5 * 1.257), y -length * sin(theta + 5 * 1.257));
  18. flake(x - length * cos(theta + 5 * 1.257), y -length * sin(theta + 5 * 1.257), length * 0.35, theta);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement