# AS plotting (2)

Source: Internet
Author: User

Feather painting by action

Code:

`OnMouseDown = init; function init () {// create a feather, and set each feather parameter and call the function feather = createEmptyMovieClip ("f" + I, 10000 + I ++); feather. swapDepths (Math. random () * 10000); feather. _ x = _ xmouse; feather. _ y = _ ymouse; feather. _ rotation =-90 + Math. random () * 40-20; col = Math. random () * 255 <8; radius = Math. random () * 20 + 20; twist = Math. random () +. 5; len = Math. random () * 100 + 50; taper = Math. random ()*. 05 +. 95; x = 0; onEnterFrame = grow;} function grow () {// create a function to define the growth of feathers and the condition angle = Math. sin (fa + = twist) * Math. PI/4; feather. moveTo (x, y); feather. lineStyle (1, col, 50); feather. lineTo (x + Math. cos (angle) * radius, y + Math. sin (angle) * radius); radius * = taper; if (x ++> len) {delete onEnterFrame ;}};`

Draw circles with:

Code:

Idea: use an uninterrupted ry to form a circle. In fact, it is a regular degree polygon.
Application: Based on this method, you can draw any image, such as parabolic and spiral. You only need to modify the equation. The first code is an application that draws an elliptic.

`_ Root. onLoad = function () {System. usecodepage = true; // I don't know what this sentence means. After it is added, it supports Chinese. I learned it from "stupid". Who knows how to tell me, thank you _ root. createTextField ("txtLoad", 151, 50,280,400, 30); // create a text, name, level, x, y, width, height _root.txt Load. text = "this is an application of draw lines. Zjs35. Zjs35@163.com "; // content in the text daxiao = 100; // the radius of the circle yuanxin_x = 200; yuanxin_y = 150; // coordinates of the Center}; _ root. onEnterFrame = function () {a = daxiao * Math. cos (n * Math. (PI/180); B = daxiao * Math. sin (n * Math. PI/180); // define a starting point c = daxiao * Math according to the equation of the circle. cos (n + 1) * Math. PI/180); d = daxiao * Math. sin (n + 1) * Math. PI/180); // define an endpoint createEmptyMovieClip ("yuan", n); with (yuan) {lineStyle (2, 0x000000, 50 ); // define the line style moveTo (a + yuanxin_x, B + yuanxin_y); lineTo (c + yuanxin_x, d + yuanxin_y ); // draw a line from the start point to the end point} if (n <= 360) {n = n + 1;} // control the length of the draw line, just a circle, 1 indicates the draw speed };`

Draw regular polygon

Code:

This is a program for drawing regular polygon. Train of Thought: divide a circle into n equal points and combine these points. below is the code on the button. In addition, create a circle in the scenario and enter the text box, the name is aa and bb.

`On (release) {daxiao = aa; // obtain the polygon size, in pixels, bianshu = bb; // obtain the number of edges, integers, starting from 3, to infinity, n polygon is the circle jiaodu =bianshu; // obtain the angle of each equals point for (n = 1; n <= bianshu; n ++) {// for loop, the number of cycles is controlled by bianshu, that is, the number of edges of the polygon to be drawn. a = daxiao * math. cos (n * jiaodu * math. (pi/180); B = daxiao * math. sin (n * jiaodu * math. pi/180); // defines the coordinate c = daxiao * math of the start point. cos (n + 1) * jiaodu * math. pi/180); d = daxiao * math. sin (n + 1) * jiaodu * math. pi/180); // defines the coordinate createEmptyMovieClip ("xian", n) of the end point; // creates an empty movie xian with n (xian) {lineStyle (2, 0xff0000, 100); // defines the line size, color, and transparency moveTo (a + 300, B + 200); lineTo (c + 300, d + 200 ); // draw a line from the start point to the end point }}}`

Use as to draw letters F Author: Cold Blue

Code:

