mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 15:06:22 +01:00
16 lines
No EOL
381 B
Text
16 lines
No EOL
381 B
Text
function draw_line_round(x1, y1, x2, y2, w) {
|
|
draw_line_width(x1, y1, x2, y2, w);
|
|
|
|
draw_circle(x1, y1, w/2, false);
|
|
draw_circle(x2, y2, w/2, false);
|
|
}
|
|
|
|
function draw_line_round_color(x1, y1, x2, y2, w, c1, c2) {
|
|
draw_line_width_color(x1, y1, x2, y2, w, c1, c2);
|
|
|
|
draw_set_color(c1);
|
|
draw_circle(x1, y1, w/2, false);
|
|
|
|
draw_set_color(c2);
|
|
draw_circle(x2, y2, w/2, false);
|
|
} |