Hi I'm hoping there's a maths expert around here.lol. What id like to do is plot 360 X,y points around a circle (or maybe 180 if the circle is small). I think AMS has the maths functions to do this.
Professional Software Development Tools
Hi I'm hoping there's a maths expert around here.lol. What id like to do is plot 360 X,y points around a circle (or maybe 180 if the circle is small). I think AMS has the maths functions to do this.
Check out StefanM's post HERE.
thanks.. thats exactly what i was looking for![]()
That is a very useful bit of script, i had a play about and extended it into a function for creating multi-sided shapes in images (hexagon , pentagon..etc)..
I used Ssides Image.dll to draw the line. This script could easily be adapted from here to make all sorts of 'Spirograph' style shapes.Code:function DrawMultiSidedShape( fName, nLineColor , nLineThickness , nCenterX , nCenterY , nRadius , nSides ) local inc = 0; local StartX = 0; -- Start of line co-ordinates. local StartY = 0; local EndX = 0; -- end of line co-ordinates. local EndY = 0; local LastX = 0; local LastY = 0; image.Open( fName ); local w = 2 * math.pi / nSides; for inc = 1 , nSides do if inc == 1 then StartX = nCenterX + nRadius * Math.Cos( w * ( inc - 1 ) ); StartY = nCenterY + nRadius * Math.Sin( w * ( inc - 1 ) ); LastX = StartX; LastY = StartY; else EndX = nCenterX + nRadius * Math.Cos( w * ( inc - 1 ) ); EndY = nCenterY + nRadius * Math.Sin( w * ( inc - 1 ) ); PixDrawLine( nLineColor , nLineThickness , StartX , StartY , EndX , EndY ); StartX = EndX; StartY = EndY; end end image.DrawLine( nLineColor , nLineThickness , StartX , StartY , LastX , LastY ); image.Save() end
Last edited by clueless; 05-21-2008 at 03:11 PM.
Could you post an example of this.
Sounds intresting , but I can't get it to work.
Thanks,
AudioSam
No problems.![]()
Last edited by clueless; 05-22-2008 at 10:38 AM.
Thanks alot Clueless.
I'm about to have a look at it.
I didn't know if it was top secret or not....
Looked at it and had time to edit..
Very nice.
I can see what you mean.
All types of effects are possible with this.
I'll mess with this a few days now..
Thanks and have a nice day,
Audiosam
Last edited by AudioSam; 05-22-2008 at 10:54 AM.
Ive been making an animation/image editor , this was from one of the drawing functions. Im going to try to extend it into a vector line function next but with the main image,marquee selection,grid overlays,calculating snap to grid,shapes,zoom and changing the cursor when over handles for movable objects in the image im finding it harder and harder to squeeze it all into a single screen refresh without the program slowing down.lol
I'm looking at it now.
I am thinking about active to curent volume.
Volume low, small shape to a little larger shape and color.
Volume moves up, a larger shape to a little larger shape and color.
I guess colors are
red
green
blue
black
yellow
purple
I'm messing around with the colors right now.
Thanks again,
Audiosam
Thanks for a very nice example.
I wonder how to get the shape rotate? I know bits of vector maths but not much.
lol.. that wasnt so difficult![]()
Last edited by clueless; 05-22-2008 at 01:44 PM.
I'm just checking in to see what you have going.
I'll go across and download your latest.
Nothing better than new toys..
I like the first apz .
You might have already known, there were a few
things to correct as far as the enable buttons.
I was messing with that before I got side tracked.
I'll be back in a few minutes.
A lot of the things you post are over my head.
This one I like and I can understand it.
Thanks Clueless,
AudioSam
Here's one a little more animated. Im having fun with this![]()
Yeah,,,,
Looks like lots of possibilities..
I'm messing with it as well.
Got something pretty good going here.
I'll look at what you just posted.
I know it's going to be good already..
Of course you got it going, I'm just using what you started... lol
AudioSam
Looking at it now!!!! GreaTTTT !!!!
Got Kid Rock going, looking at the shapes....
Can't top this...
Xcelent Clueless...
Man this is the shi~!!!!!
A +++++
Last edited by AudioSam; 05-22-2008 at 04:29 PM. Reason: Amazed....