`// Create an empty mc: _ root. createEmptyMovieClip ("myMc", 0); // defines the position of mc: myMc. _ x = 100; myMc. _ y = 50; // define the fill: myMc. beginFill (0xff0000, 100); colors = [0xFF0000, 0 xffffff]; alphas = [100,100]; ratios = [0, 0xFF]; matrix = {a: 50, B: 0, c: 0, d: 0, e: 50, f: 0, g: 50, h: 50, I: 1}; myMc. beginGradientFill ("linear", colors, alphas, ratios, matrix); // defines the style of the draw line: myMc. lineStyle (1, 0xff0000, 100); // move the initial vertex: myMc. moveTo (100, 0); // connection curve: myMc. curveTo (65, 5, 50, 50); myMc. curveTo (35, 95, 0,100); // connects a straight line to myMc. lineTo (0,120); myMc. curveTo (45,110, 62, 70); myMc. lineTo (90, 70); myMc. lineTo (90, 50); myMc. lineTo (70, 50); myMc. curveTo (80, 20,100, 20); myMc. lineTo (100, 0); // end filling: myMc. endFill (); // clear the image: // myMc. clear ();`

Draw a sine line

Code:

`root.onLoad = function() {   daxiao = 100;   yuanxin_x = 00;   yuanxin_y = 150; }; _root.onEnterFrame = function() {   a = daxiao*Math.sin(n*Math.PI/180);   c = daxiao*Math.sin((n+1)*Math.PI/180);   createEmptyMovieClip("xian", n);   with (xian) {     lineStyle(1, 0x339900, 50);     moveTo(n+yuanxin_x, a+yuanxin_y);     lineTo(n+1+yuanxin_x, c+yuanxin_y);   }    if (n<=400) {        n = n+1/2;   } }`

Draw cosine line

Code:

`_root.onLoad = function() {   daxiao = 100;  yuanxin_x = 00;   yuanxin_y = 150; }; _root.onEnterFrame = function() {   a = daxiao*Math.cos(n*Math.PI/180);   c = daxiao*Math.cos((n+1)*Math.PI/180);   createEmptyMovieClip("yuan", n);   with (yuan) {     lineStyle(1, 0x000000, 50);     moveTo(n+yuanxin_x, a+yuanxin_y);     lineTo(n+1+yuanxin_x, c+yuanxin_y);     }     if (n<=400) {       n = n+1/2;   } };`

Draw a heartline

Code:

This is an example of using the new MX function to draw a line, which is much simpler than using the dot COPY method in 5. This method can be used to dynamically draw all the graphics in mathematics.

`_ Root. onLoad = function () {daxiao = 40; // set the heart line size}; _ root. onEnterFrame = function () {a = daxiao * (2 * Math. cos (n * Math. PI/180) + Math. cos (2 * (n * Math. PI/180); // define the x coordinate B = daxiao * (2 * Math. sin (n * Math. PI/180) + Math. sin (2 * (n * Math. PI/180); // define the y coordinate c = daxiao * (2 * Math. cos (n + 1) * Math. PI/180) + Math. cos (2*(1 + n) * Math. PI/180); d = daxiao * (2 * Math. sin (n + 1) * Math. PI/180) + Math. sin (2*(1 + n) * Math. PI/180); // similarly defines the ending point through the x and y coordinates createEmptyMovieClip ("yuan", n); // creates an empty movie yuan with (yuan) {lineStyle (0.5, 0x000000,100); // defines the line size, color, and transparency moveTo (a + 200, B + 150); lineTo (c + 200, d + 150); // draw a line from the start point to the end point, and set the center point of the image to (200,150)} if (n <= 360) {n = n + 1 ;}};`

Draw a spiral

Code:

