Page 1 of 1

DRAW LINE or PIXEL with pattern

Posted: Fri Oct 25, 2019 8:35 pm
by Dutchman
Would it be possible to extend the 'DRAW LINE' and 'DRAW PIXEL' commands with an optional line pattern. :?:
DRAW LINE x1.y1, x2, y2, "1001" would then draw a line in which two points are repeatedly followed by two spaces
The same could be applied to 'DRAW PIXEL' in case two xy parameters are given.
This offers also the possibility to draw a 'running' line. ;)

Re: DRAW LINE or PIXEL with pattern

Posted: Fri Oct 25, 2019 10:41 pm
by kibernetik
Thank you for the suggestion!

In your "1001" pattern "1" means "draw" and "0" means "do not draw"?

Re: DRAW LINE or PIXEL with pattern

Posted: Sat Oct 26, 2019 8:06 am
by Dutchman
kibernetik wrote:
Fri Oct 25, 2019 10:41 pm

In your "1001" pattern "1" means "draw" and "0" means "do not draw"?
Yes :!:
In the second line I changed "pixels" into "points"