Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void flake(int x, int y, int length, float theta)
- {
- if(length < 1) return;
- gfx_line(x, y, x - length* cos(theta + 1 * 1.257), y - length* sin(theta + 1 * 1.257));
- flake(x - length*cos(theta + 1 * 1.257), y - length*sin(theta + 1 * 1.257), length * 0.35, theta);
- gfx_line(x, y, x - length* cos(theta + 2 * 1.257), y - length* sin(theta + 2 * 1.257));
- flake(x - length*cos(theta + 2 * 1.257), y - length*sin(theta + 2 * 1.257), length * 0.35, theta);
- gfx_line(x, y, x - length * cos(theta + 3 * 1.257), y - length * sin(theta + 3 * 1.257));
- flake(x - length* cos(theta + 3 * 1.257), y - length*sin(theta + 3 * 1.257), length * 0.35, theta);
- gfx_line(x, y, x - length * cos(theta + 4 * 1.257), y - length * sin(theta + 4 * 1.257));
- flake(x - length * cos(theta + 4 * 1.257), y - length*sin(theta + 4 * 1.257), length * 0.35, theta);
- gfx_line(x, y, x - length * cos(theta + 5 * 1.257), y -length * sin(theta + 5 * 1.257));
- flake(x - length * cos(theta + 5 * 1.257), y -length * sin(theta + 5 * 1.257), length * 0.35, theta);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement