Write a program in Qbasic to draw four parallel lines
Answers
Answered by
3
Answer:
The question is vague, but here's a possibility. Hope that helps.
For a segment (x1,y1)-(x2,y2) you can calculate another segment, n pixels away in a direction represented by angle a this way
x1b = x1 + n cos a
y1b = y1 - n sin a
x2b = x2 + n cos a
y2b = y2 - n sin a
Similar questions
English,
6 months ago
Computer Science,
6 months ago
Science,
1 year ago
Social Sciences,
1 year ago