Skip to content

Commit

Permalink
tint sprite to color
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGamer13 committed Dec 5, 2023
1 parent 82b26e8 commit 486aa6c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions blocks_vertical/looks.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,36 @@ Blockly.Blocks['looks_hideallsprites'] = {
}
};

Blockly.Blocks["looks_setTintColor"] = {
init: function() {
this.jsonInit({
"inputsInline": true,
"args0":[
{
"type":"input_value",
"name":"color"
}
],
"message0":"set tint color to %1",
"category": Blockly.Categories.looks,
"extensions": ["colours_looks", "shape_statement"]
});
}
};
Blockly.Blocks['looks_tintColor'] = {
/**
* pm: Block to report the tint color effect in hex code
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"message0": "tint color",
"category": Blockly.Categories.looks,
"extensions": ["colours_looks", "output_string"]
});
}
};

Blockly.Blocks['looks_changeeffectby'] = {
/**
* Block to change graphic effect.
Expand Down

0 comments on commit 486aa6c

Please sign in to comment.