元控颜色块修改,mini去掉uart2
This commit is contained in:
@@ -984,18 +984,39 @@ export const tft_show_image_xy = {
|
||||
export const display_color_seclet = {
|
||||
init: function () {
|
||||
this.setColour(DISPLAY_EXTERN_HUE);
|
||||
let fieldColorObj = new Blockly.FieldColour('#f00', null, {
|
||||
colourOptions: ['#f00', '#000'],
|
||||
columns: 2
|
||||
});
|
||||
this.appendDummyInput("")
|
||||
.setAlign(Blockly.inputs.Align.RIGHT)
|
||||
.appendField(fieldColorObj, "COLOR");
|
||||
.appendField(new Blockly.FieldColour('#000', null, {
|
||||
colourOptions: [
|
||||
// grays
|
||||
'#ffffff', '#cccccc', '#c0c0c0', '#999999', '#666666', '#333333', '#000000',
|
||||
// reds
|
||||
'#ffcccc', '#ff6666', '#ff0000', '#cc0000', '#990000', '#660000', '#330000',
|
||||
// oranges
|
||||
'#ffcc99', '#ff9966', '#ff9900', '#ff6600', '#cc6600', '#993300', '#663300',
|
||||
// yellows
|
||||
'#ffff99', '#ffff66', '#ffcc66', '#ffcc33', '#cc9933', '#996633', '#663333',
|
||||
// olives
|
||||
'#ffffcc', '#ffff33', '#ffff00', '#ffcc00', '#999900', '#666600', '#333300',
|
||||
// greens
|
||||
'#99ff99', '#66ff99', '#33ff33', '#33cc00', '#009900', '#006600', '#003300',
|
||||
// turquoises
|
||||
'#99ffff', '#33ffff', '#66cccc', '#00cccc', '#339999', '#336666', '#003333',
|
||||
// blues
|
||||
'#ccffff', '#66ffff', '#33ccff', '#3366ff', '#3333ff', '#000099', '#000066',
|
||||
// purples
|
||||
'#ccccff', '#9999ff', '#6666cc', '#6633ff', '#6600cc', '#333399', '#330099',
|
||||
// violets
|
||||
'#ffccff', '#ff99ff', '#cc66cc', '#cc33cc', '#993399', '#663366', '#330033'
|
||||
],
|
||||
columns: 7
|
||||
}), "COLOR");
|
||||
this.setInputsInline(true);
|
||||
this.setOutput(true, String);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const tft_show_image_or_string_delay = {
|
||||
init: function () {
|
||||
this.setColour(DISPLAY_EXTERN_HUE);
|
||||
|
||||
Reference in New Issue
Block a user