```_root.onEnterFrame = function() {   a = (10+0.1*n)*Math.cos(n*Math.PI/180);   b = (10+0.1*n)*Math.sin(n*Math.PI/180);   c = (10+0.1*n)*Math.cos((n+1)*Math.PI/180);   d = (10+0.1*n)*Math.sin((n+1)*Math.PI/180);   createEmptyMovieClip("yuan", n);   with (yuan) {     lineStyle(2, 0x000000, 50);     moveTo(a+200, b+150);     lineTo(c+200, d+150);     }     if (n<=900) {       n = n+1;   } };
```

Rotating cube

Code:

`a = 50*Math.cos(n*Math.PI/180); b = 100*Math.sin(n*Math.PI/180); c1 = 300; c2 = 200; _root.createEmptyMovieClip("triangle", 1); with (_root.triangle) {   lineStyle(1, 0x000000, 50);   moveTo(a+c1, b+c2);   lineTo(50*math.cos((n+90)*math.pi/180)+c1,100*math.sin((n+90)*math.pi/180)+c2);   lineTo(50*math.cos((n+180)*math.pi/180)+c1,100*math.sin((n+180)*math.pi/180)+c2);   lineTo(50*math.cos((n+270)*math.pi/180)+c1,100*math.sin((n+270)*math.pi/180)+c2);   lineTo(50*math.cos((n+360)*math.pi/180)+c1,100*math.sin((n+360)*math.pi/180)+200);   lineStyle(1, 0x000000, 50);   moveTo(a+200, b+100);   lineTo(50*math.cos((n+90)*math.pi/180)+200,100*math.sin((n+90)*math.pi/180)+100);   lineTo(50*math.cos((n+180)*math.pi/180)+200,100*math.sin((n+180)*math.pi/180)+100);   lineTo(50*math.cos((n+270)*math.pi/180)+200,100*math.sin((n+270)*math.pi/180)+100);   lineTo(50*math.cos((n+360)*math.pi/180)+200,100*math.sin((n+360)*math.pi/180)+100);   lineStyle(1, 0x000000, 30);   moveTo(a+200, b+100);   lineTo(a+c1, b+c2);   moveTo(50*math.cos((n+90)*math.pi/180)+c1,100*math.sin((n+90)*math.pi/180)+c2);   lineTo(50*math.cos((n+90)*math.pi/180)+200,100*math.sin((n+90)*math.pi/180)+100);   moveTo(50*math.cos((n+180)*math.pi/180)+c1,100*math.sin((n+180)*math.pi/180)+c2);   lineTo(50*math.cos((n+180)*math.pi/180)+200,100*math.sin((n+180)*math.pi/180)+100);   moveTo(50*math.cos((n+270)*math.pi/180)+c1,100*math.sin((n+270)*math.pi/180)+c2);   lineTo(50*math.cos((n+270)*math.pi/180)+200,100*math.sin((n+270)*math.pi/180)+100); }`

Using as a candle is quite lifelike.

Code:

