Loading...
Processing Forum
Recent Topics
All Forums
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
General Discussion
Other
Arun Alla..
How do you draw a simple line with user inputed slope and intercept?
in
General Discussion
•
Other
•
15 days ago
If I have a slope (m) and the y intercept (b), for the equation, y = mx + b, can I draw a simple line using these in processing?
1
Replies(2)
PhiLho
Re: How do you draw a simple line with user inputed slope and intercept?
15 days ago
Yes, of course, it is really simple.
Leave a comment on PhiLho's reply
tfguy44
Re: How do you draw a simple line with user inputed slope and intercept?
15 days ago
float m=.2,b=20,c=220;size(440,440);background(-1);translate(c,c);
line(0,-c,0,c);line(-c,0,c,0);stroke(c,0,0);line(-c,-(m*-c+b),c,-(m*c+b));
Leave a comment on tfguy44's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to Arun Allamsetty's question
Top
Reply
{"z4106057":[25080000002668333],"z30347557":[25080000002667224],"z4085862":[25080000002667239]}
Statistics
2
Replies
166
Views
0
Followers
Tags
Cancel
line
draw
slope
Actions
Permalink
Related Posts
Thread / Recursion
'Filling' the gaps between ...
How can I get the position of any c...
how to let things move or be intera...
How to realize the DRAWING processi...