// Coordinates System : SetCoords(3906,443,62.977428746793215,true,1009,632); // Geometry : P1=Point("P1",-55.242013991832735,0.1270296383830589); X=Point("X","[1,0,0]","1"); Y=Point("Y","[0,1,0]","1"); Z=Point("Z","[0,0,1]","1"); S11=Segment("S11",P1,X); S21=Segment("S21",P1,Y); S31=Segment("S31",P1,Z); E1=Expression("E1","angle de pliage : ","0","125.25","0","-61.38707274861321","5.44639574567365"); E2=Expression("E2","patron n\u00b0","1","3","1","-61.38707274861321","6.399118033546592"); blk_turtle_exp_P1=Expression("blk_turtle_exp_P1","","","","var bl_jdicahadj=function(){\nTURTLE_INIT(\"P1\",P1);\n/**\n * Décrire cette fonction…\n */\nfunction polygone(blockly_local_n,blockly_local_l,blockly_local_o) {\n TURTLE_UP(false);\n TURTLE_COLOUR(53);\n for (var blockly_var_count = 1 ; blockly_var_count <= blockly_local_n ; blockly_var_count++){\n TURTLE_MV(blockly_local_l,false);\n if (blockly_local_o == 0) {\n TURTLE_TURN((Math.quotient(360,blockly_local_n)));\n } else {\n TURTLE_TURN(-(Math.quotient(360,blockly_local_n)));\n }\n };\n TURTLE_FILL(50);\n TURTLE_UP(true);\n}\n\n/**\n * Décrire cette fonction…\n */\nfunction patron1() {\n polygone(4, 4, 0);\n for (var blockly_var_i = 1 ; blockly_var_i <= 4 ; blockly_var_i = blockly_var_i + 1){\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_ROTATE((E1),false);\n TURTLE_MV(4,false);\n TURTLE_TURN((90));\n };\n}\n\n/**\n * Décrire cette fonction…\n */\nfunction patron2() {\n polygone(4, 4, 0);\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_MV(4,false);\n TURTLE_TURN((120));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n}\n\n/**\n * Décrire cette fonction…\n */\nfunction patron3() {\n polygone(4, 4, 0);\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n TURTLE_ROTATE((Math.times((E1),Math.quotient(70.55,125.25))),false);\n TURTLE_TURN((60));\n TURTLE_ROTATE((E1),false);\n for (var blockly_var_count2 = 1 ; blockly_var_count2 <= 2 ; blockly_var_count2++){\n TURTLE_MV(4,false);\n TURTLE_TURN((90));\n };\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n}\n\n\nTURTLE_TURN((90));\nTURTLE_UP(true);\nTURTLE_MV(-2,false);\nTURTLE_TURN((90));\nTURTLE_MV(-2,false);\nTURTLE_TURN(-(90));\nTURTLE_UP(false);\nif ((E2) == 1) {\n patron1();\n}\nif ((E2) == 2) {\n patron2();\n}\nif ((E2) == 3) {\n patron3();\n}\nreturn TURTLE_RESULT()\n};\nbl_jdicahadj()","-61.22828570063439","6.240330985567768"); blk_turtle_list_P1=List("blk_turtle_list_P1",blk_turtle_exp_P1); // Styles : STL(P1,"c:#0000b2;s:6;f:30;fl:true"); STL(X,"c:#0000b2;h:1;o:1;s:4;sn:true;f:24"); STL(Y,"c:#0000b2;h:1;o:1;s:4;sn:true;f:24"); STL(Z,"c:#0000b2;h:1;o:1;s:4;sn:true;f:24"); STL(S11,"c:#117dad;h:1;s:1;f:24"); STL(S21,"c:#117dad;h:1;s:1;f:24"); STL(S31,"c:#117dad;h:1;s:1;f:24"); STL(E1,"c:#1d7370;s:7;sn:true;f:20;p:2;i:0.01;cL:200;cPT:YzojNzgwMDEzO3M6MTA7ZjozMDtpOjAuMDE="); STL(E2,"c:#0a263d;s:7;f:20;p:2;i:1;cL:200;cPT:YzojNzgwMDEzO3M6MTA7ZjozMDtpOjE="); STL(blk_turtle_exp_P1,"c:#780013;h:2;s:7;f:24;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MjtzOjEwO2Y6MzA="); STL(blk_turtle_list_P1,"c:#0000b2;s:0;f:30;p:0;nmi:true;sg:1"); SetCoordsStyle("3Dmode:true;isAxis:false;isGrid:true;isOx:true;isOy:true;isLockOx:false;isLockOy:false;centerZoom:true;onlyPositive:false;color:#111111;fontSize:18;axisWidth:1;gridWidth:0.1"); SetGeneralStyle("background-color:#F8F8F8;degree:true;dragmoveable:true"); // Blockly : BLK(P1,{"onlogo":{"xml":"polygoneDécrire cette fonction…penDown#3366ff53nmoveForwardun4lEQo0turnLeft120DIVIDE360nturnRight120DIVIDE360n50penUpturnLeft90penUpmoveBackwardun2turnLeft90moveBackwardun2turnRight90penDownEQexpressionE21EQexpressionE22EQexpressionE23patron1Décrire cette fonction…440i141rotate_left90expressionE1341rotate_right90expressionE1moveForwardun4turnLeft90patron2Décrire cette fonction…440rotate_left90expressionE1341turnRight60moveForwardun4turnLeft120rotate_left90MULTIPLYexpressionE1DIVIDE70.55125.25341turnRight60rotate_left90MULTIPLYexpressionE1DIVIDE70.55125.25341turnRight60rotate_left90MULTIPLYexpressionE1DIVIDE70.55125.25341patron3Décrire cette fonction…440rotate_left90expressionE1341turnRight60rotate_left90MULTIPLYexpressionE1DIVIDE70.55125.25341rotate_right90MULTIPLYexpressionE1DIVIDE70.55125.25turnLeft60rotate_right90expressionE12moveForwardun4turnLeft90rotate_left90expressionE1341turnRight60rotate_left90MULTIPLYexpressionE1DIVIDE70.55125.25341","sync":"/**\n * Décrire cette fonction…\n */\nfunction polygone(blockly_local_n,blockly_local_l,blockly_local_o) {\n TURTLE_UP(false);\n TURTLE_COLOUR(53);\n for (var blockly_var_count = 1 ; blockly_var_count <= blockly_local_n ; blockly_var_count++){\n TURTLE_MV(blockly_local_l,false);\n if (blockly_local_o == 0) {\n TURTLE_TURN((Math.quotient(360,blockly_local_n)));\n } else {\n TURTLE_TURN(-(Math.quotient(360,blockly_local_n)));\n }\n };\n TURTLE_FILL(50);\n TURTLE_UP(true);\n}\n\n/**\n * Décrire cette fonction…\n */\nfunction patron1() {\n polygone(4, 4, 0);\n for (var blockly_var_i = 1 ; blockly_var_i <= 4 ; blockly_var_i = blockly_var_i + 1){\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_ROTATE((E1),false);\n TURTLE_MV(4,false);\n TURTLE_TURN((90));\n };\n}\n\n/**\n * Décrire cette fonction…\n */\nfunction patron2() {\n polygone(4, 4, 0);\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_MV(4,false);\n TURTLE_TURN((120));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n}\n\n/**\n * Décrire cette fonction…\n */\nfunction patron3() {\n polygone(4, 4, 0);\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n TURTLE_ROTATE((Math.times((E1),Math.quotient(70.55,125.25))),false);\n TURTLE_TURN((60));\n TURTLE_ROTATE((E1),false);\n for (var blockly_var_count2 = 1 ; blockly_var_count2 <= 2 ; blockly_var_count2++){\n TURTLE_MV(4,false);\n TURTLE_TURN((90));\n };\n TURTLE_ROTATE(-(E1),false);\n polygone(3, 4, 1);\n TURTLE_TURN(-(60));\n TURTLE_ROTATE(-(Math.times((E1),Math.quotient(70.55,125.25))),false);\n polygone(3, 4, 1);\n}\n\n\nTURTLE_TURN((90));\nTURTLE_UP(true);\nTURTLE_MV(-2,false);\nTURTLE_TURN((90));\nTURTLE_MV(-2,false);\nTURTLE_TURN(-(90));\nTURTLE_UP(false);\nif ((E2) == 1) {\n patron1();\n}\nif ((E2) == 2) {\n patron2();\n}\nif ((E2) == 3) {\n patron3();\n}","parents":["E2","E1"]},"current":"onlogo"});