(Ruby) Pen alignment fails ?

For general discussion related FlowStone
Post Reply
unkargherth
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

(Ruby) Pen alignment fails ?

Post by unkargherth »

It seems that it works for the example in the manual ( page 170) but fails for other shapes, an arc in the example below
PenAlignment.fsm
(442 Bytes) Downloaded 1129 times
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: (Ruby) Pen alignment fails ?

Post by trogluddite »

I would guess that is probably only works for closed shapes (i.e ones that you can fill with colour).
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: (Ruby) Pen alignment fails ?

Post by Nubeat7 »

yes, i tried rect, round rect ellipse and pie - these are working but i didn`t check polygon and closed curve...
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: (Ruby) Pen alignment fails ?

Post by Nubeat7 »

you could do a GraphicsPath - when you addArc it dont works but when you do close it with closeFigure it works!
unkargherth
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

Re: (Ruby) Pen alignment fails ?

Post by unkargherth »

Probably my initial guest/understanding on what means "inside" was mistaken. I supposed that Inside meant "within the limits of the area/rectangle defined, not in relation to a closed "DRAWN" shape

I was expecting this "inside" feature free's me to do again and again the boring "Area resize" that we got in SM for years

My mistake... I admit
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
Post Reply