1 | x_target = lengthdir_x(dash_length, direction) |
2 | y_target = lengthdir_y(dash_length, direction) |
3 | line_offset += 3 |
4 | if (line_offset >= 20) |
5 | line_offset -= 20 |
6 | for (var i = line_segments; i > 0; i--) |
7 | { |
8 | x_start[i] = x + (lengthdir_x(line_offset, direction)) + (lengthdir_x(((dash_length + gap_length) * i), direction)) |
9 | y_start[i] = y + (lengthdir_y(line_offset, direction)) + (lengthdir_y(((dash_length + gap_length) * i), direction)) |
10 | } |