`offsetX = 275;offsetY = 100;left = 0;right = 0;top = 0;leftGoal = 0;rightGoal = 0;topGoal = 0;rate = .2;decay = .9;for (var i = 0; i<shapes.length; i++) {  var name = "flame"+i;  createEmptyMovieClip(name, i);  _root[name]._x = offsetX;  _root[name]._y = offsetY;  _root[name].offset = parseInt(shapes[i].split("|")[0]);  _root[name].fade = parseInt(shapes[i].split("|")[1]);}createEmptyMovieClip("heat", i);heat._x = offsetX;heat._y = offsetY;checkEdge = function (cur, side, dist) {   change = 0;if (cur>side) {    change -= Math.random()*dist;    } else if (cur<-side) {      change += Math.random()*dist;    }return change;};onEnterFrame = function () {  leftGoal += Math.random()*6-3;  leftGoal += checkEdge(leftGoal,10, 3);  rightGoal += Math.random()*6-3;  rightGoal += checkEdge(rightGoal, 10,3);  topGoal += Math.random()*8-4;  topGoal += checkEdge(topGoal, 15, 4);  leftAccel = (leftGoal-left)*rate;  leftVeloc += leftAccel;  leftVeloc *= decay;  left += leftVeloc;  rightAccel = (rightGoal-right)*rate;  rightVeloc += rightAccel;  rightVeloc *= decay;right += rightVeloc;  topAccel = (topGoal-top)*rate;  topVeloc += topAccel;  topVeloc *= decay;top += topVeloc;  for (var i = 0; i<shapes.length; i++) {    with (_root["flame"+i]) {      clear();colors = [0xFCE39C, 0xF4AC35];      alphas = [_root["flame"+i].fade, _root["flame"+i].fade-20];      ratios = [70, 255];      matrix = {matrixType:"box", x:-50, y:50, w:100, h:200, r:0};      beginGradientFill("radial",colors, alphas, ratios, matrix);      lineStyle(1, 0x000000, 0);      moveTo(0-left+right,0-top-_root["flame"+i].offset*2);      curveTo(40+_root["flame"+i].offset+right, 180,0, 200);      curveTo(-40-_root["flame"+i].offset-left, 180, 0-left+right, 0-top-_root["flame"+i].offset*2);      endFill();    }  } with (_root.heat) {    clear();colors = [0x986932, 0x986932];    alphas = [70, 0];    ratios = [20, 255];    matrix = {matrixType:"box", x:-20-left/2, y:120-top, w:40+right/2,h:120+top, r:0};  beginGradientFill("radial", colors, alphas, ratios, matrix);  lineStyle(1,0x000000, 0);  moveTo(-50, 0);  lineTo(50, 0); lineTo(50, 200);  lineTo(-50, 200);  lineTo(-50,0);  endFill();}duplicateMovieClip(_root["flame"+(shapes.length-1)], "shapeMask",shapes.length+1);heat.setMask(shapeMask);};`

Fourteen-dimensional code:

