Page 2 of 2

Re: Function Rotate(Angle As Float) As Image

Posted: Friday 4th June 2021 4:23am
by Askjerry
I'm very happy you liked the samples and could get them to load.

The shadow in the gauge is really easy... create a pointer and name it as such, make a copy and name it shadow.
Then color the shadow black, set it to be partially transparent, and offset it slightly.
Then rotate both the same amount.

If we can reference the SVG subcomponents and apply movement and/or rotation... awesome GUI could be created.

Jerry

Re: Function Rotate(Angle As Float) As Image

Posted: Friday 4th June 2021 9:24am
by tincho
Askjerry wrote: Friday 4th June 2021 4:23am If we can reference the SVG subcomponents and apply movement and/or rotation... awesome GUI could be created.
it is possible, i will try to do the pointer rotation.
Regards

Re: Function Rotate(Angle As Float) As Image

Posted: Friday 4th June 2021 12:38pm
by tincho
ok, I have managed to alter the properties of the sub components, the coordinates for the case of the indicator needle and the text. But something is wrong because the result is not as expected.
I'm going to try using another graphical element, like a line.
Jerry: How did you do it in javascript?
Regards.
Martin.

Re: Function Rotate(Angle As Float) As Image

Posted: Thursday 15th July 2021 2:22am
by Askjerry
Here are a couple of files to play with...
http://askjerry.info/SVG/