illustratorã§ãµã¤ã³ã«ã¼ã(sin x)ãæãæ¹æ³ã¨ãã¦ãjavascriptã使ãæ¹æ³ãç´¹ä»ãã¾ãããã®ã¨ã³ããªã¯ãã¯ã¦ãªäººåæ¤ç´¢ã®è³ªå question:1167923268 ã«è§¦çºããã¦æ¸ãã¾ããã illustratorç¨ã¹ã¯ãªãã illustratorã§ã¯ãjavascript ã§ã¹ã¯ãªãã(ï¼ãã©ã°ã¤ã³ã®ãããªãã®)ãè¨è¿°ã§ãã¾ããsin(x)ãæ¸ãã¹ã¯ãªããã¯ä»¥ä¸ã®ããã«ãªãã¾ãã N=100; SCALE=50; PI=3.14159265; for (t=0;t<N;t++) { line = activeDocument.pathItems.add(); y0 = Math.sin(t/N*2*PI)*SCALE; y1 = Math.sin((t+1)/N*2*PI)*SCALE; line.setEntirePath([[t,y0],[t+1,y1]])
{{#tags}}- {{label}}
{{/tags}}