Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420

    Going round in circles..

    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.

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Check out StefanM's post HERE.

  3. #3
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    thanks.. thats exactly what i was looking for

  4. #4
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    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)..
    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
    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.
    Last edited by clueless; 05-21-2008 at 03:11 PM.

  5. #5
    Join Date
    Jan 2007
    Posts
    271

    Hi Clueless

    Could you post an example of this.
    Sounds intresting , but I can't get it to work.

    Thanks,
    AudioSam

  6. #6
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    No problems.
    Attached Files
    Last edited by clueless; 05-22-2008 at 10:38 AM.

  7. #7
    Join Date
    Jan 2007
    Posts
    271

    Thank You Clueless

    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.

  8. #8
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    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

  9. #9
    Join Date
    Jan 2007
    Posts
    271

    Good work

    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.

  10. #10
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    I wonder how to get the shape rotate? I know bits of vector maths but not much.

  11. #11
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    lol.. that wasnt so difficult
    Attached Files
    Last edited by clueless; 05-22-2008 at 01:44 PM.

  12. #12
    Join Date
    Jan 2007
    Posts
    271

    Just checking in...

    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

  13. #13
    Join Date
    Jan 2007
    Posts
    271

    Thumbs up Now this is sharp !!!!

    Quote Originally Posted by clueless View Post
    lol.. that wasnt so difficult
    Good job Clueless...
    Unlimited graphics tricks with this toy..
    I'll be messing with this for awhile.
    Mix a few colors in and mess with timer actions..
    Bad ,Cool, and Wicked all in one.
    I like music apps and graphics so this is
    something I like alot.

    AudioSam

  14. #14
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    Here's one a little more animated. Im having fun with this
    Attached Files

  15. #15
    Join Date
    Jan 2007
    Posts
    271

    Hey Cluless

    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....

Similar Threads

  1. Round Up/Down Function
    By Dermot in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 04-15-2008, 06:16 AM
  2. Not a square corner or a round button anywhere!
    By allenz in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 09-20-2004, 06:36 AM
  3. Can images or HotSpots be round?
    By Demo1224 in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 08-21-2003, 11:18 AM
  4. How to round up
    By TJ_Tigger in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 07-18-2003, 10:30 AM
  5. Action Variable >> Format Number always show Round
    By cchian in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 09-03-2002, 08:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts