Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:05 14 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Line Width Issue?

Author Message
KellyBC
Newbie

Joined: 02/08/2020
Location: United States
Posts: 3
Posted: 04:08am 08 Aug 2020
Copy link to clipboard 
Print this post

Sorry about the double post, but I inadvertently posted to the Guest Book with the first one. Also, I can't figure out how to delete that post so if an admin could delete it that would be great. Anyway . . .

Hello, I have a pretty simple question I think. My son was using the LINE command to draw a stick man. Everything was going well except when he went to draw a diagonal line and change the line width. The LW parameter seems to have no effect on diagonal lines. Am I missing something? I tried to look on this forum for similar issues, but didn't find anyone else reporting any problems with LW. LW does work with horizontal and vertical lines, just doesn't seem to work with diagonals.

He is using:
LINE x1,y1,x2,y2,LW


Thanks for any help/explanation.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1646
Posted: 04:26am 08 Aug 2020
Copy link to clipboard 
Print this post

Check out the latest manual page 29 which says:
  Quote  LINE X1, Y1, X2, Y2, LW, C
Draws a line starting at X1 and Y1 and ending at X2 and Y2.
LW is the line’s width and is only valid for horizontal or vertical lines. It defaults to 1 if not specified or is changed to 1 if the line is a diagonal.


You could try 2 lines one pixel apart?

Bill
Keep safe. Live long and prosper.
 
KellyBC
Newbie

Joined: 02/08/2020
Location: United States
Posts: 3
Posted: 04:35am 08 Aug 2020
Copy link to clipboard 
Print this post

Ahh. Thanks! I didn't find that line in the manual. I was looking at the Programming tutorial and didn't think to look at another source. We only got our CCM2 a few days ago and I haven't read through everything in enough detail yet. I was basing most of my help from my TI and C64 days (which was quite a while ago). I will help him out with the multiple line trick.

Good to know that it is just setup to work that way and we weren't just coding it wrong.

Thanks again!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025