`_ Root. onLoad = function () {c1 = 200; c2 = 250; c3 = 50; c4 = 10;}; _ root. onEnterFrame = function () {aa = 100; bb = 100; // controls horizontal cc = _ root. right_s3.getvalue (); dd = _ root. right_s4.getvalue (); ee = _ root. right_s5.getvalue (); ff = _ root. right_s6.getvalue (); gg = _ root. right_s7.getvalue (); daxiao1 = aa; daxiao2 = bb; Sudu = cc; zhox = ee; bianshu1 = dd; // control speed and direction _ root. createEmptyMovieClip ("triangle", 1); lineStyle (0, 0x000000,100); with (_ root. triangle) {// draw the dotted line a1 = daxiao2 * math. sin (n + 1*60) * math. pi/180); b1 = daxiao1 * math. cos (n + 1*60) * math. (pi/180); a2 = daxiao2 * math. sin (n + (I + 1) * 60) * math. pi/180); b2 = daxiao1 * math. cos (n + (I + 1) * 60) * math. pi/180); lineStyle (1, 0xff0000, 100); // The six vertices in moveTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg-c3); lineTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg-c3); lineTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg-c3); lineTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg-c3); // connects up and down 12 vertices moveTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg); moveTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg); moveTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg); // the six points in the middle, but the line is different, pay attention to moveTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg); lineTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg-c3); // remove the vertex above, and 3 points and link lineStyle (1, 0x336600, 60); moveTo (c1, c2-gg-c3-c3 + 150 + c3); lineTo (daxiao2-c4) * math. sin (n + 5*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*30) * math. pi/180) + c2-gg-c3-c3 + 150); moveTo (c1, c2-gg-c3-c3 + 150 + c3); lineTo (daxiao2-c4) * math. sin (n + 9*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 9*30) * math. pi/180) + c2-gg-c3-c3 + 150); moveTo (c1, c2-gg-c3-c3 + 150 + c3); lineTo (daxiao2-c4) * math. sin (n + 1*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*30) * math. pi/180) + c2-gg-c3-c3 + 150); // below 3, 6 points connected to moveTo (daxiao2-c4) * math. sin (n + 5*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*30) * math. pi/180) + c2-gg-c3-c3 + 150); lineTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg); moveTo (daxiao2-c4) * math. sin (n + 5*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*30) * math. pi/180) + c2-gg-c3-c3 + 150); lineTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg); moveTo (daxiao2-c4) * math. sin (n + 9*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 9*30) * math. pi/180) + c2-gg-c3-c3 + 150); lineTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg); moveTo (daxiao2-c4) * math. sin (n + 9*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 9*30) * math. pi/180) + c2-gg-c3-c3 + 150); lineTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg); moveTo (daxiao2-c4) * math. sin (n + 1*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*30) * math. pi/180) + c2-gg-c3-c3 + 150); lineTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg); moveTo (daxiao2-c4) * math. sin (n + 1*30) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*30) * math. pi/180) + c2-gg-c3-c3 + 150); lineTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg); // fetch the top vertex and link moveTo (c1, c2-gg-c3-c3-c3); lineTo (daxiao2-c4) * math. sin (n + 210) * math. pi/180) + c1, (daxiao1) * math. cos (n + 210) * math. pi/180) + c2-gg-c3-c3); moveTo (c1, c2-gg-c3-c3-c3); lineTo (daxiao2-c4) * math. sin (n + 330) * math. pi/180) + c1, (daxiao1) * math. cos (n + 330) * math. pi/180) + c2-gg-c3-c3); moveTo (c1, c2-gg-c3-c3-c3); lineTo (daxiao2-c4) * math. sin (n + 1*90) * math. pi/180) + c1, (daxiao1) * math. cos (n + 1*90) * math. pi/180) + c2-gg-c3-c3); // The top 6 points, but the line is different, pay attention to moveTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg-c3); lineTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg-c3); lineTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg-c3); lineTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg-c3); // above 3, 6 points connected moveTo (daxiao2-c4) * math. sin (n + 90) * math. pi/180) + c1, (daxiao1) * math. cos (n + 90) * math. pi/180) + c2-gg-c3-c3); lineTo (daxiao2 * math. sin (n + 1*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 1*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2-c4) * math. sin (n + 90) * math. pi/180) + c1, (daxiao1) * math. cos (n + 90) * math. pi/180) + c2-gg-c3-c3); lineTo (daxiao2 * math. sin (n + 2*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 2*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2-c4) * math. sin (n + 210) * math. pi/180) + c1, (daxiao1) * math. cos (n + 210) * math. pi/180) + c2-gg-c3-c3); lineTo (daxiao2 * math. sin (n + 3*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 3*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2-c4) * math. sin (n + 210) * math. pi/180) + c1, (daxiao1) * math. cos (n + 210) * math. pi/180) + c2-gg-c3-c3); lineTo (daxiao2 * math. sin (n + 4*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 4*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2-c4) * math. sin (n + 330) * math. pi/180) + c1, (daxiao1) * math. cos (n + 330) * math. pi/180) + c2-gg-c3-c3); lineTo (daxiao2 * math. sin (n + 5*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 5*60) * math. pi/180) + c2-gg-c3); moveTo (daxiao2-c4) * math. sin (n + 330) * math. pi/180) + c1, (daxiao1) * math. cos (n + 330) * math. pi/180) + c2-gg-c3-c3); lineTo (daxiao2 * math. sin (n + 6*60) * math. pi/180) + c1, daxiao1 * math. cos (n + 6*60) * math. pi/180) + c2-gg-c3);} n = n + sutu ;}`
Related Keywords:

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

## A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

• #### Sales Support

1 on 1 presale consultation

• #### After-Sales Support

24/7 Technical Support 6 Free Tickets per Quarter Faster Response

• Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.