Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I draw a curve that follows an equation?

New Here ,
Jul 29, 2013 Jul 29, 2013

Hi everyone

I am trying to write a script to draw geometric figures in Illustrator.

I want to achieve this by writing an equation into the ESTK, for example x^2 + y^2 =100.

This should generate a circle with a radius of 10 units.

Does anyone know if this is possible?  If so, please would you share your technique with me?  Also if you have an example script this would be even better!

Thank you

TOPICS
Scripting
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jul 31, 2013 Jul 31, 2013
LATEST

Not enough informations.

But this can help you a little bit:

// 100 = x^2 + y^2

// 10 = square root ( x^2 + y^2)

// if you know the x and the y-value then:

var x = 6;

var y = 8;

var yourRadius = (Math.sqrt (Math.pow ( x, 2 ) + Math.pow ( y, 2 ) ));

alert (yourRadius)

And this thread:

http://forums.adobe.com/message/3517274?tstart=0

and this one:

http://forums.adobe.com/thread/792369?tstart=0

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines