so I'm using this imagehttps://i.ibb.co/zZpgWNt/blue-marker-l.png
example^^ is 150px x 150px
the square outline (u cant see it from the page format but it's a white square with black outline) is just so I can see what the shape is doing.
it's part of a percentage progress meter, main script is this, on a millisecond timer, %total is about 5,000, %loop 1 to 5,000
window -dp @perc 150 600 400 400
drawpic @perc 30 30 "c:\path\blue_marker_l.png"
drawpic -n @perc 30 30 "c:\path\blue_marker_l.png"
drawrot -c @perc $calc((100 /(%total / %loop)) * 3.6) 30 30 150 150
so that doesnt rotate it by a fraction of a degree per percentage, it puts the original image up each time and rotates it by the total. which is fine (no accumulated errors and stuff). basically it can work. couple of problems
1) I'd like to turn it into a sort of pac-man shape progress rather than line (needle) progress. I can (in theory) do that by rather than rotating the entire square, rotating just the blue line section of the image (with the bottom-middle (ideally) of the line as the reference point), and "spreading" the marker (not redrawing the square/circle as white each time)
using /drawrot without the -c, I can see *how* it rotates the image within the window? but....it's wrong
like -c uses the centre as the static point, I need to be able to set the static reference as "bottom middle", rather than the way it rotates at the moment. it sort of re-jigs the image into the space it's rotating (which isnt quite right! - for what Im doing)
possibly another set of params for /drawrot which specifies the co-ordinates of the static point (where an example of "-c" is actually a static point, it's the middle)
thats the main-ish thing
2) if I put some text just above that square (or any side or it) , as it rotates, eg at 45 degrees, the square becomes a diamond - which covers over any text just above/around it. I've tried making the ".png" a circle with transparent background but /drawrot rotates the windows contents and not the ".png" itself?.....so transparent background doesnt do anything,
again rotating just the line itself rather than 150x150 pix would solve this, but can't set the static point if its just the line
3) one last final thing which is slightly seperate, is it possible to rotate an icon inside a dialog window? for exactly the same purpose, at the moment the dialog needs a seperate picture window for this graphic