Function Rotate(Angle As Float) As Image

Ask about the individual Gambas components here.
User avatar
Askjerry
Posts: 64
Joined: Saturday 18th August 2018 9:06pm
Location: Kyle, Texas, USA
Contact:

Re: Function Rotate(Angle As Float) As Image

Post 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
User avatar
tincho
Posts: 57
Joined: Wednesday 10th July 2019 1:12pm

Re: Function Rotate(Angle As Float) As Image

Post 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
User avatar
tincho
Posts: 57
Joined: Wednesday 10th July 2019 1:12pm

Re: Function Rotate(Angle As Float) As Image

Post 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.
Attachments
sample-svg-load-for-jerry-0.0.3.tar.gz
(42.45 KiB) Downloaded 245 times
User avatar
Askjerry
Posts: 64
Joined: Saturday 18th August 2018 9:06pm
Location: Kyle, Texas, USA
Contact:

Re: Function Rotate(Angle As Float) As Image

Post by Askjerry »

Here are a couple of files to play with...
http://askjerry.info/SVG/
Post Reply