Page 2 of 2

Re: How do you draw precise borders around a rectangle?

Posted: Tue Jan 19, 2016 10:34 am
by Spogg
@Nowhk:
I see the same in 3.08.1

I get the same difference as you between schematic view and focus mode.
Windows 7 with Intel on-chip graphics in the core i7.

It becomes more visibly apparent when you make the View area really small and this was my issue with my small menu selector box from Synthmaker. I couldn't get the border "right".
You are not alone!

Cheers

Spogg

Re: How do you draw precise borders around a rectangle?

Posted: Tue Jan 19, 2016 10:37 am
by Nowhk
Ah ok! So maybe its a Bug, or MyCo can shed light to this...
I'm on Windows 10 Professional (64bit) anyway.

Re: How do you draw precise borders around a rectangle?

Posted: Tue Jan 19, 2016 11:32 am
by tulamide
No, I don't see the same. And the code is correct, plus, the used values are indeed excluding subpixels. So there seems to be an issue introduced past 3.0.6 (which I use)

Re: How do you draw precise borders around a rectangle?

Posted: Mon Feb 01, 2016 11:39 am
by Nowhk
Spogg wrote:@Nowhk:
I see the same in 3.08.1

tulamide wrote:No, I don't see the same. And the code is correct, plus, the used values are indeed excluding subpixels. So there seems to be an issue introduced past 3.0.6 (which I use)

Well, at the end no bugs or issues. I've discovered that using "v.setSmoothingMode("off")" fix the problem with border bottom. For precise drawing, this option + multiple of 0.125 works perfectly 8-)
Thanks both!

Re: How do you draw precise borders around a rectangle?

Posted: Mon Feb 01, 2016 6:23 pm
by Tronic
FS-User-Guide
pag. - 188 -
see the Pen Alignment section

Code: Select all

   pen = Pen.new (Color.ew(225)), 0.1
   pen.setAlignment "inset" # default is "center"


draw you rectangle and take care if you have to subtract the Pen size or not for the width and height.

Re: How do you draw precise borders around a rectangle?

Posted: Mon Feb 01, 2016 6:42 pm
by Tronic
Here the demo of Pen Alignment with "inset" mode
Rectangle Border_with_Pen_Alignment_Tronic.fsm
(565 Bytes) Downloaded 870 times

Re: How do you draw precise borders around a rectangle?

Posted: Mon Feb 01, 2016 7:03 pm
by Tronic
With the pen with "inset" alignment....
I don't expect to subtract anything to the rectangle, so...
YES it's an BUG....
the rectangle is drawed correctly, but the view size have 1 pixel lag....
always the rendering View remove the last x/y from the rectangle, with the default grid,
but you can have different result if you try to zoom in/out...
this is not an :arrow: BUG? why...? :?