лабораторная работа 1

Download лабораторная работа 1

Post on 22-May-2015

95 views

Category:

Technology

5 download

Embed Size (px)

TRANSCRIPT

  • 1. 1 BLOCKLY -10 . .

2. SVG 3. Layer 1xyzO(0,0,0) 4. SVG 5. BLOCKLY 6. Blockly.Language.webgl_a25_1html = { category: 'WebGL', helpUrl:"../../media/webgl_a25_header.help.html", init: function() { this.setColour(290); this.appendStatementInput("NAME") .appendTitle(new Blockly.FieldImage("../../media/1.svg", 64, 64)) .appendTitle("HEADER"); this.setNextStatement(true); this.setTooltip(''); } }; Blockly.JavaScript.webgl_a25_1html = function() { var statements_name = Blockly.JavaScript.statementToCode(this, 'NAME');var code = 'nn' + statements_name.toString() + 'n' return code; }; 7. Blockly.Language.webgl_a25_2html = { category: 'WebGL', helpUrl:"../../media/title.html", init: function() { this.setColour(230); this.appendDummyInput() .appendTitle("Title") .appendTitle(new Blockly.FieldTextInput(" 1"), "NAME"); this.setPreviousStatement(true); this.setNextStatement(true); this.setTooltip(''); } }; Blockly.JavaScript.webgl_a25_2html = function() { var text_name = this.getTitleValue('NAME'); var code = text_name.toString(); return code; }; 8. Blockly.Language.webgl_a25_3html = { category: 'WebGL', helpUrl: "../../media/Body.html", init: function() { this.setColour(120); this.appendStatementInput("NAME") .appendTitle("Body"); this.setPreviousStatement(true); this.setNextStatement(true); this.setTooltip(''); } }; Blockly.JavaScript.webgl_a25_3html = function() { var statements_name = Blockly.JavaScript.statementToCode(this, 'NAME'); var code = 'nn' + statements_name.toString() + 'n' return code; }; 9. Blockly.Language.webgl_a25_5html = { category: 'WebGL', helpUrl:"../../media/lists.html", init: function() { this.appendStatementInput("NAME") .appendTitle("lists"); this.setPreviousStatement(true); this.setNextStatement(true); this.setTooltip('');}}; Blockly.JavaScript.webgl_a25_5html = function() { var statements_name = Blockly.JavaScript.statementToCode(this, 'NAME'); var code = 'n' + statements_name.toString() + 'n' return code; }; 10. Blockly.Language.webgl_a25_6html = { category: 'WebGL', helpUrl:"../../media/Footer.html", init: function() { this.setColour(290); this.appendDummyInput() .appendTitle("Footer"); this.setPreviousStatement(true); this.setTooltip(''); }}; Blockly.JavaScript.webgl_a25_6html = function() { var code = 'n' return code; }; 11. 12.