components/blockly-src/blocks/colour.js
function() {
    this.setHelpUrl(Blockly.Msg.COLOUR_BLEND_HELPURL);
    this.setColour(Blockly.Blocks.colour.HUE);
    this.appendValueInput('COLOUR1')
        .setCheck('Colour')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.COLOUR_BLEND_TITLE)
        .appendField(Blockly.Msg.COLOUR_BLEND_COLOUR1);
    this.appendValueInput('COLOUR2')
        .setCheck('Colour')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.COLOUR_BLEND_COLOUR2);
    this.appendValueInput('RATIO')
        .setCheck('Number')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.COLOUR_BLEND_RATIO);
    this.setOutput(true, 'Colour');
    this.setTooltip(Blockly.Msg.COLOUR_BLEND_TOOLTIP);
  }
function() {
    this.setHelpUrl(Blockly.Msg.COLOUR_BLEND_HELPURL);
    this.setColour(Blockly.Blocks.colour.HUE);
    this.appendValueInput('COLOUR1')
        .setCheck('Colour')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.COLOUR_BLEND_TITLE)
        .appendField(Blockly.Msg.COLOUR_BLEND_COLOUR1);
    this.appendValueInput('COLOUR2')
        .setCheck('Colour')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.COLOUR_BLEND_COLOUR2);
    this.appendValueInput('RATIO')
        .setCheck('Number')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.COLOUR_BLEND_RATIO);
    this.setOutput(true, 'Colour');
    this.setTooltip(Blockly.Msg.COLOUR_BLEND_TOOLTIP);
  }
function ( ) { this . setHelpUrl ( Blockly . Msg . COLOUR_BLEND_HELPURL ) ; this . setColour ( Blockly . Blocks . colour . HUE ) ; this . appendValueInput ( 'COLOUR1' ) . setCheck ( 'Colour' ) . setAlign ( Blockly . ALIGN_RIGHT ) . appendField ( Blockly . Msg . COLOUR_BLEND_TITLE ) . appendField ( Blockly . Msg . COLOUR_BLEND_COLOUR1 ) ; this . appendValueInput ( 'COLOUR2' ) . setCheck ( 'Colour' ) . setAlign ( Blockly . ALIGN_RIGHT ) . appendField ( Blockly . Msg . COLOUR_BLEND_COLOUR2 ) ; this . appendValueInput ( 'RATIO' ) . setCheck ( 'Number' ) . setAlign ( Blockly . ALIGN_RIGHT ) . appendField ( Blockly . Msg . COLOUR_BLEND_RATIO ) ; this . setOutput ( true , 'Colour' ) ; this . setTooltip ( Blockly . Msg . COLOUR_BLEND_TOOLTIP ) ; }
Block for blending two colours together.
@this Blockly.Block
Block for blending two colours together .