Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 0
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
New to this Portal?
Click on Join Now to Sign Up
Join Now
Help
Feedback
Sign In
Processing Forum
Recent Topics
All Forums
Search All
Tags
Author
Advanced Search
Search
New Topic
Screen name:
ddelgiu
ddelgiu's Profile
1
Posts
3
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Gumowski-Mira attractor
[4Replies]
15-Dec-2010 04:59 AM
Forum:
Programming Questions
Hi, this is my first post on this forum and I don't know if there is a solution for my problem, also I'm new on Processing.
I worked on a code about Peter de joung attractor connecting this code to Grasshopper with an UDP receiver, you can see my code here:
http://madeincalifornia.blogspot.com/2010/12/peter-de-joung-attractor-02.html
Now I'm working to a code about the Gumowski-Mira attractor( see an actionscript here:
http://actionsnippet.com/?p=908
9), but for now it doesn't work.
Is anybody know how I can write correctly my code?
Here the pseudo-code:
float a,b,xn1,yn1,xn,yn,G;
float s,iterations;
void setup()
{
size (800,800);
frameRate(30);
a=0.02;
b=0.9998;
xn1=5;
yn1=0;
s=10;
iterations=20000;
G= a * x + (2 * (((1 - a) * x2) / (1 + x2)));
}
void draw()
{
background(255);
fill(175,40);
a = mouseY / 1000;
xn1 = mouseX / 30;
yn1 = 0;
for (int i= 0; i<iterations; i++){
xn = xn1;
yn = yn1;
xn1 = b * yn + G(xn);
yn1 = -xn + G(xn1);
set (280 + xn1 * s, 300 + yn1 * s, 0x000000);
i++;
}
}
Thx so much,
D
--
«Prev
Next »
Moderate user : ddelgiu
Forum